Player12
An open source football management simulator
Loading...
Searching...
No Matches
MatchDetail Struct Reference

Per-match aggregates behind the match report's analysis: touch maps, the pass network, progressive passes, pressures, expected assists, final-third pressure over time and the substitutions, for both sides. Stored as a compact binary blob next to the managed match's snapshot. More...

#include <match_insights.h>

Public Member Functions

bool empty () const
 
std::optional< std::size_t > indexOf (PlayerID player) const
 
std::vector< std::uint8_t > encode () const
 

Static Public Member Functions

static std::optional< MatchDetail > decode (std::span< const std::uint8_t > data)
 

Public Attributes

std::vector< DetailPlayer > players
 
std::vector< PassLink > links
 
std::array< std::array< std::uint8_t, MatchTracking::BUCKETS >, 2 > final_third {}
 
std::vector< DetailSubstitution > substitutions
 

Detailed Description

Per-match aggregates behind the match report's analysis: touch maps, the pass network, progressive passes, pressures, expected assists, final-third pressure over time and the substitutions, for both sides. Stored as a compact binary blob next to the managed match's snapshot.

Member Function Documentation

◆ decode()

std::optional< MatchDetail > MatchDetail::decode ( std::span< const std::uint8_t >  data)
static

nullopt for malformed or unknown data.

◆ empty()

bool MatchDetail::empty ( ) const
inline

◆ encode()

std::vector< std::uint8_t > MatchDetail::encode ( ) const

Versioned binary encoding (varints, sparse cells).

◆ indexOf()

std::optional< std::size_t > MatchDetail::indexOf ( PlayerID  player) const

Index of a player in players, or nullopt.

Member Data Documentation

◆ final_third

std::array<std::array<std::uint8_t, MatchTracking::BUCKETS>, 2> MatchDetail::final_third {}

Final-third touches per five-minute bucket, index 0 home.

◆ links

std::vector<PassLink> MatchDetail::links

◆ players

std::vector<DetailPlayer> MatchDetail::players

◆ substitutions

std::vector<DetailSubstitution> MatchDetail::substitutions

The documentation for this struct was generated from the following files: