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

21 lines
477 B
C++
Raw Normal View History

namespace Components
{
class StringTable : public Component
{
public:
StringTable();
2016-08-15 10:40:30 -04:00
~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);
};
}