Add global access for selected game object on 24-08-24
This commit is contained in:
@@ -5,6 +5,10 @@ games::Game::Game(std::string name) {
|
||||
this->name = name;
|
||||
}
|
||||
|
||||
const char *games::Game::title() {
|
||||
return this->name.c_str();
|
||||
}
|
||||
|
||||
void games::Game::attach() {
|
||||
log_info("game", "attach: {}", name);
|
||||
}
|
||||
|
||||
@@ -15,6 +15,7 @@ namespace games {
|
||||
|
||||
// where the main magic will happen
|
||||
virtual void attach();
|
||||
virtual const char *title();
|
||||
|
||||
// optional
|
||||
virtual void pre_attach();
|
||||
|
||||
Reference in New Issue
Block a user