Singleton entry point for the game data layer.
More...
#include <Game.h>
|
| static Game & | instance () |
| | Access the singleton instance (Meyers singleton).
|
| |
Singleton entry point for the game data layer.
Owns the GameFolder (archive access) and GameDatabase (DB2 tables). Access via the GAMEDIRECTORY and GAMEDATABASE macros.
Definition at line 18 of file Game.h.
◆ Game() [1/2]
| core::Game::Game |
( |
const Game & |
| ) |
|
|
delete |
◆ Game() [2/2]
◆ ~Game()
◆ addCustomFiles()
| void core::Game::addCustomFiles |
( |
const std::string & |
path, |
|
|
bool |
bypassOriginalFiles |
|
) |
| |
Overlay custom loose files on top of the game archive.
Definition at line 15 of file Game.cpp.
◆ configFolder()
| std::string core::Game::configFolder |
( |
| ) |
|
|
inline |
◆ database()
◆ folder()
◆ init()
Initialise with the given folder and database backends.
Definition at line 7 of file Game.cpp.
◆ initDone()
| bool core::Game::initDone |
( |
| ) |
|
|
inline |
True once both the folder and database have been set.
Definition at line 32 of file Game.h.
◆ instance()
| static Game & core::Game::instance |
( |
| ) |
|
|
inlinestatic |
Access the singleton instance (Meyers singleton).
Definition at line 22 of file Game.h.
◆ operator=()
| Game & core::Game::operator= |
( |
const Game & |
| ) |
|
|
delete |
◆ setConfigFolder()
| void core::Game::setConfigFolder |
( |
const std::string & |
folder | ) |
|
|
inline |
◆ m_configFolder
| std::string core::Game::m_configFolder |
|
private |
◆ m_db
◆ m_folder
The documentation for this class was generated from the following files: