Enum Components

Source
pub enum Components {
Show 17 variants Provider, PlayerId, PlayerState, PlayerMatchStats, PlayerWeapons, Map, MapRoundWins, Round, AllGrenages, AllPlayersId, AllPlayersMatchStats, AllPlayersPosition, AllPlayersStates, AllPlayersWeapons, Bomb, PhaseCountdowns, PlayerPosition,
}
Expand description

Components available.

You can find exemples of what each component does here (archive).

Variants§

§

Provider

General info about the client being listened to, the most import one being it’s SteamID64.

§

PlayerId

General info about the player being spectated (yourself if you are playing and alive).

§

PlayerState

Current state about the player being spectated (i.e. health, armor, money, …).

§

PlayerMatchStats

Match statistics about the player being spectated (i.e. kills, assists, …).

§

PlayerWeapons

Weapons held by the player being spectated.

§

Map

Map and game information (i.e. map name, round number, teams score, …).

§

MapRoundWins

Winning condition of every round played.

§

Round

Current round information, similar to Components::PhaseCountdowns.

§

AllGrenages

State of every grenades on the map (i.e. coordinates, lifetime, velocity, …).

§

AllPlayersId

§

AllPlayersMatchStats

§

AllPlayersPosition

§

AllPlayersStates

§

AllPlayersWeapons

§

Bomb

State, position, and other information about the bomb.

§

PhaseCountdowns

Current phase of the round information, similar to Components::Round.

§

PlayerPosition

Coordinates of the player being spectated.

Implementations§

Source§

impl Components

Source

pub const PLAYER_POV: &[Components]

Components containing information about the currently spectated player (or the one playing if he’s alive).

Source

pub const SPECTATOR_POV: &[Components]

Components only available for spectators.

Source

pub const ALL: &[Components]

All the components.

Trait Implementations§

Source§

impl PartialEq for Components

Source§

fn eq(&self, other: &Components) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Eq for Components

Source§

impl StructuralPartialEq for Components

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.