pub enum HeightmapRead {
Read {
path: String,
width: u32,
depth: u32,
grey: Vec<u8>,
},
Unreadable {
path: String,
why: String,
},
}Expand description
The site plan’s heightmap as a loader read it.
The DSL reads no file: the loader decodes the image the plan names and
attaches it to the Campaign (Campaign::heightmap), and everything here
reads that. Grey values only, row-major over z then x, so
grey[pz * width + px] is column (region.min.x + px, region.min.z + pz).
Variants§
Read
The decoded image.
Fields
Unreadable
The image could not be read or decoded; the loader’s words.
Trait Implementations§
Source§impl Clone for HeightmapRead
impl Clone for HeightmapRead
Source§impl Debug for HeightmapRead
impl Debug for HeightmapRead
impl Eq for HeightmapRead
Source§impl PartialEq for HeightmapRead
impl PartialEq for HeightmapRead
impl StructuralPartialEq for HeightmapRead
Auto Trait Implementations§
impl Freeze for HeightmapRead
impl RefUnwindSafe for HeightmapRead
impl Send for HeightmapRead
impl Sync for HeightmapRead
impl Unpin for HeightmapRead
impl UnsafeUnpin for HeightmapRead
impl UnwindSafe for HeightmapRead
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