mirror of
https://github.com/glest/glest-source.git
synced 2025-08-18 06:01:17 +02:00
- initial loading logic for loading of saved games.
- currently we always save the game during out of synch or on game quit. - added a new commandline option to load the last saved game, this doesn't do much yet, just creates units in the map locations they were when the game was saved ./megaglest --load-saved-game
This commit is contained in:
@@ -55,7 +55,7 @@ public:
|
||||
~XmlIo();
|
||||
void cleanup();
|
||||
|
||||
XmlNode *load(const string &path, std::map<string,string> mapTagReplacementValues);
|
||||
XmlNode *load(const string &path, std::map<string,string> mapTagReplacementValues,bool noValidation=false);
|
||||
void save(const string &path, const XmlNode *node);
|
||||
};
|
||||
|
||||
@@ -76,7 +76,7 @@ public:
|
||||
~XmlTree();
|
||||
|
||||
void init(const string &name);
|
||||
void load(const string &path, std::map<string,string> mapTagReplacementValues);
|
||||
void load(const string &path, std::map<string,string> mapTagReplacementValues, bool noValidation=false);
|
||||
void save(const string &path);
|
||||
|
||||
XmlNode *getRootNode() const {return rootNode;}
|
||||
|
Reference in New Issue
Block a user