iw4x-client/src/Components/Modules/Singleton.hpp
2017-01-20 14:37:52 +01:00

20 lines
294 B
C++

#pragma once
namespace Components
{
class Singleton : public Component
{
public:
Singleton();
#if defined(DEBUG) || defined(FORCE_UNIT_TESTS)
const char* getName() override { return "Singleton"; };
#endif
static bool IsFirstInstance();
private:
static bool FirstInstance;
};
}