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 AbilityId
s.
units: FxHashMap<UnitTypeId, UnitTypeData>
Information about units mapped to UnitTypeId
s.
upgrades: FxHashMap<UpgradeId, UpgradeData>
Information about upgrades mapped to UpgradeId
s.
buffs: FxHashMap<BuffId, BuffData>
Information about buffs mapped to BuffId
s.
effects: FxHashMap<EffectId, EffectData>
Information about effects mapped to EffectId
s.
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