Struct tf_demo_parser::demo::parser::gamestateanalyser::GameState
source · pub struct GameState {
pub players: Vec<Player>,
pub buildings: BTreeMap<EntityId, Building>,
pub world: Option<World>,
pub kills: Vec<Kill>,
pub tick: DemoTick,
}
Fields§
§players: Vec<Player>
§buildings: BTreeMap<EntityId, Building>
§world: Option<World>
§kills: Vec<Kill>
§tick: DemoTick
Implementations§
source§impl GameState
impl GameState
pub fn get_or_create_player(&mut self, entity_id: EntityId) -> &mut Player
pub fn get_or_create_building( &mut self, entity_id: EntityId, class: BuildingClass ) -> &mut Building
pub fn remove_building(&mut self, entity_id: EntityId)
Trait Implementations§
source§impl<'de> Deserialize<'de> for GameState
impl<'de> Deserialize<'de> for GameState
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
source§impl PartialEq for GameState
impl PartialEq for GameState
impl StructuralPartialEq for GameState
Auto Trait Implementations§
impl Freeze for GameState
impl RefUnwindSafe for GameState
impl Send for GameState
impl Sync for GameState
impl Unpin for GameState
impl UnwindSafe for GameState
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