pub struct MatchStatsCalculator { /* private fields */ }Expand description
Accumulates match-level scoreboard stats and per-goal context.
Implementations§
Source§impl MatchStatsCalculator
impl MatchStatsCalculator
pub fn new() -> Self
pub fn timeline(&self) -> &[TimelineEvent]
pub fn new_timeline_events(&self) -> &[TimelineEvent]
pub fn goal_context_events(&self) -> &[GoalContextEvent]
pub fn new_goal_context_events(&self) -> &[GoalContextEvent]
pub fn core_player_events(&self) -> &[CorePlayerScoreboardEvent]
pub fn new_core_player_events(&self) -> &[CorePlayerScoreboardEvent]
pub fn core_player_goal_context_events(&self) -> &[CorePlayerGoalContextEvent]
pub fn new_core_player_goal_context_events( &self, ) -> &[CorePlayerGoalContextEvent]
pub fn finish(&mut self) -> SubtrActorResult<()>
Sourcepub fn attach_goal_pressure_durations(
&mut self,
pressure_sessions: &[TerritorialPressureEvent],
)
pub fn attach_goal_pressure_durations( &mut self, pressure_sessions: &[TerritorialPressureEvent], )
Attach to each recorded goal how long the scoring team’s established
territorial-pressure session had been running when the goal was scored
(goal_time - session.start_time). The session is the scoring team’s
pressure session that spans the goal frame. Goals scored with no active
pressure session (e.g. clean counter-attacks) are left as None.
Runs at finish, after territorial-pressure sessions are finalized, so it must be fed the pressure calculator’s projected (final) sessions.
Source§impl MatchStatsCalculator
impl MatchStatsCalculator
pub fn update_parts( &mut self, frame: &FrameInfo, gameplay: &GameplayState, ball: &BallFrameState, players: &PlayerFrameState, events: &FrameEventsState, live_play_state: &LivePlayState, touch_state: &TouchState, ) -> SubtrActorResult<()>
Trait Implementations§
Source§impl Clone for MatchStatsCalculator
impl Clone for MatchStatsCalculator
Source§impl Debug for MatchStatsCalculator
impl Debug for MatchStatsCalculator
Auto Trait Implementations§
impl Freeze for MatchStatsCalculator
impl RefUnwindSafe for MatchStatsCalculator
impl Send for MatchStatsCalculator
impl Sync for MatchStatsCalculator
impl Unpin for MatchStatsCalculator
impl UnsafeUnpin for MatchStatsCalculator
impl UnwindSafe for MatchStatsCalculator
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more