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
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
See Components::PlayerId
.
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
impl Components
Sourcepub const PLAYER_POV: &[Components]
pub const PLAYER_POV: &[Components]
Components containing information about the currently spectated player (or the one playing if he’s alive).
Sourcepub const SPECTATOR_POV: &[Components]
pub const SPECTATOR_POV: &[Components]
Components only available for spectators.
Sourcepub const ALL: &[Components]
pub const ALL: &[Components]
All the components.