diff options
| author | Kai Stevenson <kai@kaistevenson.com> | 2026-08-23 12:14:19 -0700 |
|---|---|---|
| committer | Kai Stevenson <kai@kaistevenson.com> | 2026-08-23 12:14:19 -0700 |
| commit | e6742f59102f2beb305b813d7f0ee1d544bbc3e0 (patch) | |
| tree | a4787655e441b4fb7acebf51373a8f3f7afbd9a4 /src/sim/cell.rs | |
| parent | 5f137b41ebeadfca3907221713f85f2c9fe431bf (diff) | |
separate data from cells
Diffstat (limited to 'src/sim/cell.rs')
| -rw-r--r-- | src/sim/cell.rs | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/src/sim/cell.rs b/src/sim/cell.rs index ca0b969..d12255e 100644 --- a/src/sim/cell.rs +++ b/src/sim/cell.rs @@ -4,8 +4,6 @@ use crate::{config::SETTLED_THRESOHLD, content::materials::MaterialId}; pub struct Cell { pub material: MaterialId, pub flags: u8, - // TODO move this to a per-chunk hashmap - pub data: u16, } impl Cell { @@ -75,14 +73,9 @@ impl Cell { Cell { material: MaterialId::Void, flags: 0, - data: 0, } } pub fn from_material(material: MaterialId) -> Cell { - Cell { - material, - flags: 0, - data: 0, - } + Cell { material, flags: 0 } } } |
