pub struct SpaceBuilder<'a> {
pub chunks: &'a Chunks,
pub coords: Vec2<i32>,
pub params: SpaceParams,
pub needs_voxels: bool,
pub needs_lights: bool,
pub needs_height_maps: bool,
}
Expand description
A data structure to build a space.
Fields
chunks: &'a Chunks
coords: Vec2<i32>
params: SpaceParams
needs_voxels: bool
needs_lights: bool
needs_height_maps: bool
Implementations
sourceimpl SpaceBuilder<'_>
impl SpaceBuilder<'_>
sourcepub fn needs_voxels(&mut self) -> &mut Self
pub fn needs_voxels(&mut self) -> &mut Self
Set this space to load in voxel data.
sourcepub fn needs_lights(&mut self) -> &mut Self
pub fn needs_lights(&mut self) -> &mut Self
Set this space to load in lighting data.
sourcepub fn needs_height_maps(&mut self) -> &mut Self
pub fn needs_height_maps(&mut self) -> &mut Self
Set this space to load in height map data.
Auto Trait Implementations
impl<'a> RefUnwindSafe for SpaceBuilder<'a>
impl<'a> Send for SpaceBuilder<'a>
impl<'a> Sync for SpaceBuilder<'a>
impl<'a> Unpin for SpaceBuilder<'a>
impl<'a> UnwindSafe for SpaceBuilder<'a>
Blanket Implementations
impl<T> Any for T where
T: Any,
impl<T> Any for T where
T: Any,
fn get_type_id(&self) -> TypeId
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more