stmm-games-doc  0.32.0
Classes | Public Attributes | List of all members
stmg::GameLoader::GameInfo Struct Reference

Classes

struct  Author
 

Public Attributes

File m_oGameFile
 The file where the game is defined, if available. More...
 
std::vector< Authorm_aAuthors
 All the authors. More...
 
std::string m_sGameDescription
 Possibly multiline description of the game. More...
 
shared_ptr< HighscoresDefinitionm_refHighscoresDefinition
 The highscores associated with the game. More...
 
File m_oThumbnailFile
 The location of the thumbnail image of the game. More...
 
GameConstraints m_oGameConstraints
 The game constraints (on top of the app constraints) to the preferences. More...
 
int32_t m_nDifficulty = 0
 Difficulty hint. More...
 
bool m_bTesting = false
 Whether the game should be hidden when not testing (see StdConfig). More...
 
bool m_bLoaded = false
 Whether the game was successfuly loaded. More...
 
std::string m_sGameErrorString
 The error if loading failed or empty. More...
 

Member Data Documentation

◆ m_aAuthors

std::vector<Author> stmg::GameLoader::GameInfo::m_aAuthors

All the authors.

◆ m_bLoaded

bool stmg::GameLoader::GameInfo::m_bLoaded = false

Whether the game was successfuly loaded.

◆ m_bTesting

bool stmg::GameLoader::GameInfo::m_bTesting = false

Whether the game should be hidden when not testing (see StdConfig).

◆ m_nDifficulty

int32_t stmg::GameLoader::GameInfo::m_nDifficulty = 0

Difficulty hint.

Value 0 very easy, value 100 very difficult. Can be used to order games.

◆ m_oGameConstraints

GameConstraints stmg::GameLoader::GameInfo::m_oGameConstraints

The game constraints (on top of the app constraints) to the preferences.

◆ m_oGameFile

File stmg::GameLoader::GameInfo::m_oGameFile

The file where the game is defined, if available.

Can be undefined.

◆ m_oThumbnailFile

File stmg::GameLoader::GameInfo::m_oThumbnailFile

The location of the thumbnail image of the game.

Can be undefined.

◆ m_refHighscoresDefinition

shared_ptr<HighscoresDefinition> stmg::GameLoader::GameInfo::m_refHighscoresDefinition

The highscores associated with the game.

Can be null.

◆ m_sGameDescription

std::string stmg::GameLoader::GameInfo::m_sGameDescription

Possibly multiline description of the game.

◆ m_sGameErrorString

std::string stmg::GameLoader::GameInfo::m_sGameErrorString

The error if loading failed or empty.

Is empty if m_bLoaded is true or the game isn't compatible with the preferences.