chore(Core/Object): Rename GetGOData() to GetGameObjectData() (#14875)

This commit is contained in:
Skjalf
2023-02-05 08:35:52 -03:00
committed by GitHub
parent 61dec3f143
commit dba8c49bce
14 changed files with 35 additions and 35 deletions

View File

@@ -148,7 +148,7 @@ public:
}
/// @todo is it really necessary to add both the real and DB table guid here ?
sObjectMgr->AddGameobjectToGrid(guidLow, sObjectMgr->GetGOData(guidLow));
sObjectMgr->AddGameobjectToGrid(guidLow, sObjectMgr->GetGameObjectData(guidLow));
handler->PSendSysMessage(LANG_GAMEOBJECT_ADD, uint32(objectId), objectInfo->name.c_str(), guidLow, player->GetPositionX(), player->GetPositionY(), player->GetPositionZ());
return true;
@@ -402,9 +402,9 @@ public:
object->Relocate(pos);
// update which cell has this gameobject registered for loading
sObjectMgr->RemoveGameobjectFromGrid(guidLow, object->GetGOData());
sObjectMgr->RemoveGameobjectFromGrid(guidLow, object->GetGameObjectData());
object->SaveToDB();
sObjectMgr->AddGameobjectToGrid(guidLow, object->GetGOData());
sObjectMgr->AddGameobjectToGrid(guidLow, object->GetGameObjectData());
// Generate a completely new spawn with new guid
// 3.3.5a client caches recently deleted objects and brings them back to life
@@ -509,7 +509,7 @@ public:
if (isGuid || data.holds_alternative<Hyperlink<gameobject>>())
{
spawnId = *data;
GameObjectData const* spawnData = sObjectMgr->GetGOData(spawnId);
GameObjectData const* spawnData = sObjectMgr->GetGameObjectData(spawnId);
if (!spawnData)
{
handler->PSendSysMessage(LANG_COMMAND_OBJNOTFOUND, spawnId);