pub struct GameData {
pub abilities: FxHashMap<AbilityId, AbilityData>,
pub units: FxHashMap<UnitTypeId, UnitTypeData>,
pub upgrades: FxHashMap<UpgradeId, UpgradeData>,
pub buffs: FxHashMap<BuffId, BuffData>,
pub effects: FxHashMap<EffectId, EffectData>,
}Expand description
All the data about different ids stored here.
Can be accessed through game_data field.
Fields§
§abilities: FxHashMap<AbilityId, AbilityData>Information about abilities mapped to AbilityIds.
units: FxHashMap<UnitTypeId, UnitTypeData>Information about units mapped to UnitTypeIds.
upgrades: FxHashMap<UpgradeId, UpgradeData>Information about upgrades mapped to UpgradeIds.
buffs: FxHashMap<BuffId, BuffData>Information about buffs mapped to BuffIds.
effects: FxHashMap<EffectId, EffectData>Information about effects mapped to EffectIds.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for GameData
impl RefUnwindSafe for GameData
impl Send for GameData
impl Sync for GameData
impl Unpin for GameData
impl UnwindSafe for GameData
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