summaryrefslogtreecommitdiff
path: root/src/sim/cell.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/sim/cell.rs')
-rw-r--r--src/sim/cell.rs19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/sim/cell.rs b/src/sim/cell.rs
new file mode 100644
index 0000000..2e26ddc
--- /dev/null
+++ b/src/sim/cell.rs
@@ -0,0 +1,19 @@
+use crate::sim::materials::MaterialId;
+
+#[derive(Clone, Copy)]
+pub struct Cell {
+ pub material: MaterialId,
+ pub flags: u8,
+}
+
+impl Cell {
+ pub fn void() -> Cell {
+ Cell {
+ material: MaterialId::Void,
+ flags: 0,
+ }
+ }
+ pub fn from_material(material: MaterialId) -> Cell {
+ Cell { material, flags: 0 }
+ }
+}