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

The current holder of one record. More...

#include <records.h>

Public Attributes

RecordScope scope = RecordScope::Club
 
std::uint32_t scope_id = 0
 
RecordKind kind = RecordKind::BiggestWin
 
std::int64_t value = 0
 
std::int32_t value2 = 0
 
TeamID team_id = 0
 
TeamID opponent_id = 0
 
PlayerID player_id = 0
 
std::string name
 
GameDateValue date
 
std::uint16_t season_year = 0
 
std::uint8_t goals_for = 0
 
std::uint8_t goals_against = 0
 
bool home = true
 

Detailed Description

The current holder of one record.

team_id is the club that set it (for league records: the club whose match, season or player it was), opponent_id the other side of a match. Names are copied because players retire and leave the database.

Member Data Documentation

◆ date

GameDateValue RecordEntry::date

◆ goals_against

std::uint8_t RecordEntry::goals_against = 0

◆ goals_for

std::uint8_t RecordEntry::goals_for = 0

Match records: score of team_id.

◆ home

bool RecordEntry::home = true

Match records: team_id played at home.

◆ kind

RecordKind RecordEntry::kind = RecordKind::BiggestWin

◆ name

std::string RecordEntry::name

Player name (scorer, signing), else empty.

◆ opponent_id

TeamID RecordEntry::opponent_id = 0

◆ player_id

PlayerID RecordEntry::player_id = 0

◆ scope

RecordScope RecordEntry::scope = RecordScope::Club

◆ scope_id

std::uint32_t RecordEntry::scope_id = 0

TeamID or LeagueID.

◆ season_year

std::uint16_t RecordEntry::season_year = 0

◆ team_id

TeamID RecordEntry::team_id = 0

◆ value

std::int64_t RecordEntry::value = 0

◆ value2

std::int32_t RecordEntry::value2 = 0

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