coastline 0.0.4
Loading...
Searching...
No Matches
coastline::RaceSetup Struct Reference

What a race is, in the terms of the race engine. More...

#include <racesession.h>

Collaboration diagram for coastline::RaceSetup:

Public Attributes

int gameMode = 0
int players = 1
int track = 2
int musicTrack = -1
 The engine track selecting XM music, or -1 to use the race track.
int weather = 0
int laps = 3
std::array< RacePlayerSetup, 2 > cars {}
int season = 0
int round = 0
s32 championshipFlags = 0
std::array< f32, PC_RECORD_TRACKS > lapRecords {}
 The best lap on each track of the engine, or 0 for none.
std::array< f32, PC_RECORD_TRACKS > raceRecords {}
 The best race on each track of the engine, or 0 for none.
bool waitForStart = false
 Whether the race waits for the start binding before the countdown, as the PC release does.
bool autopilot = false
 Whether the computer drives the car of the first player, for unattended checks.
int musicVolume = 9
 The level of the music, from 0 to 9.
int sfxVolume = 9
 The level of the sound effects, from 0 to 9.
bool speedInMph = true
 Whether speeds show in miles an hour rather than kilometres.
std::array< u8, 8 > ghostHeader {}
 The header of the recording of the ghost car of a time attack, as the console writes it.
std::vector< u8 > ghostRecording
 Console controller recording, including its header, for ghosts without recorded poses.
std::vector< u8 > ghostFrames
 The frames of the race engine the ghost car of a time attack plays, or none for no ghost.

Detailed Description

What a race is, in the terms of the race engine.

Member Data Documentation

◆ gameMode

int coastline::RaceSetup::gameMode = 0

The mode, a GAME_MODE_ value.

◆ players

int coastline::RaceSetup::players = 1

The number of local players.

◆ track

int coastline::RaceSetup::track = 2

The track, an index of g_apszTrackFilenames.

◆ musicTrack

int coastline::RaceSetup::musicTrack = -1

The engine track selecting XM music, or -1 to use the race track.

◆ weather

int coastline::RaceSetup::weather = 0

The weather, a WEATHER_ value.

◆ laps

int coastline::RaceSetup::laps = 3

The laps of an arcade race.

◆ cars

std::array<RacePlayerSetup, 2> coastline::RaceSetup::cars {}

The car of each player.

◆ season

int coastline::RaceSetup::season = 0

The season of the championship.

◆ round

int coastline::RaceSetup::round = 0

The race of the season.

◆ championshipFlags

s32 coastline::RaceSetup::championshipFlags = 0

The progress of the championship across its years.

◆ lapRecords

std::array<f32, PC_RECORD_TRACKS> coastline::RaceSetup::lapRecords {}

The best lap on each track of the engine, or 0 for none.

◆ raceRecords

std::array<f32, PC_RECORD_TRACKS> coastline::RaceSetup::raceRecords {}

The best race on each track of the engine, or 0 for none.

◆ waitForStart

bool coastline::RaceSetup::waitForStart = false

Whether the race waits for the start binding before the countdown, as the PC release does.

◆ autopilot

bool coastline::RaceSetup::autopilot = false

Whether the computer drives the car of the first player, for unattended checks.

◆ musicVolume

int coastline::RaceSetup::musicVolume = 9

The level of the music, from 0 to 9.

◆ sfxVolume

int coastline::RaceSetup::sfxVolume = 9

The level of the sound effects, from 0 to 9.

◆ speedInMph

bool coastline::RaceSetup::speedInMph = true

Whether speeds show in miles an hour rather than kilometres.

◆ ghostHeader

std::array<u8, 8> coastline::RaceSetup::ghostHeader {}

The header of the recording of the ghost car of a time attack, as the console writes it.

◆ ghostRecording

std::vector<u8> coastline::RaceSetup::ghostRecording

Console controller recording, including its header, for ghosts without recorded poses.

◆ ghostFrames

std::vector<u8> coastline::RaceSetup::ghostFrames

The frames of the race engine the ghost car of a time attack plays, or none for no ghost.


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