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

21 lines
457 B
C++
Raw Normal View History

namespace Components
{
class StringTable : public Component
{
public:
StringTable();
~StringTable();
#if defined(DEBUG) || defined(FORCE_UNIT_TESTS)
const char* getName() { return "StringTable"; };
#endif
private:
static Utils::Memory::Allocator MemAllocator;
static std::unordered_map<std::string, Game::StringTable*> StringTableMap;
static int Hash(const char* data);
static Game::StringTable* LoadObject(std::string filename);
};
}