OpenTTD Source: GameSessionStats Struct Reference

OpenTTD Source 15.3

Data Fields
GameSessionStats Struct Reference

## Data Fields
std::chrono::steady_clock::time_point | start_time
| Time when the current game was started.
std::string | savegame_id
| Unique ID of the savegame.
std::optional< size_t > | savegame_size
| Size of the last saved savegame in bytes, or std::nullopt if not saved yet.

## Detailed Description

Definition at line 55 of file openttd.h.

## Field Documentation

## ◆ savegame_id

std::string GameSessionStats::savegame_id

Unique ID of the savegame.

Definition at line 57 of file openttd.h.

Referenced by GenerateSavegameId(), and SurveyGameSession().

## ◆ savegame_size

std::optional<size_t> GameSessionStats::savegame_size

Size of the last saved savegame in bytes, or std::nullopt if not saved yet.

Definition at line 58 of file openttd.h.

Referenced by FileWriter::Finish(), openttd_main(), ClientNetworkGameSocketHandler::Receive_SERVER_MAP_DONE(), SurveyGameSession(), and FileReader::~FileReader().

## ◆ start_time

std::chrono::steady_clock::time_point GameSessionStats::start_time

Time when the current game was started.

Definition at line 56 of file openttd.h.

Referenced by openttd_main(), ClientNetworkGameSocketHandler::Receive_SERVER_MAP_DONE(), and SurveyGameSession().

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

- src/openttd.h