Files
spice2x-r3d/games/game.h
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

26 lines
434 B
C++

#pragma once
#include <string>
namespace games {
class Game {
private:
std::string name;
public:
Game(std::string name);
virtual ~Game() = default;
// where the main magic will happen
virtual void attach();
virtual const char *title();
// optional
virtual void pre_attach();
virtual void post_attach();
virtual void detach();
};
}