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

The results of a race, as the race engine records them. More...

#include <racesession.h>

Collaboration diagram for coastline::RaceResults:

Public Attributes

int totalLaps = 0
std::array< RacePlayerResult, 2 > players {}
std::array< f32, PC_RECORD_TRACKS > lapRecords {}
std::array< f32, PC_RECORD_TRACKS > raceRecords {}
std::vector< u8 > ghostRecording
 The input of the first player of a time attack up to the finish, its header first, as the console records it.
std::vector< u8 > ghostFrames
 The frames of the race engine recorded with ghostRecording, GHOST_FRAME_SIZE bytes each.

Detailed Description

The results of a race, as the race engine records them.

Member Data Documentation

◆ totalLaps

int coastline::RaceResults::totalLaps = 0

The laps of the race.

◆ players

std::array<RacePlayerResult, 2> coastline::RaceResults::players {}

The result of each player.

◆ lapRecords

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

The best laps after the race.

◆ raceRecords

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

The best races after the race.

◆ ghostRecording

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

The input of the first player of a time attack up to the finish, its header first, as the console records it.

Empty for another mode or a player who did not finish.

◆ ghostFrames

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

The frames of the race engine recorded with ghostRecording, GHOST_FRAME_SIZE bytes each.


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