summaryrefslogtreecommitdiff
path: root/src/components/mod.rs
diff options
context:
space:
mode:
authortroido <troido@protonmail.com>2020-04-15 12:23:06 +0200
committertroido <troido@protonmail.com>2020-04-15 12:23:06 +0200
commit43bde225ebbadd0b917ca87f3164a50455a2b588 (patch)
treec9c2bb0c6839af01a02acba1c338b2d8c59cfcb5 /src/components/mod.rs
parent30a5688010bf07a9e0807ed0c2dc7c51f0e9dae4 (diff)
visit other players
Diffstat (limited to 'src/components/mod.rs')
-rw-r--r--src/components/mod.rs7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/components/mod.rs b/src/components/mod.rs
index 6692445..ae50edc 100644
--- a/src/components/mod.rs
+++ b/src/components/mod.rs
@@ -29,6 +29,8 @@ pub use ear::{
Ear
};
+use std::collections::HashMap;
+
use specs::{
DenseVecStorage,
VecStorage,
@@ -225,6 +227,11 @@ pub struct Build {
pub obj: Template
}
+#[derive(Component, Debug, Clone)]
+pub struct Whitelist{
+ pub allowed: HashMap<String, PlayerId>
+}
+