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

21 lines
449 B
C++
Raw Normal View History

2016-01-12 15:17:55 -05:00
namespace Components
{
class StringTable : public Component
{
public:
StringTable();
2016-08-15 10:40:30 -04:00
~StringTable();
2016-09-16 05:04:28 -04:00
#if defined(DEBUG) || defined(FORCE_UNIT_TESTS)
const char* getName() { return "StringTable"; };
2016-08-15 10:40:30 -04:00
#endif
2016-01-12 15:17:55 -05:00
private:
2016-06-08 11:28:58 -04:00
static Utils::Memory::Allocator MemAllocator;
2016-01-12 15:17:55 -05:00
static std::map<std::string, Game::StringTable*> StringTableMap;
static int Hash(const char* data);
static Game::StringTable* LoadObject(std::string filename);
2016-01-12 15:17:55 -05:00
};
}