pub struct GameplayState {
pub game_state: Option<i32>,
pub ball_has_been_hit: Option<bool>,
pub kickoff_countdown_time: Option<i32>,
pub team_zero_score: Option<i32>,
pub team_one_score: Option<i32>,
pub possession_team_is_team_0: Option<bool>,
pub scored_on_team_is_team_0: Option<bool>,
pub current_in_game_team_player_counts: [usize; 2],
}Fields§
§game_state: Option<i32>§ball_has_been_hit: Option<bool>§kickoff_countdown_time: Option<i32>§team_zero_score: Option<i32>§team_one_score: Option<i32>§possession_team_is_team_0: Option<bool>§scored_on_team_is_team_0: Option<bool>§current_in_game_team_player_counts: [usize; 2]Implementations§
Source§impl GameplayState
impl GameplayState
pub fn is_live_play(&self) -> bool
pub fn current_score(&self) -> Option<(i32, i32)>
pub fn kickoff_phase_active(&self) -> bool
pub fn current_in_game_team_player_count(&self, is_team_0: bool) -> usize
Trait Implementations§
Source§impl Clone for GameplayState
impl Clone for GameplayState
Source§fn clone(&self) -> GameplayState
fn clone(&self) -> GameplayState
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for GameplayState
impl Debug for GameplayState
Source§impl Default for GameplayState
impl Default for GameplayState
Source§fn default() -> GameplayState
fn default() -> GameplayState
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for GameplayState
impl RefUnwindSafe for GameplayState
impl Send for GameplayState
impl Sync for GameplayState
impl Unpin for GameplayState
impl UnsafeUnpin for GameplayState
impl UnwindSafe for GameplayState
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