pub struct WorkDescription {
pub max_workers: i32,
pub value_28: i32,
pub value_2c: i32,
pub per_area: bool,
pub area: i32,
pub flag_20: bool,
}Expand description
WorkDescription (Template\X.rsc:work).
Original: FUN_140133d80.
Fields§
§max_workers: i32Most workers.
Original: FUN_140133a90.
value_28: i32The fewest workers the player may set.
value_2c: i32The most workers the player may set.
per_area: boolScale the most workers by the footprint’s area over area cells.
area: i32The area, in cells, that per_area divides by.
flag_20: boolWhether the player may change the most workers in the building’s window.
Trait Implementations§
Source§impl Clone for WorkDescription
impl Clone for WorkDescription
Source§fn clone(&self) -> WorkDescription
fn clone(&self) -> WorkDescription
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for WorkDescription
impl Debug for WorkDescription
Source§impl Default for WorkDescription
impl Default for WorkDescription
Source§fn default() -> WorkDescription
fn default() -> WorkDescription
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for WorkDescription
impl RefUnwindSafe for WorkDescription
impl Send for WorkDescription
impl Sync for WorkDescription
impl Unpin for WorkDescription
impl UnsafeUnpin for WorkDescription
impl UnwindSafe for WorkDescription
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