pub struct GlobalHeightmaps { /* private fields */ }
Expand description
A global heightmaps palette used by level, each chunk created into it will include all these heightmaps and automatically computed and updated when modifying the chunk.
Implementations§
Source§impl GlobalHeightmaps
impl GlobalHeightmaps
pub fn new() -> Self
pub fn with_all(slice: &[&'static HeightmapType]) -> Self
pub fn register(&mut self, heightmap_type: &'static HeightmapType)
pub fn register_all(&mut self, slice: &[&'static HeightmapType])
pub fn get_heightmap_index( &self, heightmap_type: &'static HeightmapType, ) -> Option<usize>
pub fn get_heightmap_from(&self, index: usize) -> Option<&'static HeightmapType>
pub fn has_heightmap_type(&self, heightmap_type: &'static HeightmapType) -> bool
pub fn iter_heightmap_types( &self, ) -> impl Iterator<Item = &'static HeightmapType> + '_
pub fn heightmaps_count(&self) -> usize
Auto Trait Implementations§
impl Freeze for GlobalHeightmaps
impl RefUnwindSafe for GlobalHeightmaps
impl Send for GlobalHeightmaps
impl Sync for GlobalHeightmaps
impl Unpin for GlobalHeightmaps
impl UnwindSafe for GlobalHeightmaps
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