pub type RotationRoleEvent = PlayerStateSpan<RoleState>;Expand description
A span of game time during which a player held one rotation role. Spans are
only emitted while rotation tracking is active (live play, full 2v2/3v3
rosters), so they never carry RoleState::Unknown.
Aliased Type§
pub struct RotationRoleEvent {
pub time: f32,
pub frame: usize,
pub end_time: f32,
pub end_frame: usize,
pub duration: f32,
pub player: RemoteId,
pub player_position: Option<[f32; 3]>,
pub is_team_0: bool,
pub state: RoleState,
}Fields§
§time: f32§frame: usize§end_time: f32§end_frame: usize§duration: f32§player: RemoteId§player_position: Option<[f32; 3]>§is_team_0: bool§state: RoleState