summaryrefslogtreecommitdiff
path: root/MapTool/wii/stringtablebuilder.h
blob: 4fce60f62ee95e860668ab743d00c092855ed932 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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