2017-01-20 08:36:52 -05:00
|
|
|
#pragma once
|
|
|
|
|
2017-01-19 16:23:59 -05:00
|
|
|
namespace Components
|
|
|
|
{
|
|
|
|
class Flags : public Component
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
Flags();
|
|
|
|
~Flags();
|
|
|
|
|
|
|
|
#if defined(DEBUG) || defined(FORCE_UNIT_TESTS)
|
2017-01-20 08:36:52 -05:00
|
|
|
const char* getName() override { return "Flags"; };
|
2017-01-19 16:23:59 -05:00
|
|
|
#endif
|
|
|
|
|
|
|
|
static bool HasFlag(std::string flag);
|
|
|
|
|
|
|
|
private:
|
|
|
|
static std::vector<std::string> EnabledFlags;
|
|
|
|
|
|
|
|
static void ParseFlags();
|
|
|
|
};
|
|
|
|
}
|