diff options
| author | troido <troido@protonmail.com> | 2020-02-23 21:25:36 +0100 |
|---|---|---|
| committer | troido <troido@protonmail.com> | 2020-02-23 21:25:36 +0100 |
| commit | 613952f918b8d72a3e397dc46be309b2320c6ad0 (patch) | |
| tree | 2f34c1d8fb2aed771a5714a266845df095e5b438 /src/room.rs | |
| parent | 9a814769565ab36c227508c47792e112de338df1 (diff) | |
entities can be attacked
Diffstat (limited to 'src/room.rs')
| -rw-r--r-- | src/room.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/room.rs b/src/room.rs index ff7b75f..a4046b2 100644 --- a/src/room.rs +++ b/src/room.rs @@ -32,7 +32,8 @@ use crate::{ Create, Take, Migrate, - Use + Use, + Attacking }, components::{ Position, @@ -80,6 +81,7 @@ impl <'a, 'b>Room<'a, 'b> { .with(Take, "take", &["controlinput"]) .with(Use, "use", &["controlinput"]) .with(Move, "move", &["registernew", "controlinput"]) + .with(Attacking, "attacking", &["use"]) .with(View::default(), "view", &["move"]) .with(Migrate, "migrate", &["view"]) .with(Create, "create", &["view", "controlinput"]) |
