Minor tweaks
This commit is contained in:
@@ -30,17 +30,16 @@ static int getPager(lua_State* L) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
static int create(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;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int unload(lua_State* L) {
|
static int unload(lua_State* L) {
|
||||||
//TODO: unload()
|
//EMPTY
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
//TODO: parameters
|
|
||||||
|
|
||||||
static const luaL_Reg roomLib[] = {
|
static const luaL_Reg roomLib[] = {
|
||||||
{"GetPager",getPager},
|
{"GetPager",getPager},
|
||||||
{"Create", create},
|
{"Create", create},
|
||||||
|
|||||||
@@ -32,11 +32,7 @@
|
|||||||
int RoomManager::CreateRoom() {
|
int RoomManager::CreateRoom() {
|
||||||
//create the room
|
//create the room
|
||||||
RoomData* newRoom = new RoomData();
|
RoomData* newRoom = new RoomData();
|
||||||
|
newRoom->pager.SetLuaState(luaState);
|
||||||
//set the state
|
|
||||||
if (luaState) {
|
|
||||||
newRoom->pager.SetLuaState(luaState);
|
|
||||||
}
|
|
||||||
|
|
||||||
//register the room
|
//register the room
|
||||||
roomMap[counter] = newRoom;
|
roomMap[counter] = newRoom;
|
||||||
|
|||||||
Reference in New Issue
Block a user