Comment tweaks

This commit is contained in:
2016-04-14 04:17:49 +10:00
parent 7c88392cf3
commit b74a5aabcd
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -121,7 +121,7 @@ end
roomManagerAPI.SetOnCreate(function(room, index)
print("", "Creating room: ", roomAPI.GetName(room), index)
--TODO:creatureManager with SetOnCreate, SetOnUnload & create
--creatureManager with SetOnCreate, SetOnUnload & create & unload
creatureManagerAPI.SetOnCreate(roomAPI.GetCreatureMgr(room), function(creature, index)
--
end)
@@ -132,7 +132,7 @@ roomManagerAPI.SetOnCreate(function(room, index)
creatureManagerAPI.Create(roomAPI.GetCreatureMgr(room), "anibunny.png", bunnySquare)
--TODO: (0) barrierManager with Create
--creatureManager with SetOnCreate, SetOnUnload & create & unload
barrierManagerAPI.SetOnCreate(roomAPI.GetBarrierMgr(room), function(barrier)
barrierAPI.SetScript(barrier, barrierTick)
end)
+2 -2
View File
@@ -817,7 +817,7 @@ void ServerApplication::hQueryCreatureExists(CreaturePacket* const argPacket) {
CreatureManager* creatureMgr = roomMgr.Find(argPacket->roomIndex)->GetCreatureMgr();
//TODO: (0) move this into the room class
//TODO: (0) move this into the room class?
for (auto& it : *(creatureMgr->GetContainer()) ) {
copyCreatureToPacket(&newPacket, &(it.second), it.first);
newPacket.type = SerialPacketType::QUERY_CREATURE_EXISTS;
@@ -838,7 +838,7 @@ void ServerApplication::hQueryBarrierExists(BarrierPacket* const argPacket) {
BarrierManager* barrierMgr = roomMgr.Find(argPacket->roomIndex)->GetBarrierMgr();
//TODO: (0) move this into the room class
//TODO: (0) move this into the room class?
for (auto& it : *(barrierMgr->GetContainer()) ) {
copyBarrierToPacket(&newPacket, &(it.second), it.first);
newPacket.type = SerialPacketType::QUERY_BARRIER_EXISTS;