|
coastline 0.0.4
|
The saved settings and progress of a player. More...
#include <profile.h>
Public Attributes | |
| s32 | championshipFlags |
| u8 | season |
| u8 | round |
| u8 | seasonPlaces [SEASONS][SEASON_RACES] |
| u16 | seasonPoints [SEASONS] |
| f32 | seasonTimes [SEASONS][SEASON_RACES] |
| f32 | lapRecords [16] |
| u16 | unlocks |
| u16 | unlockedTracks |
| u16 | unlockedWeathers |
| s32 | handling |
| s32 | transmission |
| s32 | tires |
| s32 | suspension |
| s32 | controllerLayout |
| f32 | raceRecords [16] |
The saved settings and progress of a player.
Its fields join this structure as the routines that use them are reconstructed.
| s32 PlayerProfile::championshipFlags |
The progress of the championship across its years, negative when never set, with bit 0 set while the seasons race the tracks mirrored.
| u8 PlayerProfile::season |
The season of the championship being raced, from 0.
| u8 PlayerProfile::round |
The race of the season being raced, from 0.
| u8 PlayerProfile::seasonPlaces[SEASONS][SEASON_RACES] |
The place of each race of each season, from 0 for the winner.
| f32 PlayerProfile::seasonTimes[SEASONS][SEASON_RACES] |
The time of each race of each season, in seconds.
| f32 PlayerProfile::lapRecords[16] |
The 16 best-lap record slots, in seconds, or 0 when unset.
| u16 PlayerProfile::unlocks |
The unlocked cars, a bit for each from bit 0, and further unlocks above them.
| u16 PlayerProfile::unlockedTracks |
The unlocked tracks, a bit for each.
| u16 PlayerProfile::unlockedWeathers |
The weathers the championship has raced in, a bit for each.
| s32 PlayerProfile::handling |
The handling option the player chose last, the steering mode of the vehicle from 0.
| s32 PlayerProfile::transmission |
The gearbox option the player chose last, nonzero for the automatic.
| s32 PlayerProfile::tires |
The tyre option the player chose last; the grip falls by 0.002 for each option up.
| s32 PlayerProfile::suspension |
The suspension option the player chose last, from 0 for the softest springs.
| s32 PlayerProfile::controllerLayout |
The button layout the player chose on the controller screen.
| f32 PlayerProfile::raceRecords[16] |
The 16 best-race record slots, in seconds, or 0 when unset.