diff options
| author | Kai Stevenson <kai@kaistevenson.com> | 2026-08-13 01:56:09 -0700 |
|---|---|---|
| committer | Kai Stevenson <kai@kaistevenson.com> | 2026-08-13 01:56:09 -0700 |
| commit | feefeecec6c6050635b2c016452dfa1529575987 (patch) | |
| tree | 024cc36c2c75e10b6bfd68f29c1494830bec37df /src/sim/cell.rs | |
| parent | 7ce9781f86c56f932dabc3bc84b8d21d7be8fecc (diff) | |
big refactor for board
Diffstat (limited to 'src/sim/cell.rs')
| -rw-r--r-- | src/sim/cell.rs | 19 |
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 } + } +} |
