diff options
| author | troido <troido@protonmail.com> | 2020-09-24 09:38:18 +0200 |
|---|---|---|
| committer | troido <troido@protonmail.com> | 2020-09-24 09:38:18 +0200 |
| commit | 523a635dc88bc7890a0e1d3c062a8165259761d6 (patch) | |
| tree | 56b0e379349250ecbf75eda6ccdb1f6f791dcbb1 /src/resources | |
| parent | daaf3a25e9c6cc1843b0a3aff71d4142f83dde10 (diff) | |
don't try to read into the json data structure all manually
Diffstat (limited to 'src/resources')
| -rw-r--r-- | src/resources/mod.rs | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/resources/mod.rs b/src/resources/mod.rs index 627a396..025bc6e 100644 --- a/src/resources/mod.rs +++ b/src/resources/mod.rs @@ -7,7 +7,7 @@ pub use ground::Ground; pub use newentities::NewEntities; pub use roompermissions::RoomPermissions; -use std::collections::{HashMap}; +use std::collections::{HashMap, HashSet}; use specs::{Entity}; use crate::{ @@ -17,7 +17,8 @@ use crate::{ PlayerId, RoomId, playerstate::RoomPos, - Timestamp + Timestamp, + components::Flag }; @@ -58,3 +59,6 @@ pub struct Time { pub time: Timestamp } +#[derive(Default, Debug, Clone)] +pub struct RoomFlags(pub HashSet<Flag>); + |
