pub struct CropCell {
pub cell: i32,
pub state: i32,
pub entity: Option<usize>,
pub pile: bool,
}Expand description
One cell of a field (0x20 bytes).
Fields§
§cell: i32The map cell.
state: i320 to plant, 1 growing, 2 done (harvested or lost).
entity: Option<usize>The crop entity.
pile: boolHarvesting this cell leaves a pile.
Trait Implementations§
impl Copy for CropCell
impl Eq for CropCell
impl StructuralPartialEq for CropCell
Auto Trait Implementations§
impl Freeze for CropCell
impl RefUnwindSafe for CropCell
impl Send for CropCell
impl Sync for CropCell
impl Unpin for CropCell
impl UnsafeUnpin for CropCell
impl UnwindSafe for CropCell
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