pub struct ImmigrationTemplate {
pub nomad: usize,
pub population: i32,
pub required: Vec<usize>,
pub share: (f32, f32),
pub wait: (f32, f32),
pub months: (i32, i32),
pub leave: i32,
pub margin: i32,
pub risk: f32,
pub risk_months: i32,
}Expand description
A resolved ImmigrationDescription.
Original: FUN_14004f150, FUN_14004f300.
Fields§
§nomad: usizeThe nomad template.
population: i32The population the town needs.
required: Vec<usize>Templates the town must have placed (Market, TradingPost).
The band’s size as a share of the population.
wait: (f32, f32)Months until the next band: the first value plus a random share of the second.
months: (i32, i32)The months a band may come in.
leave: i32From this month waiting nomads leave (not serialized; 7).
margin: i32Their map-edge margin (not serialized; 10).
risk: f32The visitors’ disease risk.
risk_months: i32How many months the risk lasts.
Trait Implementations§
Source§impl Clone for ImmigrationTemplate
impl Clone for ImmigrationTemplate
Source§fn clone(&self) -> ImmigrationTemplate
fn clone(&self) -> ImmigrationTemplate
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 ImmigrationTemplate
impl Debug for ImmigrationTemplate
Source§impl Default for ImmigrationTemplate
impl Default for ImmigrationTemplate
Source§fn default() -> ImmigrationTemplate
fn default() -> ImmigrationTemplate
Returns the “default value” for a type. Read more
Source§impl PartialEq for ImmigrationTemplate
impl PartialEq for ImmigrationTemplate
impl StructuralPartialEq for ImmigrationTemplate
Auto Trait Implementations§
impl Freeze for ImmigrationTemplate
impl RefUnwindSafe for ImmigrationTemplate
impl Send for ImmigrationTemplate
impl Sync for ImmigrationTemplate
impl Unpin for ImmigrationTemplate
impl UnsafeUnpin for ImmigrationTemplate
impl UnwindSafe for ImmigrationTemplate
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