31 StringID EndGameGetPerformanceTitleFromValue(uint value);
Types related to companies.
void ShowHighscoreTable(int difficulty=SP_CUSTOM, int8_t rank=-1)
Show the highscore table for a given difficulty.
void LoadFromHighScore()
Initialize the highscore table to 0 and if any file exists, load in values.
std::array< HighScores, SP_HIGHSCORE_END > HighScoresTable
Record high score for each of the difficulty levels.
int8_t SaveHighScoreValueNetwork()
Save the highscores in a network game when it has ended.
void SaveToHighScore()
Save HighScore table to file.
std::array< HighScore, 5 > HighScores
Record 5 high scores.
HighScoresTable _highscore_table
Table with all the high scores.
int8_t SaveHighScoreValue(const Company *c)
Save the highscore for the company.
Types related to global configuration settings.
@ SP_CUSTOM
No profile, special "custom" highscore.
Types related to strings.
uint32_t StringID
Numeric value that represents a string, independent of the selected language.
static const StringID INVALID_STRING_ID
Constant representing an invalid string (16bit in case it is used in savegames)
std::string name
The name of the companyy and president.
uint16_t score
The score for this high score. Do NOT change type, will break hs.dat.
StringID title
NOSAVE, has troubles with changing string-numbers.