Struct dotrix_terrain::Instance[][src]

pub struct Instance { /* fields omitted */ }

Chunk instance of the terrain

Implementations

impl Instance[src]

pub fn from(position: Vec3i, node: &OctreeNode<VoxelMap>, index: u8) -> Self[src]

Constructs Instance from OctreeNode at some position

pub fn polygonize(
    &mut self,
    assets: &mut Assets,
    world: &mut World,
    round_up: &[u8; 3]
)
[src]

Generates polygons of the Instance

pub fn block(&self) -> Block[src]

Constructs Block component from the Instance

pub fn round_up(&self, instances: &HashMap<Vec3i, Instance>) -> [u8; 3][src]

Finds what Instances surrounds the current one

Auto Trait Implementations

impl !RefUnwindSafe for Instance

impl Send for Instance

impl Sync for Instance

impl Unpin for Instance

impl !UnwindSafe for Instance

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Component for T where
    T: 'static + Send + Sync
[src]

impl<T> Downcast<T> for T

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> Pointable for T

type Init = T

The type for initializers.

impl<T> Service for T where
    T: 'static + Send + Sync
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Upcast<T> for T

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,