Removed one parameter from RoomManager::Create()

This commit is contained in:
Kayne Ruse
2014-11-26 06:41:29 +11:00
parent 6485839dcf
commit fa0d232727
3 changed files with 9 additions and 28 deletions
+1 -6
View File
@@ -27,14 +27,9 @@ int createRoom(lua_State* L) {
//create & get the room
RoomManager& roomMgr = RoomManager::GetSingleton();
int uid = roomMgr.Create("",""); //TODO: All new managers need their internals fleshed out
int uid = roomMgr.Create(lua_tostring(L, 1));
RoomData* room = roomMgr.Get(uid);
//setup the room
//TODO: room parameters only set via lua, fix this
room->SetRoomName(lua_tostring(L, 1));
// room->SetTilesetName(lua_tostring(L, 2));
//return room, uid
lua_pushlightuserdata(L, static_cast<void*>(room));
lua_pushinteger(L, uid);