|
game_launcher 1.1.0
Modern Linux game launcher with Steam / Proton / Wine integration
|
Descriptive information and media for a game. More...
#include <game.h>
Public Member Functions | |
| GameMetadata () | |
| Constructor with defaults. | |
Public Attributes | |
| std::string | bannerPath |
| Path to banner/header image file (DEPRECATED - use imagePaths.heroImage). | |
| CloudSaveInfo | cloudSave |
| Steam Cloud save information. | |
| std::string | coverArtPath |
| Path to cover art image file (DEPRECATED - use imagePaths.verticalCover). | |
| std::string | description |
| Game description text. | |
| std::string | developer |
| Developer/studio name. | |
| std::vector< DLCInfo > | dlc |
| Installed DLC for this game. | |
| std::vector< std::string > | genres |
| Game genres (RPG, FPS, Strategy, etc.). | |
| GameImagePaths | imagePaths |
| Paths to all available image assets. | |
| bool | isSteamGame = false |
| True if imported from Steam. | |
| std::string | protondbConfidence |
| Cached confidence: "strong", "good", "weak". | |
| time_t | protondbLastUpdated = 0 |
| When ProtonDB data was last fetched. | |
| float | protondbScore = 0.0f |
| Cached score (0.0-1.0). | |
| std::string | protondbTier |
| Cached tier: "platinum", "gold", "silver", "bronze", "borked", "native". | |
| std::string | publisher |
| Publisher name. | |
| int | releaseYear |
| Year the game was released. | |
| int | steamAppId = 0 |
| Steam App ID (0 if not a Steam game). | |
| std::string | steamBuildId |
| Steam build ID. | |
| uint64_t | steamBytesDownloaded = 0 |
| Bytes downloaded so far. | |
| uint64_t | steamBytesToDownload = 0 |
| Total bytes to download. | |
| std::vector< std::string > | steamCategories |
| Steam categories (Single-player, Multi-player, etc.). | |
| bool | steamInstalled = false |
| True if Steam game is installed (set during Steam import). | |
| bool | steamIsDownloading = false |
| Currently downloading/updating. | |
| bool | steamIsUpdatePending = false |
| Update available but not yet started. | |
| time_t | steamLastExit = 0 |
| Last exit timestamp from Steam. | |
| time_t | steamLastLaunch = 0 |
| Last launch timestamp from Steam. | |
| std::string | steamLaunchOptions |
| Steam launch options from localconfig.vdf. | |
| uint32_t | steamPlaytime2Weeks = 0 |
| Playtime in last 2 weeks (minutes). | |
| uint32_t | steamStateFlags = 0 |
| Steam StateFlags from appmanifest. | |
| std::string | steamType |
| Steam app type: game, dlc, demo, tool, music, etc. | |
| std::vector< std::string > | steamUserCategories |
| User-defined categories from Steam (tags section). | |
| std::vector< std::string > | tags |
| User-defined tags for organization. | |
| std::string | unknownJsonExtras |
| Round-trip-preservation buffer. See GameRunnerConfig::unknownJsonExtras. | |
| float | userRating |
| User rating (0.0-5.0 scale). | |
Descriptive information and media for a game.
Stores user-facing information about the game including cover art, description, genres, and ratings. This data is displayed in the UI and helps users organize and find games.
|
inline |
Constructor with defaults.
Initializes numeric fields to zero/empty values.
Definition at line 614 of file game.h.
References isSteamGame, releaseYear, steamAppId, and userRating.
| std::string GameMetadata::bannerPath |
| CloudSaveInfo GameMetadata::cloudSave |
Steam Cloud save information.
Definition at line 596 of file game.h.
Referenced by GameDatabase::insertGame(), SteamGame::toGame(), and DetailsPanelManager::Impl::update().
| std::string GameMetadata::coverArtPath |
| std::string GameMetadata::description |
Game description text.
Definition at line 565 of file game.h.
Referenced by GameDatabase::insertGame(), and DetailsPanelManager::Impl::update().
| std::string GameMetadata::developer |
Developer/studio name.
Definition at line 568 of file game.h.
Referenced by GameDatabase::insertGame(), GOGIntegration::toGame(), and DetailsPanelManager::Impl::update().
| std::vector<DLCInfo> GameMetadata::dlc |
Installed DLC for this game.
Definition at line 597 of file game.h.
Referenced by GameDatabase::insertGame(), SteamGame::toGame(), and DetailsPanelManager::Impl::update().
| std::vector<std::string> GameMetadata::genres |
Game genres (RPG, FPS, Strategy, etc.).
Definition at line 566 of file game.h.
Referenced by GameDatabase::insertGame(), GOGIntegration::toGame(), SteamGame::toGame(), and DetailsPanelManager::Impl::update().
| GameImagePaths GameMetadata::imagePaths |
Paths to all available image assets.
Definition at line 562 of file game.h.
Referenced by GameLibrary::discoverImagesForGame(), GameDatabase::insertGame(), GOGIntegration::toGame(), LegendaryIntegration::toGame(), ScannedGame::toGame(), and SteamGame::toGame().
| bool GameMetadata::isSteamGame = false |
True if imported from Steam.
Definition at line 574 of file game.h.
Referenced by GameMetadata(), SteamLaunchBuilder::buildLaunchCommand(), GameProcessManager::launchGame(), core::GameLibraryController::Impl::passesFilter(), GameProcessManager::scanForRunningGames(), and SteamGame::toGame().
| std::string GameMetadata::protondbConfidence |
Cached confidence: "strong", "good", "weak".
Definition at line 602 of file game.h.
Referenced by GameDatabase::insertGame(), and DetailsPanelManager::Impl::update().
| time_t GameMetadata::protondbLastUpdated = 0 |
When ProtonDB data was last fetched.
Definition at line 604 of file game.h.
Referenced by GameDatabase::insertGame().
| float GameMetadata::protondbScore = 0.0f |
Cached score (0.0-1.0).
Definition at line 603 of file game.h.
Referenced by GameDatabase::insertGame().
| std::string GameMetadata::protondbTier |
Cached tier: "platinum", "gold", "silver", "bronze", "borked", "native".
Definition at line 601 of file game.h.
Referenced by GameDatabase::insertGame(), and DetailsPanelManager::Impl::update().
| std::string GameMetadata::publisher |
Publisher name.
Definition at line 569 of file game.h.
Referenced by GameDatabase::insertGame(), GOGIntegration::toGame(), and DetailsPanelManager::Impl::update().
| int GameMetadata::releaseYear |
Year the game was released.
Definition at line 570 of file game.h.
Referenced by GameMetadata(), GameDatabase::insertGame(), and DetailsPanelManager::Impl::update().
| int GameMetadata::steamAppId = 0 |
Steam App ID (0 if not a Steam game).
Definition at line 575 of file game.h.
Referenced by GameMetadata(), GameActionFactory::addChangeArtworkAction(), GameLibrary::addGame(), GameActionFactory::addLaunchActions(), GameActionFactory::addProtonDBAction(), GameActionFactory::addSteamActions(), SteamLaunchBuilder::buildLaunchCommand(), GameLibrary::discoverImagesForGame(), GameSuggestionService::getLocalSuggestions(), GameSuggestionService::getSuggestions(), GameSuggestionService::getSuggestionsAsync(), GameDatabase::insertGame(), GameProcessManager::launchGame(), ShortcutsController::registerPaletteCommands(), GameProcessManager::scanForRunningGames(), ScannedGame::toGame(), SteamGame::toGame(), DetailsPanelManager::Impl::update(), and DetailsPanelManager::Impl::updateLaunchButton().
| std::string GameMetadata::steamBuildId |
Steam build ID.
Definition at line 578 of file game.h.
Referenced by GameDatabase::insertGame(), and SteamGame::toGame().
| uint64_t GameMetadata::steamBytesDownloaded = 0 |
Bytes downloaded so far.
Definition at line 588 of file game.h.
Referenced by GameDatabase::insertGame().
| uint64_t GameMetadata::steamBytesToDownload = 0 |
Total bytes to download.
Definition at line 589 of file game.h.
Referenced by GameDatabase::insertGame().
| std::vector<std::string> GameMetadata::steamCategories |
Steam categories (Single-player, Multi-player, etc.).
Definition at line 584 of file game.h.
Referenced by GameDatabase::insertGame(), SteamGame::toGame(), and DetailsPanelManager::Impl::update().
| bool GameMetadata::steamInstalled = false |
True if Steam game is installed (set during Steam import).
Definition at line 576 of file game.h.
Referenced by GameDatabase::insertGame(), core::GameLibraryController::Impl::passesFilter(), and SteamGame::toGame().
| bool GameMetadata::steamIsDownloading = false |
Currently downloading/updating.
Definition at line 590 of file game.h.
Referenced by GameDatabase::insertGame().
| bool GameMetadata::steamIsUpdatePending = false |
Update available but not yet started.
Definition at line 591 of file game.h.
Referenced by GameDatabase::insertGame().
| time_t GameMetadata::steamLastExit = 0 |
Last exit timestamp from Steam.
Definition at line 581 of file game.h.
Referenced by GameDatabase::insertGame(), and SteamGame::toGame().
| time_t GameMetadata::steamLastLaunch = 0 |
Last launch timestamp from Steam.
Definition at line 580 of file game.h.
Referenced by GameDatabase::insertGame(), and SteamGame::toGame().
| std::string GameMetadata::steamLaunchOptions |
Steam launch options from localconfig.vdf.
Definition at line 577 of file game.h.
Referenced by GameDatabase::insertGame(), and SteamGame::toGame().
| uint32_t GameMetadata::steamPlaytime2Weeks = 0 |
Playtime in last 2 weeks (minutes).
Definition at line 579 of file game.h.
Referenced by GameDatabase::insertGame(), and SteamGame::toGame().
| uint32_t GameMetadata::steamStateFlags = 0 |
Steam StateFlags from appmanifest.
Definition at line 587 of file game.h.
Referenced by GameDatabase::insertGame(), and DetailsPanelManager::Impl::update().
| std::string GameMetadata::steamType |
Steam app type: game, dlc, demo, tool, music, etc.
Definition at line 582 of file game.h.
Referenced by GameDatabase::insertGame(), and SteamGame::toGame().
| std::vector<std::string> GameMetadata::steamUserCategories |
User-defined categories from Steam (tags section).
Definition at line 595 of file game.h.
Referenced by GameDatabase::insertGame(), and SteamGame::toGame().
| std::vector<std::string> GameMetadata::tags |
User-defined tags for organization.
Definition at line 567 of file game.h.
Referenced by GameDatabase::insertGame().
| std::string GameMetadata::unknownJsonExtras |
Round-trip-preservation buffer. See GameRunnerConfig::unknownJsonExtras.
| float GameMetadata::userRating |
User rating (0.0-5.0 scale).
Definition at line 571 of file game.h.
Referenced by GameMetadata(), and GameDatabase::insertGame().