Player12
An open source football management simulator
Loading...
Searching...
No Matches
data_hub.cpp File Reference
#include "model/data_hub.h"
#include <algorithm>
#include <map>
#include <nlohmann/json.hpp>
#include <numeric>
#include <unordered_map>
#include <utility>
#include "model/match_engine.h"
#include "model/world_rng.h"

Functions

ManagedMatchSnapshot captureSnapshot (const MatchEngine &engine, const GameDateValue &date, TeamID home_id, TeamID away_id, bool managed_home)
 
const char * leaderMetricKey (LeaderMetric metric)
 
const char * hubMetricKey (HubMetric metric)
 
const char * hubMetricHelpKey (HubMetric metric)
 

Function Documentation

◆ captureSnapshot()

ManagedMatchSnapshot captureSnapshot ( const MatchEngine &  engine,
const GameDateValue &  date,
TeamID  home_id,
TeamID  away_id,
bool  managed_home 
)

Captures the snapshot of a finished (or running) live match.

◆ hubMetricHelpKey()

const char * hubMetricHelpKey ( HubMetric  metric)

◆ hubMetricKey()

const char * hubMetricKey ( HubMetric  metric)

Language key of a metric's name / definition.

◆ leaderMetricKey()

const char * leaderMetricKey ( LeaderMetric  metric)