From 345251f20401a71f7e7e00f4810b92af39ad4395 Mon Sep 17 00:00:00 2001 From: troido Date: Sat, 26 Sep 2020 00:05:03 +0200 Subject: use flags for the whole room instead of room permissions the flags on a tile are the union of the flags from the entity on that tile and the room flags --- src/resources/mod.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/resources/mod.rs') diff --git a/src/resources/mod.rs b/src/resources/mod.rs index 025bc6e..b65ca86 100644 --- a/src/resources/mod.rs +++ b/src/resources/mod.rs @@ -1,13 +1,12 @@ mod ground; mod newentities; -mod roompermissions; pub use ground::Ground; pub use newentities::NewEntities; -pub use roompermissions::RoomPermissions; use std::collections::{HashMap, HashSet}; +use serde::{Serialize, Deserialize}; use specs::{Entity}; use crate::{ @@ -59,6 +58,6 @@ pub struct Time { pub time: Timestamp } -#[derive(Default, Debug, Clone)] +#[derive(Default, Debug, Clone, Serialize, Deserialize)] pub struct RoomFlags(pub HashSet); -- cgit