Added hooks to the room system

This commit is contained in:
Kayne Ruse
2015-02-17 23:37:11 +11:00
parent a538cf73d5
commit a106134dd1
4 changed files with 105 additions and 1 deletions
+12 -1
View File
@@ -49,12 +49,19 @@ public:
int GetLoadedCount();
std::map<int, RoomData>* GetContainer();
//hooks
//API interfaces
lua_State* SetLuaState(lua_State* L);
lua_State* GetLuaState();
sqlite3* SetDatabase(sqlite3* db);
sqlite3* GetDatabase();
//hooks
int SetCreateReference(int i);
int SetUnloadReference(int i);
int GetCreateReference();
int GetUnloadReference();
private:
friend Singleton<RoomManager>;
@@ -66,6 +73,10 @@ private:
lua_State* lua = nullptr;
sqlite3* database = nullptr;
int counter = 0;
//hooks
int createRef = LUA_NOREF;
int unloadRef = LUA_NOREF;
};
#endif