summaryrefslogtreecommitdiff
path: root/src/purgatory.rs
diff options
context:
space:
mode:
authortroido <troido@protonmail.com>2020-04-04 23:48:07 +0200
committertroido <troido@protonmail.com>2020-04-04 23:48:07 +0200
commit068f98cec100772defce8ba966e5b917558b191c (patch)
tree80124cf89852dbedec9322258af36167cc99277b /src/purgatory.rs
parent2cc5b468cfd4c28bf1ad17ef1b3600c3d42f8b83 (diff)
draw the room after new entities have been added
Diffstat (limited to 'src/purgatory.rs')
-rw-r--r--src/purgatory.rs10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/purgatory.rs b/src/purgatory.rs
index 04024db..e5803d0 100644
--- a/src/purgatory.rs
+++ b/src/purgatory.rs
@@ -11,9 +11,7 @@ use crate::{
roomtemplate::RoomTemplate,
systems::{
Move,
- RegisterNew,
ControlInput,
- View,
Remove,
Create,
Volate,
@@ -29,14 +27,12 @@ pub fn purgatory_id() -> RoomId {
pub fn create_purgatory<'a, 'b>(encyclopedia: &Encyclopedia) -> Room<'a, 'b> {
let dispatcher = DispatcherBuilder::new()
.with(Volate, "volate", &[])
- .with(RegisterNew::default(), "registernew", &[])
- .with(UpdateCooldowns, "cool_down", &["registernew"])
+ .with(UpdateCooldowns, "cool_down", &[])
.with(ControlInput, "controlinput", &["cool_down"])
.with(ControlAI, "controlai", &["cool_down"])
.with(Move, "move", &["controlinput", "controlai"])
- .with(View::default(), "view", &["move", "volate"])
- .with(Create, "create", &["view"])
- .with(Remove, "remove", &["view", "move"])
+ .with(Create, "create", &["move", "volate"])
+ .with(Remove, "remove", &["volate", "move"])
.build();
let mut room = Room::new(purgatory_id(), encyclopedia.clone(), dispatcher);
room.load_from_template(&RoomTemplate::from_json(&json!({