Implemented CharacterManager::ForEach()

This commit is contained in:
Kayne Ruse
2015-03-02 02:40:25 +11:00
parent edcb6f05ce
commit b8806cc209
3 changed files with 28 additions and 2 deletions
+2
View File
@@ -67,6 +67,8 @@ static int getTriggerMgr(lua_State* L) {
//TODO: character list
//TODO: (1) forEachCharacter
static int setOnTick(lua_State* L) {
RoomData* room = reinterpret_cast<RoomData*>(lua_touserdata(L, 1));
luaL_unref(L, LUA_REGISTRYINDEX, room->GetTickReference());