summaryrefslogtreecommitdiff
path: root/src/room.rs
diff options
context:
space:
mode:
authortroido <troido@protonmail.com>2020-02-09 23:38:22 +0100
committertroido <troido@protonmail.com>2020-02-09 23:38:22 +0100
commitb9cfb78c20fd309929aae98f24acc8ba4a9a7481 (patch)
tree898684ce84a06651f78a0973fa1a6d4d2d192cb3 /src/room.rs
parent105c5ab0c0e969f3fda2cd43ae5195cbdb4da016 (diff)
can now pick up and drop items
Diffstat (limited to 'src/room.rs')
-rw-r--r--src/room.rs8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/room.rs b/src/room.rs
index 9d3f1ed..6af2c95 100644
--- a/src/room.rs
+++ b/src/room.rs
@@ -24,7 +24,8 @@ use super::systems::{
controlinput::ControlInput,
view::View,
remove::Remove,
- create::Create
+ create::Create,
+ take::Take
};
use crate::encyclopedia::Encyclopedia;
use crate::roomtemplate::RoomTemplate;
@@ -46,9 +47,10 @@ impl <'a, 'b>Room<'a, 'b> {
});
let mut dispatcher = DispatcherBuilder::new()
+ .with(RegisterNew::default(), "registernew", &[])
.with(ControlInput, "controlinput", &[])
- .with(RegisterNew::default(), "makefloor", &[])
- .with(Move, "move", &["makefloor", "controlinput"])
+ .with(Take, "take", &["controlinput"])
+ .with(Move, "move", &["registernew", "controlinput"])
.with(View::default(), "view", &["move"])
.with(Create, "create", &["view", "controlinput"])
.with(Remove, "remove", &["view", "move"])