Files
spice2x-r3d/games/game.cpp
T
[ ] 32f4f1871d feat: Add global access for selected Game object
> separated commit in case this functionality is already provided through other means and needs to be reverted
> probably target for rehaul in the future for better/less invasive approach
2023-10-02 23:56:13 +09:00

27 lines
491 B
C++

#include "game.h"
#include "util/logging.h"
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);
}
void games::Game::pre_attach() {
log_info("game", "pre_attach: {}", name);
}
void games::Game::post_attach() {
log_info("game", "post_attach: {}", name);
}
void games::Game::detach() {
log_info("game", "detach: {}", name);
}