2024-08-28 15:10:34 +00:00
|
|
|
#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();
|
2024-08-28 15:56:30 +00:00
|
|
|
virtual const char *title();
|
2024-08-28 15:10:34 +00:00
|
|
|
|
|
|
|
// optional
|
|
|
|
virtual void pre_attach();
|
|
|
|
virtual void post_attach();
|
|
|
|
virtual void detach();
|
|
|
|
};
|
|
|
|
}
|