pub struct Herd {
pub entity: usize,
pub template: usize,
pub population: usize,
pub index: i32,
pub animals: Vec<usize>,
pub moving: bool,
pub target: i32,
pub rest: i64,
pub regrow: i64,
}Expand description
HerdComponent.
Fields§
§entity: usizeThe entity.
template: usizeThe template.
population: usizeThe population.
index: i32The herd’s block in the population.
animals: Vec<usize>The animals (entities), in joining order.
moving: boolMoving to the target (else resting).
target: i32The target map cell (−1 none).
rest: i64The rest time left.
regrow: i64The time towards the next regrowth.
Trait Implementations§
impl StructuralPartialEq for Herd
Auto Trait Implementations§
impl Freeze for Herd
impl RefUnwindSafe for Herd
impl Send for Herd
impl Sync for Herd
impl Unpin for Herd
impl UnsafeUnpin for Herd
impl UnwindSafe for Herd
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