|
Player12
An open source football management simulator
|
Detail of a managed match that the persisted report does not keep: shot positions, set pieces and per-player passing. Captured from the live engine when the result is recorded. Index 0 of the arrays is the managed club, 1 the opponent. More...
#include <data_hub.h>
Public Member Functions | |
| std::string | toJson () const |
Static Public Member Functions | |
| static std::optional< ManagedMatchSnapshot > | fromJson (const std::string &json) |
Public Attributes | |
| GameDateValue | date |
| TeamID | home_id = 0 |
| TeamID | away_id = 0 |
| bool | managed_home = true |
| std::array< std::uint16_t, 2 > | set_piece_shots {} |
| std::array< std::uint16_t, 2 > | set_piece_goals {} |
| std::array< std::uint16_t, 2 > | headed_shots {} |
| std::array< std::uint16_t, 2 > | corners {} |
| std::array< std::uint16_t, 2 > | progressive_passes {} |
| std::array< std::uint16_t, 2 > | passes_completed {} |
| std::vector< ShotRecord > | shots |
| std::vector< PlayerMatchSnapshot > | players |
| MatchDetail | detail |
Detail of a managed match that the persisted report does not keep: shot positions, set pieces and per-player passing. Captured from the live engine when the result is recorded. Index 0 of the arrays is the managed club, 1 the opponent.
|
static |
nullopt for malformed data.
| std::string ManagedMatchSnapshot::toJson | ( | ) | const |
Everything but the detail (which has its own compact encoding).
| TeamID ManagedMatchSnapshot::away_id = 0 |
| std::array<std::uint16_t, 2> ManagedMatchSnapshot::corners {} |
| GameDateValue ManagedMatchSnapshot::date |
| MatchDetail ManagedMatchSnapshot::detail |
Touch maps, pass network and the like of both sides (empty for matches recorded before they were tracked). Stored as its own blob.
| std::array<std::uint16_t, 2> ManagedMatchSnapshot::headed_shots {} |
| TeamID ManagedMatchSnapshot::home_id = 0 |
| bool ManagedMatchSnapshot::managed_home = true |
| std::array<std::uint16_t, 2> ManagedMatchSnapshot::passes_completed {} |
| std::vector<PlayerMatchSnapshot> ManagedMatchSnapshot::players |
Managed side only.
| std::array<std::uint16_t, 2> ManagedMatchSnapshot::progressive_passes {} |
| std::array<std::uint16_t, 2> ManagedMatchSnapshot::set_piece_goals {} |
| std::array<std::uint16_t, 2> ManagedMatchSnapshot::set_piece_shots {} |
| std::vector<ShotRecord> ManagedMatchSnapshot::shots |