mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-22 05:06:24 +00:00
refactor(Core/Misc): acore to Acore (#6043)
This commit is contained in:
@@ -17,7 +17,7 @@
|
||||
#include "WorldPacket.h"
|
||||
|
||||
template<class T>
|
||||
inline void acore::VisibleNotifier::Visit(GridRefManager<T>& m)
|
||||
inline void Acore::VisibleNotifier::Visit(GridRefManager<T>& m)
|
||||
{
|
||||
// Xinef: Update gameobjects only
|
||||
if (i_gobjOnly)
|
||||
@@ -37,7 +37,7 @@ inline void acore::VisibleNotifier::Visit(GridRefManager<T>& m)
|
||||
// WorldObject searchers & workers
|
||||
|
||||
template<class Check>
|
||||
void acore::WorldObjectSearcher<Check>::Visit(GameObjectMapType& m)
|
||||
void Acore::WorldObjectSearcher<Check>::Visit(GameObjectMapType& m)
|
||||
{
|
||||
if (!(i_mapTypeMask & GRID_MAP_TYPE_MASK_GAMEOBJECT))
|
||||
return;
|
||||
@@ -60,7 +60,7 @@ void acore::WorldObjectSearcher<Check>::Visit(GameObjectMapType& m)
|
||||
}
|
||||
|
||||
template<class Check>
|
||||
void acore::WorldObjectSearcher<Check>::Visit(PlayerMapType& m)
|
||||
void Acore::WorldObjectSearcher<Check>::Visit(PlayerMapType& m)
|
||||
{
|
||||
if (!(i_mapTypeMask & GRID_MAP_TYPE_MASK_PLAYER))
|
||||
return;
|
||||
@@ -83,7 +83,7 @@ void acore::WorldObjectSearcher<Check>::Visit(PlayerMapType& m)
|
||||
}
|
||||
|
||||
template<class Check>
|
||||
void acore::WorldObjectSearcher<Check>::Visit(CreatureMapType& m)
|
||||
void Acore::WorldObjectSearcher<Check>::Visit(CreatureMapType& m)
|
||||
{
|
||||
if (!(i_mapTypeMask & GRID_MAP_TYPE_MASK_CREATURE))
|
||||
return;
|
||||
@@ -106,7 +106,7 @@ void acore::WorldObjectSearcher<Check>::Visit(CreatureMapType& m)
|
||||
}
|
||||
|
||||
template<class Check>
|
||||
void acore::WorldObjectSearcher<Check>::Visit(CorpseMapType& m)
|
||||
void Acore::WorldObjectSearcher<Check>::Visit(CorpseMapType& m)
|
||||
{
|
||||
if (!(i_mapTypeMask & GRID_MAP_TYPE_MASK_CORPSE))
|
||||
return;
|
||||
@@ -129,7 +129,7 @@ void acore::WorldObjectSearcher<Check>::Visit(CorpseMapType& m)
|
||||
}
|
||||
|
||||
template<class Check>
|
||||
void acore::WorldObjectSearcher<Check>::Visit(DynamicObjectMapType& m)
|
||||
void Acore::WorldObjectSearcher<Check>::Visit(DynamicObjectMapType& m)
|
||||
{
|
||||
if (!(i_mapTypeMask & GRID_MAP_TYPE_MASK_DYNAMICOBJECT))
|
||||
return;
|
||||
@@ -152,7 +152,7 @@ void acore::WorldObjectSearcher<Check>::Visit(DynamicObjectMapType& m)
|
||||
}
|
||||
|
||||
template<class Check>
|
||||
void acore::WorldObjectLastSearcher<Check>::Visit(GameObjectMapType& m)
|
||||
void Acore::WorldObjectLastSearcher<Check>::Visit(GameObjectMapType& m)
|
||||
{
|
||||
if (!(i_mapTypeMask & GRID_MAP_TYPE_MASK_GAMEOBJECT))
|
||||
return;
|
||||
@@ -168,7 +168,7 @@ void acore::WorldObjectLastSearcher<Check>::Visit(GameObjectMapType& m)
|
||||
}
|
||||
|
||||
template<class Check>
|
||||
void acore::WorldObjectLastSearcher<Check>::Visit(PlayerMapType& m)
|
||||
void Acore::WorldObjectLastSearcher<Check>::Visit(PlayerMapType& m)
|
||||
{
|
||||
if (!(i_mapTypeMask & GRID_MAP_TYPE_MASK_PLAYER))
|
||||
return;
|
||||
@@ -184,7 +184,7 @@ void acore::WorldObjectLastSearcher<Check>::Visit(PlayerMapType& m)
|
||||
}
|
||||
|
||||
template<class Check>
|
||||
void acore::WorldObjectLastSearcher<Check>::Visit(CreatureMapType& m)
|
||||
void Acore::WorldObjectLastSearcher<Check>::Visit(CreatureMapType& m)
|
||||
{
|
||||
if (!(i_mapTypeMask & GRID_MAP_TYPE_MASK_CREATURE))
|
||||
return;
|
||||
@@ -200,7 +200,7 @@ void acore::WorldObjectLastSearcher<Check>::Visit(CreatureMapType& m)
|
||||
}
|
||||
|
||||
template<class Check>
|
||||
void acore::WorldObjectLastSearcher<Check>::Visit(CorpseMapType& m)
|
||||
void Acore::WorldObjectLastSearcher<Check>::Visit(CorpseMapType& m)
|
||||
{
|
||||
if (!(i_mapTypeMask & GRID_MAP_TYPE_MASK_CORPSE))
|
||||
return;
|
||||
@@ -216,7 +216,7 @@ void acore::WorldObjectLastSearcher<Check>::Visit(CorpseMapType& m)
|
||||
}
|
||||
|
||||
template<class Check>
|
||||
void acore::WorldObjectLastSearcher<Check>::Visit(DynamicObjectMapType& m)
|
||||
void Acore::WorldObjectLastSearcher<Check>::Visit(DynamicObjectMapType& m)
|
||||
{
|
||||
if (!(i_mapTypeMask & GRID_MAP_TYPE_MASK_DYNAMICOBJECT))
|
||||
return;
|
||||
@@ -232,7 +232,7 @@ void acore::WorldObjectLastSearcher<Check>::Visit(DynamicObjectMapType& m)
|
||||
}
|
||||
|
||||
template<class Check>
|
||||
void acore::WorldObjectListSearcher<Check>::Visit(PlayerMapType& m)
|
||||
void Acore::WorldObjectListSearcher<Check>::Visit(PlayerMapType& m)
|
||||
{
|
||||
if (!(i_mapTypeMask & GRID_MAP_TYPE_MASK_PLAYER))
|
||||
return;
|
||||
@@ -243,7 +243,7 @@ void acore::WorldObjectListSearcher<Check>::Visit(PlayerMapType& m)
|
||||
}
|
||||
|
||||
template<class Check>
|
||||
void acore::WorldObjectListSearcher<Check>::Visit(CreatureMapType& m)
|
||||
void Acore::WorldObjectListSearcher<Check>::Visit(CreatureMapType& m)
|
||||
{
|
||||
if (!(i_mapTypeMask & GRID_MAP_TYPE_MASK_CREATURE))
|
||||
return;
|
||||
@@ -254,7 +254,7 @@ void acore::WorldObjectListSearcher<Check>::Visit(CreatureMapType& m)
|
||||
}
|
||||
|
||||
template<class Check>
|
||||
void acore::WorldObjectListSearcher<Check>::Visit(CorpseMapType& m)
|
||||
void Acore::WorldObjectListSearcher<Check>::Visit(CorpseMapType& m)
|
||||
{
|
||||
if (!(i_mapTypeMask & GRID_MAP_TYPE_MASK_CORPSE))
|
||||
return;
|
||||
@@ -265,7 +265,7 @@ void acore::WorldObjectListSearcher<Check>::Visit(CorpseMapType& m)
|
||||
}
|
||||
|
||||
template<class Check>
|
||||
void acore::WorldObjectListSearcher<Check>::Visit(GameObjectMapType& m)
|
||||
void Acore::WorldObjectListSearcher<Check>::Visit(GameObjectMapType& m)
|
||||
{
|
||||
if (!(i_mapTypeMask & GRID_MAP_TYPE_MASK_GAMEOBJECT))
|
||||
return;
|
||||
@@ -276,7 +276,7 @@ void acore::WorldObjectListSearcher<Check>::Visit(GameObjectMapType& m)
|
||||
}
|
||||
|
||||
template<class Check>
|
||||
void acore::WorldObjectListSearcher<Check>::Visit(DynamicObjectMapType& m)
|
||||
void Acore::WorldObjectListSearcher<Check>::Visit(DynamicObjectMapType& m)
|
||||
{
|
||||
if (!(i_mapTypeMask & GRID_MAP_TYPE_MASK_DYNAMICOBJECT))
|
||||
return;
|
||||
@@ -289,7 +289,7 @@ void acore::WorldObjectListSearcher<Check>::Visit(DynamicObjectMapType& m)
|
||||
// Gameobject searchers
|
||||
|
||||
template<class Check>
|
||||
void acore::GameObjectSearcher<Check>::Visit(GameObjectMapType& m)
|
||||
void Acore::GameObjectSearcher<Check>::Visit(GameObjectMapType& m)
|
||||
{
|
||||
// already found
|
||||
if (i_object)
|
||||
@@ -309,7 +309,7 @@ void acore::GameObjectSearcher<Check>::Visit(GameObjectMapType& m)
|
||||
}
|
||||
|
||||
template<class Check>
|
||||
void acore::GameObjectLastSearcher<Check>::Visit(GameObjectMapType& m)
|
||||
void Acore::GameObjectLastSearcher<Check>::Visit(GameObjectMapType& m)
|
||||
{
|
||||
for (GameObjectMapType::iterator itr = m.begin(); itr != m.end(); ++itr)
|
||||
{
|
||||
@@ -322,7 +322,7 @@ void acore::GameObjectLastSearcher<Check>::Visit(GameObjectMapType& m)
|
||||
}
|
||||
|
||||
template<class Check>
|
||||
void acore::GameObjectListSearcher<Check>::Visit(GameObjectMapType& m)
|
||||
void Acore::GameObjectListSearcher<Check>::Visit(GameObjectMapType& m)
|
||||
{
|
||||
for (GameObjectMapType::iterator itr = m.begin(); itr != m.end(); ++itr)
|
||||
if (itr->GetSource()->InSamePhase(i_phaseMask))
|
||||
@@ -333,7 +333,7 @@ void acore::GameObjectListSearcher<Check>::Visit(GameObjectMapType& m)
|
||||
// Unit searchers
|
||||
|
||||
template<class Check>
|
||||
void acore::UnitSearcher<Check>::Visit(CreatureMapType& m)
|
||||
void Acore::UnitSearcher<Check>::Visit(CreatureMapType& m)
|
||||
{
|
||||
// already found
|
||||
if (i_object)
|
||||
@@ -353,7 +353,7 @@ void acore::UnitSearcher<Check>::Visit(CreatureMapType& m)
|
||||
}
|
||||
|
||||
template<class Check>
|
||||
void acore::UnitSearcher<Check>::Visit(PlayerMapType& m)
|
||||
void Acore::UnitSearcher<Check>::Visit(PlayerMapType& m)
|
||||
{
|
||||
// already found
|
||||
if (i_object)
|
||||
@@ -373,7 +373,7 @@ void acore::UnitSearcher<Check>::Visit(PlayerMapType& m)
|
||||
}
|
||||
|
||||
template<class Check>
|
||||
void acore::UnitLastSearcher<Check>::Visit(CreatureMapType& m)
|
||||
void Acore::UnitLastSearcher<Check>::Visit(CreatureMapType& m)
|
||||
{
|
||||
for (CreatureMapType::iterator itr = m.begin(); itr != m.end(); ++itr)
|
||||
{
|
||||
@@ -386,7 +386,7 @@ void acore::UnitLastSearcher<Check>::Visit(CreatureMapType& m)
|
||||
}
|
||||
|
||||
template<class Check>
|
||||
void acore::UnitLastSearcher<Check>::Visit(PlayerMapType& m)
|
||||
void Acore::UnitLastSearcher<Check>::Visit(PlayerMapType& m)
|
||||
{
|
||||
for (PlayerMapType::iterator itr = m.begin(); itr != m.end(); ++itr)
|
||||
{
|
||||
@@ -399,7 +399,7 @@ void acore::UnitLastSearcher<Check>::Visit(PlayerMapType& m)
|
||||
}
|
||||
|
||||
template<class Check>
|
||||
void acore::UnitListSearcher<Check>::Visit(PlayerMapType& m)
|
||||
void Acore::UnitListSearcher<Check>::Visit(PlayerMapType& m)
|
||||
{
|
||||
for (PlayerMapType::iterator itr = m.begin(); itr != m.end(); ++itr)
|
||||
if (itr->GetSource()->InSamePhase(i_phaseMask))
|
||||
@@ -408,7 +408,7 @@ void acore::UnitListSearcher<Check>::Visit(PlayerMapType& m)
|
||||
}
|
||||
|
||||
template<class Check>
|
||||
void acore::UnitListSearcher<Check>::Visit(CreatureMapType& m)
|
||||
void Acore::UnitListSearcher<Check>::Visit(CreatureMapType& m)
|
||||
{
|
||||
for (CreatureMapType::iterator itr = m.begin(); itr != m.end(); ++itr)
|
||||
if (itr->GetSource()->InSamePhase(i_phaseMask))
|
||||
@@ -419,7 +419,7 @@ void acore::UnitListSearcher<Check>::Visit(CreatureMapType& m)
|
||||
// Creature searchers
|
||||
|
||||
template<class Check>
|
||||
void acore::CreatureSearcher<Check>::Visit(CreatureMapType& m)
|
||||
void Acore::CreatureSearcher<Check>::Visit(CreatureMapType& m)
|
||||
{
|
||||
// already found
|
||||
if (i_object)
|
||||
@@ -439,7 +439,7 @@ void acore::CreatureSearcher<Check>::Visit(CreatureMapType& m)
|
||||
}
|
||||
|
||||
template<class Check>
|
||||
void acore::CreatureLastSearcher<Check>::Visit(CreatureMapType& m)
|
||||
void Acore::CreatureLastSearcher<Check>::Visit(CreatureMapType& m)
|
||||
{
|
||||
for (CreatureMapType::iterator itr = m.begin(); itr != m.end(); ++itr)
|
||||
{
|
||||
@@ -452,7 +452,7 @@ void acore::CreatureLastSearcher<Check>::Visit(CreatureMapType& m)
|
||||
}
|
||||
|
||||
template<class Check>
|
||||
void acore::CreatureListSearcher<Check>::Visit(CreatureMapType& m)
|
||||
void Acore::CreatureListSearcher<Check>::Visit(CreatureMapType& m)
|
||||
{
|
||||
for (CreatureMapType::iterator itr = m.begin(); itr != m.end(); ++itr)
|
||||
if (itr->GetSource()->InSamePhase(i_phaseMask))
|
||||
@@ -461,7 +461,7 @@ void acore::CreatureListSearcher<Check>::Visit(CreatureMapType& m)
|
||||
}
|
||||
|
||||
template<class Check>
|
||||
void acore::PlayerListSearcher<Check>::Visit(PlayerMapType& m)
|
||||
void Acore::PlayerListSearcher<Check>::Visit(PlayerMapType& m)
|
||||
{
|
||||
for (PlayerMapType::iterator itr = m.begin(); itr != m.end(); ++itr)
|
||||
if (itr->GetSource()->InSamePhase(i_phaseMask))
|
||||
@@ -470,7 +470,7 @@ void acore::PlayerListSearcher<Check>::Visit(PlayerMapType& m)
|
||||
}
|
||||
|
||||
template<class Check>
|
||||
void acore::PlayerListSearcherWithSharedVision<Check>::Visit(PlayerMapType& m)
|
||||
void Acore::PlayerListSearcherWithSharedVision<Check>::Visit(PlayerMapType& m)
|
||||
{
|
||||
for (PlayerMapType::iterator itr = m.begin(); itr != m.end(); ++itr)
|
||||
if (itr->GetSource()->InSamePhase(i_phaseMask))
|
||||
@@ -479,7 +479,7 @@ void acore::PlayerListSearcherWithSharedVision<Check>::Visit(PlayerMapType& m)
|
||||
}
|
||||
|
||||
template<class Check>
|
||||
void acore::PlayerListSearcherWithSharedVision<Check>::Visit(CreatureMapType& m)
|
||||
void Acore::PlayerListSearcherWithSharedVision<Check>::Visit(CreatureMapType& m)
|
||||
{
|
||||
for (CreatureMapType::iterator itr = m.begin(); itr != m.end(); ++itr)
|
||||
if (itr->GetSource()->InSamePhase(i_phaseMask) && itr->GetSource()->HasSharedVision())
|
||||
@@ -489,7 +489,7 @@ void acore::PlayerListSearcherWithSharedVision<Check>::Visit(CreatureMapType& m)
|
||||
}
|
||||
|
||||
template<class Check>
|
||||
void acore::PlayerSearcher<Check>::Visit(PlayerMapType& m)
|
||||
void Acore::PlayerSearcher<Check>::Visit(PlayerMapType& m)
|
||||
{
|
||||
// already found
|
||||
if (i_object)
|
||||
@@ -509,7 +509,7 @@ void acore::PlayerSearcher<Check>::Visit(PlayerMapType& m)
|
||||
}
|
||||
|
||||
template<class Check>
|
||||
void acore::PlayerLastSearcher<Check>::Visit(PlayerMapType& m)
|
||||
void Acore::PlayerLastSearcher<Check>::Visit(PlayerMapType& m)
|
||||
{
|
||||
for (PlayerMapType::iterator itr = m.begin(); itr != m.end(); ++itr)
|
||||
{
|
||||
@@ -522,7 +522,7 @@ void acore::PlayerLastSearcher<Check>::Visit(PlayerMapType& m)
|
||||
}
|
||||
|
||||
template<class Builder>
|
||||
void acore::LocalizedPacketDo<Builder>::operator()(Player* p)
|
||||
void Acore::LocalizedPacketDo<Builder>::operator()(Player* p)
|
||||
{
|
||||
LocaleConstant loc_idx = p->GetSession()->GetSessionDbLocaleIndex();
|
||||
uint32 cache_idx = loc_idx + 1;
|
||||
@@ -547,7 +547,7 @@ void acore::LocalizedPacketDo<Builder>::operator()(Player* p)
|
||||
}
|
||||
|
||||
template<class Builder>
|
||||
void acore::LocalizedPacketListDo<Builder>::operator()(Player* p)
|
||||
void Acore::LocalizedPacketListDo<Builder>::operator()(Player* p)
|
||||
{
|
||||
LocaleConstant loc_idx = p->GetSession()->GetSessionDbLocaleIndex();
|
||||
uint32 cache_idx = loc_idx + 1;
|
||||
|
||||
Reference in New Issue
Block a user