Skip to content

Instantly share code, notes, and snippets.

@kaimallea
Created October 12, 2015 07:01
Show Gist options
  • Save kaimallea/5151469c7f0e241ca4d8 to your computer and use it in GitHub Desktop.
Save kaimallea/5151469c7f0e241ca4d8 to your computer and use it in GitHub Desktop.
struct PlayerRoundStats_t {
int team, kills, deaths, clutch_kills;
};
typedef std::unordered_map<const char *, PlayerRoundStats_t> PlayerRoundStatsMap_t;
typedef std::unordered_map<int, PlayerRoundStatsMap_t> RoundStatsMap_t;
Represents:
{
"1": {
"STEAM_ID_X_X": {
team: 2,
kills: 5
deaths: 0
clutch_kills: 0
}
...
}
"2": {
"STEAM_ID_X_X": {
team: 2,
kills: 5
deaths: 0
clutch_kills: 0
}
...
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment