pub struct GameState { /* private fields */ }Implementations§
Source§impl GameState
impl GameState
pub fn get_items(&self) -> Option<&Items>
pub fn get_heroes(&self) -> Option<&GameHeroes>
pub fn get_players(&self) -> Option<&GameHeroes>
pub fn get_hero(&self) -> Option<&Hero>
pub fn get_team_player_items( &self, team: &Team, id: &PlayerID, ) -> Option<&Items>
pub fn get_team_player_hero(&self, team: &Team, id: &PlayerID) -> Option<&Hero>
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
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