2016-01-12 19:29:22 -05:00
|
|
|
namespace Components
|
|
|
|
{
|
|
|
|
class StructuredData : public Component
|
|
|
|
{
|
|
|
|
public:
|
2016-02-06 07:37:23 -05:00
|
|
|
enum PlayerDataType
|
|
|
|
{
|
|
|
|
ENUM_FEATURES,
|
|
|
|
ENUM_WEAPONS,
|
|
|
|
ENUM_ATTACHEMENTS,
|
|
|
|
ENUM_CHALLENGES,
|
|
|
|
ENUM_CAMOS,
|
|
|
|
ENUM_PERKS,
|
|
|
|
ENUM_KILLSTREAKS,
|
|
|
|
ENUM_ACCOLADES,
|
|
|
|
ENUM_CARDICONS,
|
|
|
|
ENUM_CARDTITLES,
|
|
|
|
ENUM_CARDNAMEPLATES,
|
|
|
|
ENUM_TEAMS,
|
|
|
|
ENUM_GAMETYPES,
|
|
|
|
ENUM_MAX
|
|
|
|
};
|
|
|
|
|
2016-01-12 19:29:22 -05:00
|
|
|
StructuredData();
|
2016-08-15 10:40:30 -04:00
|
|
|
~StructuredData();
|
|
|
|
|
2016-09-16 05:04:28 -04:00
|
|
|
#if defined(DEBUG) || defined(FORCE_UNIT_TESTS)
|
2016-01-12 19:29:22 -05:00
|
|
|
const char* GetName() { return "StructuredData"; };
|
2016-08-15 10:40:30 -04:00
|
|
|
#endif
|
2016-01-12 19:29:22 -05:00
|
|
|
|
|
|
|
private:
|
2016-05-25 19:39:33 -04:00
|
|
|
static void PatchPlayerDataEnum(Game::StructuredDataDef* data, PlayerDataType type, std::vector<std::string>& entries);
|
2016-06-08 11:28:58 -04:00
|
|
|
static Utils::Memory::Allocator MemAllocator;
|
2016-05-26 07:13:02 -04:00
|
|
|
|
|
|
|
static const char* EnumTranslation[ENUM_MAX];
|
2016-01-12 19:29:22 -05:00
|
|
|
};
|
|
|
|
}
|