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 } } }