From 613952f918b8d72a3e397dc46be309b2320c6ad0 Mon Sep 17 00:00:00 2001 From: troido Date: Sun, 23 Feb 2020 21:25:36 +0100 Subject: entities can be attacked --- src/room.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/room.rs') 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"]) -- cgit