12863
|
1 |
#ifndef GAMECONFIG_H
|
|
2 |
#define GAMECONFIG_H
|
|
3 |
|
12864
|
4 |
#include <QList>
|
|
5 |
#include <QVector>
|
12863
|
6 |
|
12864
|
7 |
class GameConfig {
|
12863
|
8 |
public:
|
12864
|
9 |
explicit GameConfig();
|
|
10 |
|
|
11 |
const char** argv() const;
|
|
12 |
int argc() const;
|
12865
|
13 |
const QList<QByteArray> config() const;
|
12863
|
14 |
|
12864
|
15 |
void clear();
|
|
16 |
void cmdSeed(const QByteArray& seed);
|
|
17 |
void cmdMapgen(int mapgen);
|
12863
|
18 |
|
12864
|
19 |
private:
|
|
20 |
mutable QVector<const char*> m_argv;
|
|
21 |
QList<QByteArray> m_arguments;
|
|
22 |
QList<QByteArray> m_cfg;
|
|
23 |
|
|
24 |
void cfgAppend(const QByteArray& cmd);
|
12863
|
25 |
};
|
|
26 |
|
12864
|
27 |
#endif // GAMECONFIG_H
|