chore: AzerothCore Cell::VisitAllObjects

This commit is contained in:
Kitzunu
2021-05-30 05:04:43 +02:00
parent c97dd03d61
commit 2a859a655c
2 changed files with 10 additions and 10 deletions

View File

@@ -1264,7 +1264,7 @@ namespace LuaUnit
#elif AZEROTHCORE
acore::AnyFriendlyUnitInObjectRangeCheck checker(unit, unit, range);
acore::UnitListSearcher<acore::AnyFriendlyUnitInObjectRangeCheck> searcher(unit, list, checker);
unit->VisitNearbyObject(range, searcher);
Cell::VisitAllObjects(unit, searcher, range);
#else
MaNGOS::AnyFriendlyUnitInObjectRangeCheck checker(unit, range);
MaNGOS::UnitListSearcher<MaNGOS::AnyFriendlyUnitInObjectRangeCheck> searcher(list, checker);
@@ -1305,7 +1305,7 @@ namespace LuaUnit
#elif AZEROTHCORE
acore::AnyUnfriendlyUnitInObjectRangeCheck checker(unit, unit, range);
acore::UnitListSearcher<acore::AnyUnfriendlyUnitInObjectRangeCheck> searcher(unit, list, checker);
unit->VisitNearbyObject(range, searcher);
Cell::VisitAllObjects(unit, searcher, range);
#else
MaNGOS::AnyUnfriendlyUnitInObjectRangeCheck checker(unit, range);
MaNGOS::UnitListSearcher<MaNGOS::AnyUnfriendlyUnitInObjectRangeCheck> searcher(list, checker);

View File

@@ -189,7 +189,7 @@ namespace LuaWorldObject
#elif AZEROTHCORE
acore::UnitLastSearcher<ElunaUtil::WorldObjectInRangeCheck> searcher(obj, target, checker);
obj->VisitNearbyObject(range,searcher);
Cell::VisitAllObjects(obj, searcher, range);
#else
MaNGOS::UnitLastSearcher<ElunaUtil::WorldObjectInRangeCheck> searcher(target, checker);
Cell::VisitWorldObjects(obj, searcher, range);
@@ -221,7 +221,7 @@ namespace LuaWorldObject
Cell::VisitAllObjects(obj, searcher, range);
#elif AZEROTHCORE
acore::GameObjectLastSearcher<ElunaUtil::WorldObjectInRangeCheck> searcher(obj, target, checker);
obj->VisitNearbyObject(range, searcher);
Cell::VisitAllObjects(obj, searcher, range);
#else
MaNGOS::GameObjectLastSearcher<ElunaUtil::WorldObjectInRangeCheck> searcher(target, checker);
Cell::VisitGridObjects(obj, searcher, range);
@@ -255,7 +255,7 @@ namespace LuaWorldObject
Cell::VisitAllObjects(obj, searcher, range);
#elif AZEROTHCORE
acore::CreatureLastSearcher<ElunaUtil::WorldObjectInRangeCheck> searcher(obj, target, checker);
obj->VisitNearbyObject(range, searcher);
Cell::VisitAllObjects(obj, searcher, range);
#else
MaNGOS::CreatureLastSearcher<ElunaUtil::WorldObjectInRangeCheck> searcher(target, checker);
Cell::VisitGridObjects(obj, searcher, range);
@@ -288,7 +288,7 @@ namespace LuaWorldObject
Cell::VisitAllObjects(obj, searcher, range);
#elif AZEROTHCORE
acore::PlayerListSearcher<ElunaUtil::WorldObjectInRangeCheck> searcher(obj, list, checker);
obj->VisitNearbyObject(range, searcher);
Cell::VisitAllObjects(obj, searcher, range);
#else
MaNGOS::PlayerListSearcher<ElunaUtil::WorldObjectInRangeCheck> searcher(list, checker);
Cell::VisitWorldObjects(obj, searcher, range);
@@ -332,7 +332,7 @@ namespace LuaWorldObject
Cell::VisitAllObjects(obj, searcher, range);
#elif defined AZEROTHCORE
acore::CreatureListSearcher<ElunaUtil::WorldObjectInRangeCheck> searcher(obj, list, checker);
obj->VisitNearbyObject(range, searcher);
Cell::VisitAllObjects(obj, searcher, range);
#else
MaNGOS::CreatureListSearcher<ElunaUtil::WorldObjectInRangeCheck> searcher(list, checker);
Cell::VisitGridObjects(obj, searcher, range);
@@ -374,7 +374,7 @@ namespace LuaWorldObject
Cell::VisitAllObjects(obj, searcher, range);
#elif AZEROTHCORE
acore::GameObjectListSearcher<ElunaUtil::WorldObjectInRangeCheck> searcher(obj, list, checker);
obj->VisitNearbyObject(range, searcher);
Cell::VisitAllObjects(obj, searcher, range);
#else
MaNGOS::GameObjectListSearcher<ElunaUtil::WorldObjectInRangeCheck> searcher(list, checker);
Cell::VisitGridObjects(obj, searcher, range);
@@ -424,7 +424,7 @@ namespace LuaWorldObject
Cell::VisitAllObjects(obj, searcher, range);
#elif AZEROTHCORE
acore::WorldObjectLastSearcher<ElunaUtil::WorldObjectInRangeCheck> searcher(obj, target, checker);
obj->VisitNearbyObject(range, searcher);
Cell::VisitAllObjects(obj, searcher, range);
#else
MaNGOS::WorldObjectLastSearcher<ElunaUtil::WorldObjectInRangeCheck> searcher(target, checker);
Cell::VisitAllObjects(obj, searcher, range);
@@ -464,7 +464,7 @@ namespace LuaWorldObject
Cell::VisitAllObjects(obj, searcher, range);
#elif AZEROTHCORE
acore::WorldObjectListSearcher<ElunaUtil::WorldObjectInRangeCheck> searcher(obj, list, checker);
obj->VisitNearbyObject(range, searcher);
Cell::VisitAllObjects(obj, searcher, range);
#else
MaNGOS::WorldObjectListSearcher<ElunaUtil::WorldObjectInRangeCheck> searcher(list, checker);
Cell::VisitAllObjects(obj, searcher, range);