Atlas Game Manager
A game manager for f95 and dlsite written in c++
Loading...
Searching...
No Matches
atlas::records::GameData Struct Reference

#include <GameData.hpp>

Public Member Functions

 GameData ()=delete
 
 GameData (GameData &&other)=delete
 
const VersiongetVersion (const QString) const
 
 GameData (const RecordID id)
 Fetches the RecordData for the given ID.
 
 GameData (QString title, QString creator, QString engine)
 

Public Attributes

RecordID m_game_id { INVALID_RECORD_ID }
 
QString m_title {}
 
QString m_creator {}
 
QString m_engine {}
 
std::uint64_t m_last_played { 0 }
 
std::uint64_t m_total_playtime { 0 }
 
std::uint64_t m_preview_count { 0 }
 
std::vector< QString > m_tags {}
 
QString m_description {}
 
std::vector< Versionm_versions {}
 
std::array< std::filesystem::path, BannerType::SENTINELm_banner_paths {}
 
std::vector< std::filesystem::path > m_preview_paths {}
 
std::optional< remote::AtlasRemoteDataatlas_data { std::nullopt }
 
std::optional< remote::F95RemoteDataf95_data { std::nullopt }
 
std::recursive_mutex m_mtx {}
 

Friends

struct RecordAlreadyExists
 
class Game
 

Constructor & Destructor Documentation

◆ GameData() [1/4]

atlas::records::GameData::GameData ( )
delete

◆ GameData() [2/4]

atlas::records::GameData::GameData ( GameData && other)
delete

◆ GameData() [3/4]

atlas::records::GameData::GameData ( const RecordID id)

Fetches the RecordData for the given ID.

Parameters
id
transaction.Defaults to autocommit on return

◆ GameData() [4/4]

atlas::records::GameData::GameData ( QString title,
QString creator,
QString engine )
explicit
Warning
Constructing will create a new record in the database. Pass in Transaction as last parameter in order to not commit on return
Parameters
title
creator
engine
transaction

Member Function Documentation

◆ getVersion()

const Version & atlas::records::GameData::getVersion ( const QString name) const

Friends And Related Symbol Documentation

◆ Game

friend class Game
friend

◆ RecordAlreadyExists

friend struct RecordAlreadyExists
friend

Member Data Documentation

◆ atlas_data

std::optional< remote::AtlasRemoteData > atlas::records::GameData::atlas_data { std::nullopt }

◆ f95_data

std::optional< remote::F95RemoteData > atlas::records::GameData::f95_data { std::nullopt }

◆ m_banner_paths

std::array< std::filesystem::path, BannerType::SENTINEL > atlas::records::GameData::m_banner_paths {}

◆ m_creator

QString atlas::records::GameData::m_creator {}

◆ m_description

QString atlas::records::GameData::m_description {}

◆ m_engine

QString atlas::records::GameData::m_engine {}

◆ m_game_id

RecordID atlas::records::GameData::m_game_id { INVALID_RECORD_ID }

◆ m_last_played

std::uint64_t atlas::records::GameData::m_last_played { 0 }

◆ m_mtx

std::recursive_mutex atlas::records::GameData::m_mtx {}

◆ m_preview_count

std::uint64_t atlas::records::GameData::m_preview_count { 0 }

◆ m_preview_paths

std::vector< std::filesystem::path > atlas::records::GameData::m_preview_paths {}

◆ m_tags

std::vector< QString > atlas::records::GameData::m_tags {}

◆ m_title

QString atlas::records::GameData::m_title {}

◆ m_total_playtime

std::uint64_t atlas::records::GameData::m_total_playtime { 0 }

◆ m_versions

std::vector< Version > atlas::records::GameData::m_versions {}

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