Re-added the lua hooks
This commit is contained in:
@@ -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 ®ionList; }
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user