mirror of
https://github.com/glest/glest-source.git
synced 2025-09-26 15:39:21 +02:00
- attempt to save and load scenario info in saved games
This commit is contained in:
@@ -15,11 +15,13 @@
|
||||
#include <string>
|
||||
#include <lua.hpp>
|
||||
#include <vec.h>
|
||||
#include "xml_parser.h"
|
||||
#include "leak_dumper.h"
|
||||
|
||||
using std::string;
|
||||
|
||||
using Shared::Graphics::Vec2i;
|
||||
using Shared::Xml::XmlNode;
|
||||
|
||||
namespace Shared{ namespace Lua{
|
||||
|
||||
@@ -50,6 +52,9 @@ public:
|
||||
|
||||
void registerFunction(LuaFunction luaFunction, const string &functionName);
|
||||
|
||||
void saveGame(XmlNode *rootNode);
|
||||
void loadGame(const XmlNode *rootNode);
|
||||
|
||||
private:
|
||||
string errorToString(int errorCode);
|
||||
};
|
||||
|
Reference in New Issue
Block a user