pub struct Profession {
pub reference: String,
pub name: String,
pub string_table: Option<String>,
pub sprite_sheet: Option<String>,
pub works_anywhere: bool,
pub immune_at_work: bool,
pub death: String,
pub accident: (f32, f32),
}Expand description
Profession fields the simulation reads.
Original: FUN_1400ae3e0.
Fields§
§reference: StringGame\Profession\Profession.rsc:<key>.
name: StringName key (ProfessionBuilder), in the string table.
string_table: Option<String>The string table of the name, if not the default one.
sprite_sheet: Option<String>The icon’s sprite sheet (sprite).
works_anywhere: boolWorks anywhere (laborers and builders): Jobs::TryList offers it work outside its
workplace, and the job status icon stays off without one.
Original: FUN_1400fce80.
immune_at_work: boolWith a workplace, the citizen does not catch diseases (the doctor).
Original: FUN_14011c060.
death: StringThe death-message key of an accident at its work.
accident: (f32, f32)The accident odds (years, factor): on average one accident per years × factor years
at work; none when the factor is not positive.
Original: FUN_1400ae760.
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 moreSource§impl Debug for Profession
impl Debug for Profession
Source§impl Default for Profession
impl Default for Profession
Source§fn default() -> Profession
fn default() -> Profession
Returns the “default value” for a type. Read more
Auto 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