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

How a player finished a race. More...

#include <racesession.h>

Collaboration diagram for coastline::RacePlayerResult:

Public Attributes

int lap = 0
int position = 0
int bestLap = 0
f32 totalTime = 0.0f
f32 bestLapTime = 0.0f
std::array< f32, RESULT_LAPS > lapTimes {}

Detailed Description

How a player finished a race.

Member Data Documentation

◆ lap

int coastline::RacePlayerResult::lap = 0

The laps completed.

◆ position

int coastline::RacePlayerResult::position = 0

The place, from 0 for the winner.

◆ bestLap

int coastline::RacePlayerResult::bestLap = 0

The best lap, from 0.

◆ totalTime

f32 coastline::RacePlayerResult::totalTime = 0.0f

The time of the race, in seconds.

◆ bestLapTime

f32 coastline::RacePlayerResult::bestLapTime = 0.0f

The time of the best lap, in seconds.

◆ lapTimes

std::array<f32, RESULT_LAPS> coastline::RacePlayerResult::lapTimes {}

The time of each lap, in seconds.


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