pub struct ChunkData {
pub chunk_size: u16,
pub palette: Vec<u32>,
pub ground: Vec<Vec<u16>>,
pub heights: Vec<i32>,
pub zones: Vec<u16>,
pub objects: Vec<ObjectRecord>,
}Expand description
A decoded chunk. Strings are IDs into the pack’s strings table.
Fields§
§chunk_size: u16§palette: Vec<u32>String IDs referenced by the grids.
ground: Vec<Vec<u16>>One grid per ground layer: chunk_size² cells, each a palette index
plus one, or 0 for empty.
heights: Vec<i32>§zones: Vec<u16>Palette index plus one, or 0 for the plane’s default zone.
objects: Vec<ObjectRecord>Implementations§
Trait Implementations§
impl StructuralPartialEq for ChunkData
Auto Trait Implementations§
impl Freeze for ChunkData
impl RefUnwindSafe for ChunkData
impl Send for ChunkData
impl Sync for ChunkData
impl Unpin for ChunkData
impl UnsafeUnpin for ChunkData
impl UnwindSafe for ChunkData
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