diff options
| author | troido <troido@protonmail.com> | 2020-04-08 09:54:20 +0200 |
|---|---|---|
| committer | troido <troido@protonmail.com> | 2020-04-08 09:54:20 +0200 |
| commit | 7a4a62eb2804b6b19b4e71eee42d6b3d7ad08a3a (patch) | |
| tree | a3f5fe0b6fdb5ab913bbaafb48f090d217428479 /src/purgatory.rs | |
| parent | 5bef1829e443985e960a3cb64106d3f2e3dbf420 (diff) | |
rooms now share the same default dispatcher
Diffstat (limited to 'src/purgatory.rs')
| -rw-r--r-- | src/purgatory.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/purgatory.rs b/src/purgatory.rs index 12be7cc..f5f8c06 100644 --- a/src/purgatory.rs +++ b/src/purgatory.rs @@ -1,4 +1,5 @@ + use serde_json::json; use specs::{ DispatcherBuilder @@ -30,7 +31,7 @@ pub fn create_purgatory<'a, 'b>(encyclopedia: &Encyclopedia) -> Room<'a, 'b> { .with(ControlAI, "controlai", &["cool_down"]) .with(Move, "move", &["controlinput", "controlai"]) .build(); - let mut room = Room::new(purgatory_id(), encyclopedia.clone(), dispatcher); + let mut room = Room::new(purgatory_id(), encyclopedia.clone(), Some(dispatcher)); room.load_from_template(&RoomTemplate::from_json(&json!({ "width": 15, "height": 20, |
