#ifndef CSTRINGTABLE_H #define CSTRINGTABLE_H #include "CResource.h" #include #include #include #include class CStringTable : public CResource { friend class CStringLoader; std::vector mStringNames; u32 mNumStrings; struct SLangTable { CFourCC Language; std::vector Strings; }; std::vector mLangTables; public: CStringTable(); ~CStringTable(); EResType Type(); CResource* MakeCopy(CResCache *pCopyCache); // Getters u32 GetStringCount(); u32 GetLangCount(); CFourCC GetLangTag(u32 Index); std::wstring GetString(CFourCC Lang, u32 StringIndex); std::wstring GetString(u32 LangIndex, u32 StringIndex); std::string GetStringName(u32 StringIndex); }; #endif // CSTRINGTABLE_H