pub struct Profession {
pub string_table: Option<String>,
pub sprite_sheet: Option<String>,
pub name: String,
pub tooltip: String,
pub death: String,
pub value_48: i32,
pub flag_4c: bool,
pub flag_4d: bool,
pub value_54: f32,
pub value_58: f32,
pub value_50: i32,
pub flag_4e: bool,
}Expand description
Profession: a job citizens can be assigned to.
Original: FUN_1400ae3e0.
Fields§
§string_table: Option<String>The string table.
sprite_sheet: Option<String>The icon’s sprite sheet.
name: StringName key, also the icon’s sprite name (ProfessionBuilder).
tooltip: StringThe tooltip’s key.
death: StringThe death-message key of an accident at its work.
value_48: i32The sort priority in the professions list.
flag_4c: boolWorks anywhere (laborers and builders).
flag_4d: boolWith a workplace, the citizen does not catch diseases (the doctor).
value_54: f32The accident odds’ years.
value_58: f32The accident odds’ factor.
value_50: i32How much a worker carries (the laborer’s is what home stocking carries at least).
flag_4e: boolWhether it is in the professions list (inferred).
Trait Implementations§
Source§impl Clone for Profession
impl Clone for Profession
Source§fn clone(&self) -> Profession
fn clone(&self) -> Profession
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 moreAuto Trait Implementations§
impl Freeze for Profession
impl RefUnwindSafe for Profession
impl Send for Profession
impl Sync for Profession
impl Unpin for Profession
impl UnsafeUnpin for Profession
impl UnwindSafe for Profession
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