[−][src]Struct rlbot::ffi::LiveDataPacket
Fields
GameCars: [PlayerInfo; 10]
NumCars: c_int
GameBoosts: [BoostInfo; 50]
NumBoosts: c_int
GameBall: BallInfo
GameInfo: GameInfo
GameTiles: [TileInfo; 200]
NumTiles: c_int
Teams: [TeamInfo; 2]
NumTeams: c_int
Methods
impl LiveDataPacket
[src]
pub fn cars(&self) -> impl Iterator<Item = &PlayerInfo>
[src]
Yields the PlayerInfo
for each player in the match.
pub fn match_score(&self) -> [i32; 2]
[src]
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]
fn clone(&self) -> LiveDataPacket
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
Performs copy-assignment from source
. Read more
impl Default for LiveDataPacket
[src]
Auto Trait Implementations
impl Send for LiveDataPacket
impl Sync for LiveDataPacket
Blanket Implementations
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
SS: SubsetOf<SP>,