equal
deleted
inserted
replaced
1 #ifndef GAMECONFIG_H |
1 #ifndef GAMECONFIG_H |
2 #define GAMECONFIG_H |
2 #define GAMECONFIG_H |
3 |
3 |
4 #include <QObject> |
4 #include <QList> |
|
5 #include <QVector> |
5 |
6 |
6 class GameConfig : public QObject |
7 class GameConfig { |
7 { |
|
8 Q_OBJECT |
|
9 public: |
8 public: |
10 explicit GameConfig(QObject *parent = nullptr); |
9 explicit GameConfig(); |
11 |
10 |
12 signals: |
11 const char** argv() const; |
|
12 int argc() const; |
|
13 const QList<QByteArray> config(); |
13 |
14 |
14 public slots: |
15 void clear(); |
|
16 void cmdSeed(const QByteArray& seed); |
|
17 void cmdMapgen(int mapgen); |
|
18 |
|
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); |
15 }; |
25 }; |
16 |
26 |
17 #endif // GAMECONFIG_H |
27 #endif // GAMECONFIG_H |