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