diff options
Diffstat (limited to 'MapTool/wii/stringtablebuilder.h')
-rw-r--r-- | MapTool/wii/stringtablebuilder.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/MapTool/wii/stringtablebuilder.h b/MapTool/wii/stringtablebuilder.h new file mode 100644 index 0000000..4fce60f --- /dev/null +++ b/MapTool/wii/stringtablebuilder.h @@ -0,0 +1,22 @@ +#ifndef STRINGTABLEBUILDER_H +#define STRINGTABLEBUILDER_H + +#include "common.h" +#include <QtCore/QString> +#include <QtCore/QHash> +#include <QtCore/QByteArray> + +class WiiStringTableBuilder { +public: + WiiStringTableBuilder(); + + quint32 add(QString str); + QByteArray pack() const; + +protected: + int m_nextOffset; + QByteArray m_data; + QHash<QString, quint32> m_lookup; +}; + +#endif // STRINGTABLEBUILDER_H |