summaryrefslogtreecommitdiff
path: root/src/resources.rs
diff options
context:
space:
mode:
authortroido <troido@protonmail.com>2020-01-28 22:58:16 +0100
committertroido <troido@protonmail.com>2020-01-28 22:58:16 +0100
commitb3356eabcea09f599ad99c1332450e4d9570161b (patch)
tree3cdb9c9a2092f66a3f3d9dfeade6fcb80294579c /src/resources.rs
parent1175f8b436d15c47fb60866755921fc68183dc72 (diff)
refacored systems, components, resources and assemblages into their own files
Diffstat (limited to 'src/resources.rs')
-rw-r--r--src/resources.rs14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/resources.rs b/src/resources.rs
new file mode 100644
index 0000000..7c14507
--- /dev/null
+++ b/src/resources.rs
@@ -0,0 +1,14 @@
+
+use std::collections::HashMap;
+
+use super::components::{Position, Visible};
+
+#[derive(Default)]
+pub struct Size (pub i32, pub i32);
+
+#[derive(Default)]
+pub struct TopView {
+ pub width: i32,
+ pub height: i32,
+ pub cells: HashMap<Position, Vec<Visible>>
+}