pub struct GameConfigJson {
pub playerLives: u64,
pub maxStrikes: u64,
pub maxRounds: u64,
pub maxFightRounds: u64,
pub powerModeThreshold: u64,
pub powerModeModifier: f64,
pub lightSaberModifiers: HashMap<LightsaberType, LightsaberModifier>,
pub unitProbabilities: Vec<UnitProbabilityJson>,
pub timeouts: HashMap<PhaseType, u64>,
pub liveLossOnDefeat: BTreeMap<u64, u64>,
pub fieldModifiers: HashMap<TileType, TileModifier>,
}Fields§
§playerLives: u64§maxStrikes: u64§maxRounds: u64§maxFightRounds: u64§powerModeThreshold: u64§powerModeModifier: f64§lightSaberModifiers: HashMap<LightsaberType, LightsaberModifier>§unitProbabilities: Vec<UnitProbabilityJson>§timeouts: HashMap<PhaseType, u64>§liveLossOnDefeat: BTreeMap<u64, u64>§fieldModifiers: HashMap<TileType, TileModifier>Trait Implementations§
Source§impl<'de> Deserialize<'de> for GameConfigJson
impl<'de> Deserialize<'de> for GameConfigJson
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for GameConfigJson
impl RefUnwindSafe for GameConfigJson
impl Send for GameConfigJson
impl Sync for GameConfigJson
impl Unpin for GameConfigJson
impl UnwindSafe for GameConfigJson
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