2015-12-27 14:05:43 -05:00
|
|
|
namespace Components
|
|
|
|
{
|
|
|
|
class Singleton : public Component
|
|
|
|
{
|
|
|
|
public:
|
2016-08-15 10:40:30 -04:00
|
|
|
Singleton();
|
|
|
|
|
|
|
|
#ifdef DEBUG
|
2015-12-27 14:05:43 -05:00
|
|
|
const char* GetName() { return "Singleton"; };
|
2016-08-15 10:40:30 -04:00
|
|
|
#endif
|
2015-12-27 14:05:43 -05:00
|
|
|
|
|
|
|
static bool IsFirstInstance();
|
|
|
|
|
|
|
|
private:
|
|
|
|
static bool FirstInstance;
|
|
|
|
};
|
|
|
|
}
|