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: usizeThe template.
character: CharacterThe character.
state: i8The 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: i64The time until it wanders.
variant: usizeThe 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> 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