15#define SEASON_ROUND_LABEL_SIZE 32
18#define SEASON_RESUME_STATE_RESTART 5
57#define SEASON_YEAR_LABEL_SIZE 32
207#define SEASON_SAVE_PAYLOAD_SIZE 512
210#define SEASON_SAVE_SLOT_NAME_SIZE 128
213#define SEASON_LOAD_CURRENT 0
216#define SEASON_LOAD_FILE 4
301extern char g_szSeasonSlotFileName[];
320#define g_pPrimarySeasonSave (g_aVehicles[0].GetProfile())
328#define g_pSecondarySeasonSave (g_aVehicles[1].GetProfile())
The saved settings and progress of a player, and the size of the championship.
#define SEASON_RACES
Definition profile.h:17
int g_dwSeasonLoaded
Whether a season is loaded.
int g_dwSaveSlotPlayerIndex
The player whose profile is being loaded, 0 or 1.
bool RestoreSeasonProgressState(void)
Restore the progress of the season from the race just run.
SeasonRaceResult g_LastRaceResultCopy
The previous complete result record.
int ResetSeasonSaveBuffers(void)
Clear both players' save profiles, using static buffers for unassigned profiles.
PlayerProfile g_SeasonProgressPrev
The profile before the race's progress was applied.
char g_szSeasonYearLabel[SEASON_YEAR_LABEL_SIZE]
The displayed championship year.
int g_dwUnusedSeasonMenuValue
An unused value reset with championship menus.
#define SEASON_SAVE_PAYLOAD_SIZE
The bytes of profile memory written to a season file.
Definition season.h:207
int LoadSeasonUI_OnSlotSelected(MenuItemList *pUnused, int *pnSlot)
Reset championship menus and load the selected season slot.
int g_dwLoadSeasonSlotValid
Whether a saved championship slot has been opened.
void SyncSeasonProgress(void)
Copy the season, the round, and the settings of the car and the input device into the progress of the...
void SaveAutoSaveSeason(void)
Save the progress of the season to the file of the automatic save.
bool SaveSeasonSaveFile(void)
Write the first player's profile, checksum, settings, and slot label to g_szSeasonSaveFileName.
void ShutdownGameSession(void)
Release the active race session and restore front-end display settings.
int g_dwSeasonFailed
Whether the front end reports a failed season.
int g_dwSeasonRoundQualified
Whether the current class's round records were cleared for another attempt.
int g_dwRaceResultsSelectedLap
The lap selected on race result menus.
int g_dwSeasonTotalPoints
The total points displayed for the current class.
bool LoadSeasonSaveFile(int nMode, bool bAllowFailure)
Apply g_SeasonProgress for SEASON_LOAD_CURRENT or validate a saved file for other modes.
void LoadAutoSaveSeason(void)
Reset championship menus and restore the automatic save when its file exists.
u16 g_awSeasonRoundPoints[SEASON_RACES]
The points displayed for each round.
u8 g_abSaveFileReadBuffer[SEASON_SAVE_PAYLOAD_SIZE]
The shared buffer for profile and configuration file reads.
void ShutdownGameSessionToSeasonMenu(void)
Shut down the race with the season restart state selected.
void ExitRaceAndProcessSeasonResults(void)
Save championship results when applicable, then shut down the race session.
s8 g_bSeasonClass
The season of the championship the menus show, from 0.
int g_dwSeasonYear
The progress of the championship across its years that the menus show.
SeasonSaveSettings g_LoadedSeasonSettings
The settings read from the end of a season file.
#define SEASON_YEAR_LABEL_SIZE
The year label's buffer size.
Definition season.h:57
u8 g_abSeasonRoundPlace[SEASON_RACES]
The place displayed for each round, from one.
int g_dwSeasonSavedRound
The round backed up when applying a profile.
int g_dwSeasonRound
The round of the season the menus show.
char g_szSeasonSaveSlotName[SEASON_SAVE_SLOT_NAME_SIZE]
The label appended to a saved season.
float g_afLastRaceLapTimes[12]
The lap times copied out of the most recent result.
#define SEASON_ROUND_LABEL_SIZE
The size of g_szSeasonRoundLabel.
Definition season.h:15
void ApplyLoadedSeasonSettings(bool bUpdatePoints)
Apply profile progress and equipment to the game and update the year and round labels.
int g_dwLastRaceResultField18
The retained result value displayed with the last race.
#define SEASON_SAVE_SLOT_NAME_SIZE
The bytes reserved for the saved slot label.
Definition season.h:210
char g_szSeasonRoundLabel[SEASON_ROUND_LABEL_SIZE]
The label of the round of the season.
void ExitRaceSessionToMenu(void)
Clear race resume data and shut down the session with exit state eight.
const char g_szAutoSaveBrf[]
The path used for automatic season saves.
char g_szSecondarySeasonSaveSlotName[SEASON_SAVE_SLOT_NAME_SIZE]
The slot label copied for the second player after loading.
SeasonResumeState g_SeasonResumeState
The result and resume state used when returning to championship menus.
const char g_szSeasonSaveMagic[4]
The four-byte signature of a saved season.
The saved settings and progress of a player.
Definition profile.h:23
A local player's retained championship race result.
Definition season.h:60
int points
Definition season.h:63
float raceTime
Definition season.h:64
int position
Definition season.h:62
float lapTimes[12]
Definition season.h:65
int resultValue
Definition season.h:61
The result record retained when returning from a championship race.
Definition season.h:69
u8 unreconstructed58[0xb0 - 0x58]
Definition season.h:77
int track
Definition season.h:74
int weather
Definition season.h:75
int year
Definition season.h:73
int round
Definition season.h:72
int season
Definition season.h:71
SeasonRacePlayerResult player
Definition season.h:76
int state
Definition season.h:70
The result prefix and additional state reset when returning from a race.
Definition season.h:81
u8 unreconstructedB0[0x68]
Definition season.h:82
The menu settings appended to a saved season.
Definition season.h:219
int suspension
Definition season.h:222
int transmission
Definition season.h:220
int car
Definition season.h:223
int handling
Definition season.h:224
int tires
Definition season.h:221
signed char s8
Definition ultratypes.h:23
unsigned short u16
Definition ultratypes.h:19
unsigned char u8
Definition ultratypes.h:18
The vehicles of a race, the cars they are, and their place on the track.