game_launcher 1.1.0
Modern Linux game launcher with Steam / Proton / Wine integration
Loading...
Searching...
No Matches
GameMetadata Struct Reference

Descriptive information and media for a game. More...

#include <game.h>

Collaboration diagram for GameMetadata:

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).

Detailed Description

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.

Definition at line 555 of file game.h.

Constructor & Destructor Documentation

◆ GameMetadata()

GameMetadata::GameMetadata ( )
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.

Member Data Documentation

◆ bannerPath

std::string GameMetadata::bannerPath

Path to banner/header image file (DEPRECATED - use imagePaths.heroImage).

Definition at line 561 of file game.h.

◆ cloudSave

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().

◆ coverArtPath

std::string GameMetadata::coverArtPath

Path to cover art image file (DEPRECATED - use imagePaths.verticalCover).

Definition at line 559 of file game.h.

◆ description

std::string GameMetadata::description

Game description text.

Definition at line 565 of file game.h.

Referenced by GameDatabase::insertGame(), and DetailsPanelManager::Impl::update().

◆ developer

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().

◆ dlc

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().

◆ genres

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().

◆ imagePaths

GameImagePaths GameMetadata::imagePaths

◆ isSteamGame

◆ protondbConfidence

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().

◆ protondbLastUpdated

time_t GameMetadata::protondbLastUpdated = 0

When ProtonDB data was last fetched.

Definition at line 604 of file game.h.

Referenced by GameDatabase::insertGame().

◆ protondbScore

float GameMetadata::protondbScore = 0.0f

Cached score (0.0-1.0).

Definition at line 603 of file game.h.

Referenced by GameDatabase::insertGame().

◆ protondbTier

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().

◆ publisher

std::string GameMetadata::publisher

Publisher name.

Definition at line 569 of file game.h.

Referenced by GameDatabase::insertGame(), GOGIntegration::toGame(), and DetailsPanelManager::Impl::update().

◆ releaseYear

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().

◆ steamAppId

◆ steamBuildId

std::string GameMetadata::steamBuildId

Steam build ID.

Definition at line 578 of file game.h.

Referenced by GameDatabase::insertGame(), and SteamGame::toGame().

◆ steamBytesDownloaded

uint64_t GameMetadata::steamBytesDownloaded = 0

Bytes downloaded so far.

Definition at line 588 of file game.h.

Referenced by GameDatabase::insertGame().

◆ steamBytesToDownload

uint64_t GameMetadata::steamBytesToDownload = 0

Total bytes to download.

Definition at line 589 of file game.h.

Referenced by GameDatabase::insertGame().

◆ steamCategories

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().

◆ steamInstalled

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().

◆ steamIsDownloading

bool GameMetadata::steamIsDownloading = false

Currently downloading/updating.

Definition at line 590 of file game.h.

Referenced by GameDatabase::insertGame().

◆ steamIsUpdatePending

bool GameMetadata::steamIsUpdatePending = false

Update available but not yet started.

Definition at line 591 of file game.h.

Referenced by GameDatabase::insertGame().

◆ steamLastExit

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().

◆ steamLastLaunch

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().

◆ steamLaunchOptions

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().

◆ steamPlaytime2Weeks

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().

◆ steamStateFlags

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().

◆ steamType

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().

◆ steamUserCategories

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().

◆ tags

std::vector<std::string> GameMetadata::tags

User-defined tags for organization.

Definition at line 567 of file game.h.

Referenced by GameDatabase::insertGame().

◆ unknownJsonExtras

std::string GameMetadata::unknownJsonExtras

Round-trip-preservation buffer. See GameRunnerConfig::unknownJsonExtras.

Definition at line 607 of file game.h.

◆ userRating

float GameMetadata::userRating

User rating (0.0-5.0 scale).

Definition at line 571 of file game.h.

Referenced by GameMetadata(), and GameDatabase::insertGame().


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