Re-added the lua hooks

This commit is contained in:
Kayne Ruse
2014-06-08 04:20:07 +10:00
parent f034c32c38
commit b269ce5fb9
2 changed files with 69 additions and 9 deletions
+14 -3
View File
@@ -24,9 +24,11 @@
#include "region.hpp"
#include <list>
#include "lua/lua.hpp"
#include <list>
#include <string>
//TODO: add lua interface?
class RegionPager {
public:
RegionPager() = default;
@@ -48,8 +50,17 @@ public:
//accessors & mutators
std::list<Region*>* GetContainer() { return &regionList; }
protected:
std::string SetDirectory(std::string s) { return directory = s; }
std::string GetDirectory() { return directory; }
lua_State* SetLuaState(lua_State* L) { return luaState = L; }
lua_State* GetLuaState() { return luaState; }
private:
std::list<Region*> regionList;
std::string directory;
lua_State* luaState = nullptr;
};
#endif