pub enum GoalKind {
Building {
all: bool,
buildings: Vec<String>,
},
Population(i32),
Stat {
e30: i32,
e34: i32,
e38: i32,
amount: i32,
flag: bool,
r48: String,
r60: String,
e78: i32,
i7c: i32,
},
Time {
years: i32,
within: bool,
},
FinishTutorial(Option<String>),
}Expand description
A Goal’s own fields, by class.
Variants§
Building
Some buildings exist.
Fields
Population(i32)
The population is at least this many citizens.
Stat
A statistic compared with an amount or with a second statistic.
Fields
Time
A number of years passed.
Fields
FinishTutorial(Option<String>)
The tutorial is done.
Trait Implementations§
impl StructuralPartialEq for GoalKind
Auto Trait Implementations§
impl Freeze for GoalKind
impl RefUnwindSafe for GoalKind
impl Send for GoalKind
impl Sync for GoalKind
impl Unpin for GoalKind
impl UnsafeUnpin for GoalKind
impl UnwindSafe for GoalKind
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