coastline 0.0.4
Loading...
Searching...
No Matches
PlayerProfile Struct Reference

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]

Detailed Description

The saved settings and progress of a player.

Its fields join this structure as the routines that use them are reconstructed.

Member Data Documentation

◆ championshipFlags

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.

◆ season

u8 PlayerProfile::season

The season of the championship being raced, from 0.

◆ round

u8 PlayerProfile::round

The race of the season being raced, from 0.

◆ seasonPlaces

u8 PlayerProfile::seasonPlaces[SEASONS][SEASON_RACES]

The place of each race of each season, from 0 for the winner.

◆ seasonPoints

u16 PlayerProfile::seasonPoints[SEASONS]

The points scored in each season.

◆ seasonTimes

f32 PlayerProfile::seasonTimes[SEASONS][SEASON_RACES]

The time of each race of each season, in seconds.

◆ lapRecords

f32 PlayerProfile::lapRecords[16]

The 16 best-lap record slots, in seconds, or 0 when unset.

◆ unlocks

u16 PlayerProfile::unlocks

The unlocked cars, a bit for each from bit 0, and further unlocks above them.

◆ unlockedTracks

u16 PlayerProfile::unlockedTracks

The unlocked tracks, a bit for each.

◆ unlockedWeathers

u16 PlayerProfile::unlockedWeathers

The weathers the championship has raced in, a bit for each.

◆ handling

s32 PlayerProfile::handling

The handling option the player chose last, the steering mode of the vehicle from 0.

◆ transmission

s32 PlayerProfile::transmission

The gearbox option the player chose last, nonzero for the automatic.

◆ tires

s32 PlayerProfile::tires

The tyre option the player chose last; the grip falls by 0.002 for each option up.

◆ suspension

s32 PlayerProfile::suspension

The suspension option the player chose last, from 0 for the softest springs.

◆ controllerLayout

s32 PlayerProfile::controllerLayout

The button layout the player chose on the controller screen.

◆ raceRecords

f32 PlayerProfile::raceRecords[16]

The 16 best-race record slots, in seconds, or 0 when unset.


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