pub struct DifficultySettings {
pub spoil_time_modifier: f64,
pub technology_price_multiplier: f64,
}Expand description
Technology difficulty settings. Updating any of the attributes will immediately take effect in the game engine.
Fields§
§spoil_time_modifier: f64§technology_price_multiplier: f64Trait Implementations§
Source§impl Clone for DifficultySettings
impl Clone for DifficultySettings
Source§fn clone(&self) -> DifficultySettings
fn clone(&self) -> DifficultySettings
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 moreimpl Copy for DifficultySettings
Source§impl Debug for DifficultySettings
impl Debug for DifficultySettings
Source§impl Default for DifficultySettings
impl Default for DifficultySettings
Source§fn default() -> DifficultySettings
fn default() -> DifficultySettings
Returns the “default value” for a type. Read more
Source§impl PartialEq for DifficultySettings
impl PartialEq for DifficultySettings
impl StructuralPartialEq for DifficultySettings
Auto Trait Implementations§
impl Freeze for DifficultySettings
impl RefUnwindSafe for DifficultySettings
impl Send for DifficultySettings
impl Sync for DifficultySettings
impl Unpin for DifficultySettings
impl UnsafeUnpin for DifficultySettings
impl UnwindSafe for DifficultySettings
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