From 523a635dc88bc7890a0e1d3c062a8165259761d6 Mon Sep 17 00:00:00 2001 From: troido Date: Thu, 24 Sep 2020 09:38:18 +0200 Subject: don't try to read into the json data structure all manually --- src/resources/mod.rs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/resources/mod.rs') 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); + -- cgit