Exposed BarrierManager to the API*

This commit is contained in:
2016-04-11 01:03:02 +10:00
parent ccb7adbd10
commit f32b8a9b4f
9 changed files with 142 additions and 0 deletions
+7
View File
@@ -50,6 +50,12 @@ static int getTilesetName(lua_State* L) {
return 1;
}
static int getBarrierMgr(lua_State* L) {
RoomData* room = reinterpret_cast<RoomData*>(lua_touserdata(L, 1));
lua_pushlightuserdata(L, reinterpret_cast<void*>(room->GetBarrierMgr()) );
return 1;
}
static int getCreatureMgr(lua_State* L) {
RoomData* room = reinterpret_cast<RoomData*>(lua_touserdata(L, 1));
lua_pushlightuserdata(L, reinterpret_cast<void*>(room->GetCreatureMgr()) );
@@ -135,6 +141,7 @@ static const luaL_Reg roomLib[] = {
{"SetTileset", setTilesetName},
{"GetTileset", getTilesetName},
{"GetBarrierMgr", getBarrierMgr},
{"GetCreatureMgr",getCreatureMgr},
{"GetPager",getPager},
{"GetTriggerMgr",getTriggerMgr},