pub struct Work {
pub entity: usize,
pub id: i32,
pub priority: i32,
pub cell: i32,
pub failed_pass: i32,
pub patience: i64,
pub patience_base: i64,
pub far_count: i32,
pub profession: usize,
pub kind: WorkKind,
}Expand description
Work.
Original: FUN_1400fc7b0.
Fields§
§entity: usizeThe owning entity.
id: i32The id.
priority: i32The priority.
cell: i32The owner’s map-rectangle centre cell.
failed_pass: i32The manager pass in which it last answered “not now”.
patience: i64The clock of the distance patience: how long a far work waits before a citizen takes it.
Original: used by FUN_1400fc3c0.
patience_base: i64The clock when the patience was last brought up to date.
far_count: i32How many times a citizen found the work too far.
profession: usizeThe profession whose citizens do this work.
kind: WorkKindWhat kind of work it is.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Work
impl RefUnwindSafe for Work
impl Send for Work
impl Sync for Work
impl Unpin for Work
impl UnsafeUnpin for Work
impl UnwindSafe for Work
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