pub struct Animal {Show 16 fields
pub template: usize,
pub character: Character,
pub herd: Option<usize>,
pub flags: u32,
pub home: i32,
pub timer: i64,
pub area: [i16; 4],
pub male: bool,
pub age: f32,
pub life: f32,
pub breed: i64,
pub livestock: Option<Livestock>,
pub variant: usize,
pub mesh: usize,
pub scale: f32,
pub dying: bool,
}Expand description
AnimalComponent and WildAnimalComponent, with the animal’s CharacterComponent.
Fields§
§template: usizeThe template.
character: CharacterThe character: position and movement.
herd: Option<usize>WildAnimalComponent: the herd (index into Wildlife::herds).
flags: u32§home: i32The home cell.
timer: i64Until the next decision.
area: [i16; 4]The area it keeps to (x, y, width, height).
male: boolMale (the second mesh, antlers).
age: f32The age in years.
life: f32The lifespan in years.
breed: i64Until a breeding male’s young (livestock only).
livestock: Option<Livestock>LivestockComponent.
variant: usizeThe model variant.
mesh: usizeThe mesh.
scale: f32Model scale.
Original: FUN_14010c7f0.
dying: boolQueued for removal (entity flag 0x400).
Original: FUN_1400c8370.
Auto Trait Implementations§
impl Freeze for Animal
impl RefUnwindSafe for Animal
impl Send for Animal
impl Sync for Animal
impl Unpin for Animal
impl UnsafeUnpin for Animal
impl UnwindSafe for Animal
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