From feefeecec6c6050635b2c016452dfa1529575987 Mon Sep 17 00:00:00 2001 From: Kai Stevenson Date: Thu, 13 Aug 2026 01:56:09 -0700 Subject: big refactor for board --- src/sim/cell.rs | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 src/sim/cell.rs (limited to 'src/sim/cell.rs') 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 } + } +} -- cgit v1.3.1