Core/Globals: Rename AddCreData -> AddCreatureData and MoveCreData -> MoveCreatureData
This commit is contained in:
1 parent
ec55163ae8
commit
5ceb3fd0ab
3 files changed
+6
-6
No files matched your search
@@ -1893,7 +1893,7 @@ uint32 ObjectMgr::AddGOData(uint32 entry, uint32 mapId, float x, float y, float
|
||||
return guid;
|
||||
}
|
||||
|
||||
bool ObjectMgr::MoveCreData(uint32 guid, uint32 mapId, const Position& pos)
|
||||
bool ObjectMgr::MoveCreatureData(uint32 guid, uint32 mapId, const Position& pos)
|
||||
{
|
||||
CreatureData& data = NewOrExistCreatureData(guid);
|
||||
if (!data.id)
|
||||
@@ -1917,7 +1917,7 @@ bool ObjectMgr::MoveCreData(uint32 guid, uint32 mapId, const Position& pos)
|
||||
Creature* creature = new Creature();
|
||||
if (!creature->LoadCreatureFromDB(guid, map))
|
||||
{
|
||||
TC_LOG_ERROR("misc", "MoveCreData: Cannot add creature guid %u to map", guid);
|
||||
TC_LOG_ERROR("misc", "MoveCreatureData: Cannot add creature guid %u to map", guid);
|
||||
delete creature;
|
||||
return false;
|
||||
}
|
||||
@@ -1926,7 +1926,7 @@ bool ObjectMgr::MoveCreData(uint32 guid, uint32 mapId, const Position& pos)
|
||||
return true;
|
||||
}
|
||||
|
||||
uint32 ObjectMgr::AddCreData(uint32 entry, uint32 mapId, float x, float y, float z, float o, uint32 spawntimedelay /*= 0*/)
|
||||
uint32 ObjectMgr::AddCreatureData(uint32 entry, uint32 mapId, float x, float y, float z, float o, uint32 spawntimedelay /*= 0*/)
|
||||
{
|
||||
CreatureTemplate const* cInfo = GetCreatureTemplate(entry);
|
||||
if (!cInfo)
|
||||
|
||||
@@ -1218,8 +1218,8 @@ class ObjectMgr
|
||||
void AddGameobjectToGrid(uint32 guid, GameObjectData const* data);
|
||||
void RemoveGameobjectFromGrid(uint32 guid, GameObjectData const* data);
|
||||
uint32 AddGOData(uint32 entry, uint32 map, float x, float y, float z, float o, uint32 spawntimedelay = 0, float rotation0 = 0, float rotation1 = 0, float rotation2 = 0, float rotation3 = 0);
|
||||
uint32 AddCreData(uint32 entry, uint32 map, float x, float y, float z, float o, uint32 spawntimedelay = 0);
|
||||
bool MoveCreData(uint32 guid, uint32 map, const Position& pos);
|
||||
uint32 AddCreatureData(uint32 entry, uint32 map, float x, float y, float z, float o, uint32 spawntimedelay = 0);
|
||||
bool MoveCreatureData(uint32 guid, uint32 map, const Position& pos);
|
||||
|
||||
// reserved names
|
||||
void LoadReservedPlayersNames();
|
||||
|
||||
@@ -125,7 +125,7 @@ bool OPvPCapturePoint::AddObject(uint32 type, uint32 entry, uint32 map, float x,
|
||||
|
||||
bool OPvPCapturePoint::AddCreature(uint32 type, uint32 entry, uint32 map, float x, float y, float z, float o, TeamId /*teamId = TEAM_NEUTRAL*/, uint32 spawntimedelay /*= 0*/)
|
||||
{
|
||||
if (uint32 guid = sObjectMgr->AddCreData(entry, map, x, y, z, o, spawntimedelay))
|
||||
if (uint32 guid = sObjectMgr->AddCreatureData(entry, map, x, y, z, o, spawntimedelay))
|
||||
{
|
||||
AddCre(type, guid, entry);
|
||||
return true;
|
||||
|
||||
Reference in new issue
Block a user