Struct rlbot::LiveDataPacket [−][src]
#[repr(C)]pub struct LiveDataPacket { pub GameCars: [PlayerInfo; 10], pub NumCars: c_int, pub GameBoosts: [BoostInfo; 50], pub NumBoosts: c_int, pub GameBall: BallInfo, pub GameInfo: GameInfo, }
Fields
GameCars: [PlayerInfo; 10]
NumCars: c_int
GameBoosts: [BoostInfo; 50]
NumBoosts: c_int
GameBall: BallInfo
GameInfo: GameInfo
Methods
impl LiveDataPacket
[src]
impl LiveDataPacket
pub fn cars(
&self
) -> impl Iterator<Item = &PlayerInfo>
[src]
pub fn cars(
&self
) -> impl Iterator<Item = &PlayerInfo>
Yields the PlayerInfo
for each player in the match.
pub fn match_score(&self) -> [i32; 2]
[src]
pub fn match_score(&self) -> [i32; 2]
Get the scores for the blue and orange teams, in that order.
RLBot doesn't seem to return this info(?) so instead we compute it manually (and inaccurately) by adding up the goals for each individual player.
Trait Implementations
impl Copy for LiveDataPacket
[src]
impl Copy for LiveDataPacket
impl Clone for LiveDataPacket
[src]
impl Clone for LiveDataPacket
fn clone(&self) -> LiveDataPacket
[src]
fn clone(&self) -> LiveDataPacket
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0
[src]Performs copy-assignment from source
. Read more
impl Default for LiveDataPacket
[src]
impl Default for LiveDataPacket
Auto Trait Implementations
impl Send for LiveDataPacket
impl Send for LiveDataPacket
impl Sync for LiveDataPacket
impl Sync for LiveDataPacket