pub struct Pasture {
pub kind: Option<usize>,
pub livestock: Vec<usize>,
pub limit: i32,
pub produced: i32,
pub area: [i16; 4],
}Expand description
PastureComponent’s livestock side: the kind (animal template), its animals in joining order, the most it keeps (the window’s slider), products gathered; with the MapComponent’s area (x, y, width, height).
Fields§
§kind: Option<usize>The animal template it keeps, if any.
livestock: Vec<usize>Its animals.
limit: i32The most animals it keeps.
produced: i32The amount produced that is not yet in piles.
area: [i16; 4]The area (x, y, width, height).
Trait Implementations§
impl StructuralPartialEq for Pasture
Auto Trait Implementations§
impl Freeze for Pasture
impl RefUnwindSafe for Pasture
impl Send for Pasture
impl Sync for Pasture
impl Unpin for Pasture
impl UnsafeUnpin for Pasture
impl UnwindSafe for Pasture
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