36 StringID EndGameGetPerformanceTitleFromValue(uint value);
int8 SaveHighScoreValueNetwork()
Save the highscores in a network game when it has ended.
StringID title
NOSAVE, has troubles with changing string-numbers.
No profile, special "custom" highscore.
static const uint MAX_LENGTH_PRESIDENT_NAME_CHARS
The maximum length of a president name in characters including '\0'.
static const int MAX_CHAR_LENGTH
Max. length of UTF-8 encoded unicode character.
Types related to global configuration settings.
static const uint MAX_LENGTH_COMPANY_NAME_CHARS
The maximum length of a company name in characters including '\0'.
void LoadFromHighScore()
Initialize the highscore table to 0 and if any file exists, load in values.
char company[(MAX_LENGTH_COMPANY_NAME_CHARS+MAX_LENGTH_PRESIDENT_NAME_CHARS+5) *MAX_CHAR_LENGTH]
The name of the company and president.
uint32 StringID
Numeric value that represents a string, independent of the selected language.
void ShowHighscoreTable(int difficulty=SP_CUSTOM, int8 rank=-1)
Show the highscore table for a given difficulty.
uint16 score
The score for this high score. Do NOT change type, will break hs.dat.
HighScore _highscore_table[SP_HIGHSCORE_END][5]
various difficulty-settings; top 5
void SaveToHighScore()
Save HighScore table to file.
Types related to companies.
Types related to strings.
int8 SaveHighScoreValue(const Company *c)
Save the highscore for the company.