Replaced RoomData's hooks with Initialize API function

This commit is contained in:
Kayne Ruse
2014-11-26 06:33:02 +11:00
parent 81a3a92603
commit 6485839dcf
6 changed files with 21 additions and 58 deletions
+2 -1
View File
@@ -24,6 +24,7 @@
#include "room_manager.hpp"
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
@@ -32,7 +33,7 @@ int createRoom(lua_State* L) {
//setup the room
//TODO: room parameters only set via lua, fix this
room->SetRoomName(lua_tostring(L, 1));
room->SetTilesetName(lua_tostring(L, 2));
// room->SetTilesetName(lua_tostring(L, 2));
//return room, uid
lua_pushlightuserdata(L, static_cast<void*>(room));