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

Methods

impl LiveDataPacket
[src]

Yields the PlayerInfo for each player in the match.

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 Clone for LiveDataPacket
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Default for LiveDataPacket
[src]

Returns the "default value" for a type. Read more

Auto Trait Implementations