Minor tweaks

This commit is contained in:
Kayne Ruse
2014-08-15 08:53:41 +10:00
parent 4ea1f8b016
commit 52ab9f0087
2 changed files with 4 additions and 9 deletions
+3 -4
View File
@@ -30,17 +30,16 @@ static int getPager(lua_State* L) {
}
static int create(lua_State* L) {
//TODO: create()
//EMPTY
//NOTE: This can be used to set defaults for the pager
return 0;
}
static int unload(lua_State* L) {
//TODO: unload()
//EMPTY
return 0;
}
//TODO: parameters
static const luaL_Reg roomLib[] = {
{"GetPager",getPager},
{"Create", create},
-4
View File
@@ -32,11 +32,7 @@
int RoomManager::CreateRoom() {
//create the room
RoomData* newRoom = new RoomData();
//set the state
if (luaState) {
newRoom->pager.SetLuaState(luaState);
}
//register the room
roomMap[counter] = newRoom;