iw4x-client/src/Components/Modules/Singleton.hpp

18 lines
288 B
C++
Raw Normal View History

2017-01-18 17:44:36 -05:00
namespace Components
{
class Singleton : public Component
{
public:
Singleton();
#if defined(DEBUG) || defined(FORCE_UNIT_TESTS)
const char* getName() { return "Singleton"; };
#endif
static bool IsFirstInstance();
private:
static bool FirstInstance;
};
}