2022-10-09 05:13:17 +00:00
|
|
|
#ifndef _CSTRINGTABLE
|
|
|
|
#define _CSTRINGTABLE
|
2022-04-10 00:17:06 +00:00
|
|
|
|
|
|
|
#include "types.h"
|
|
|
|
|
2024-10-28 04:17:36 +00:00
|
|
|
#include <rstl/single_ptr.hpp>
|
2022-04-10 00:17:06 +00:00
|
|
|
|
2024-10-28 04:17:36 +00:00
|
|
|
#include <Kyoto/CFactoryFnReturn.hpp>
|
2022-04-10 00:17:06 +00:00
|
|
|
|
2024-10-28 04:17:36 +00:00
|
|
|
class CInputStream;
|
2022-04-10 00:17:06 +00:00
|
|
|
class CStringTable {
|
2022-09-05 04:01:13 +00:00
|
|
|
int x0_stringCount;
|
2022-10-09 05:37:23 +00:00
|
|
|
rstl::single_ptr< uchar > x4_data;
|
2022-04-10 00:17:06 +00:00
|
|
|
|
|
|
|
public:
|
|
|
|
CStringTable(CInputStream& in);
|
2022-07-14 16:24:26 +00:00
|
|
|
const wchar_t* GetString(int idx) const;
|
2023-01-19 09:05:39 +00:00
|
|
|
int GetStringCount() const { return x0_stringCount; }
|
2022-04-10 00:17:06 +00:00
|
|
|
};
|
|
|
|
|
2022-04-11 22:42:08 +00:00
|
|
|
extern CStringTable* gpStringTable;
|
|
|
|
|
2024-10-28 04:17:36 +00:00
|
|
|
CFactoryFnReturn FStringTableFactory(const SObjectTag& tag, CInputStream& in,
|
|
|
|
const CVParamTransfer& xfer);
|
|
|
|
|
2022-10-09 05:13:17 +00:00
|
|
|
#endif // _CSTRINGTABLE
|