Struct game_features::LandClaimSettings[][src]

pub struct LandClaimSettings {
    pub claim_size: [f32; 3],
}

The settings related to terrain claiming and how the world is divided into claimable chunks.

Fields

claim_size: [f32; 3]

The size of the claimable chunks.

Implementations

impl LandClaimSettings[src]

pub fn claim_id_from_position(&self, pos: &[f32; 3]) -> (i32, i32, i32)[src]

Get the three dimensional ID of this claim area.

Auto Trait Implementations

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> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[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.