pub struct WorldGrid {
pub zones: [WorldAtom; 41],
}Expand description
The complete world grid — 41 zones.
Fields§
§zones: [WorldAtom; 41]Implementations§
Source§impl WorldGrid
impl WorldGrid
Sourcepub fn apply_op(&mut self, zone_id: u32, op_id: u32) -> bool
pub fn apply_op(&mut self, zone_id: u32, op_id: u32) -> bool
Apply an operation to a zone. Returns true if the op was new.
Sourcepub fn active_ops(&self, zone_id: u32) -> Vec<u32>
pub fn active_ops(&self, zone_id: u32) -> Vec<u32>
Get all active op IDs for a zone as a vec.
Sourcepub fn update_stability(&mut self, substrate_r: f32)
pub fn update_stability(&mut self, substrate_r: f32)
Update zone stability based on substrate coherence R.
Sourcepub fn apply_shockwave(&mut self, bass_peak: f32)
pub fn apply_shockwave(&mut self, bass_peak: f32)
Apply a bass shockwave — ripples outward, attenuating per shell.
Sourcepub fn witness_flat(&self) -> Vec<f32>
pub fn witness_flat(&self) -> Vec<f32>
Get the zone witness as a flat f32 array: [R, entropy, stability, topology] per zone. Total length = ZONE_COUNT * 4 = 164.
Sourcepub fn zone_shell(zone_id: u32) -> u8
pub fn zone_shell(zone_id: u32) -> u8
Get the shell that a zone belongs to.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for WorldGrid
impl RefUnwindSafe for WorldGrid
impl Send for WorldGrid
impl Sync for WorldGrid
impl Unpin for WorldGrid
impl UnsafeUnpin for WorldGrid
impl UnwindSafe for WorldGrid
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more