PrimeWorldEditor/Resource/factory/CStringLoader.h

26 lines
596 B
C++

#ifndef CSTRINGLOADER_H
#define CSTRINGLOADER_H
#include "../CStringTable.h"
#include "../EFormatVersion.h"
#include <Core/CResCache.h>
#include <Core/TResPtr.h>
class CStringLoader
{
TResPtr<CStringTable> mpStringTable;
EGame mVersion;
CStringLoader();
void LoadPrimeDemoSTRG(CInputStream& STRG);
void LoadPrimeSTRG(CInputStream& STRG);
void LoadCorruptionSTRG(CInputStream& STRG);
void LoadNameTable(CInputStream& STRG);
public:
static CStringTable* LoadSTRG(CInputStream& STRG);
static EGame GetFormatVersion(u32 Version);
};
#endif // CSTRINGLOADER_H