Skip to main content

Nomad

Struct Nomad 

Source
pub struct Nomad {
    pub template: usize,
    pub character: Character,
    pub state: i8,
    pub town_hall: Option<usize>,
    pub spawn: [f32; 3],
    pub target: [f32; 3],
    pub timer: i64,
    pub variant: usize,
}
Expand description

NomadComponent: its state (0 walking to the town hall, 1 waiting, 2 leaving), the town hall, where it came from, where it waits, until it wanders, its model variant (0 men, 1 women).

Fields§

§template: usize

The template.

§character: Character

The character.

§state: i8

The state: 0 walking to the town hall, 1 waiting, 2 leaving.

§town_hall: Option<usize>

The town hall.

§spawn: [f32; 3]

Where it came from.

§target: [f32; 3]

Where it waits.

§timer: i64

The time until it wanders.

§variant: usize

The model variant: 0 men, 1 women.

Auto Trait Implementations§

§

impl Freeze for Nomad

§

impl RefUnwindSafe for Nomad

§

impl Send for Nomad

§

impl Sync for Nomad

§

impl Unpin for Nomad

§

impl UnsafeUnpin for Nomad

§

impl UnwindSafe for Nomad

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.