1 |
douglas |
67 |
// Renegade Map Selector |
2 |
|
|
// |
3 |
|
|
// Douglas Thrift |
4 |
|
|
// |
5 |
|
|
// RenegadeConfig.h |
6 |
|
|
|
7 |
|
|
#ifndef _RenegadeConfig_h_ |
8 |
|
|
#define _RenegadeConfig_h_ |
9 |
|
|
|
10 |
|
|
#include "RenegadeMapSelector.h" |
11 |
|
|
|
12 |
|
|
class RenegadeConfig |
13 |
|
|
{ |
14 |
|
|
private: |
15 |
|
|
string file; |
16 |
douglas |
142 |
bool linux_; |
17 |
douglas |
85 |
stringstream text; |
18 |
douglas |
68 |
vector<string> maps; |
19 |
douglas |
67 |
public: |
20 |
douglas |
89 |
RenegadeConfig(const string& file) |
21 |
|
|
{ |
22 |
|
|
this->file = "data/" + file; |
23 |
douglas |
142 |
linux_ = false; |
24 |
douglas |
89 |
} |
25 |
douglas |
67 |
~RenegadeConfig() {} |
26 |
|
|
bool load(); |
27 |
douglas |
68 |
void save(); |
28 |
|
|
vector<string>& getMaps() { return maps; } |
29 |
|
|
void setMaps(vector<string>& maps) { this->maps = maps; } |
30 |
douglas |
67 |
}; |
31 |
|
|
|
32 |
|
|
#endif // _RenegadeConfig_h_ |