Dynamic Creature/Go spawning

Port From (https://github.com/TrinityCore/TrinityCore/commit/03b125e6d1947258316c931499746696a95aded2)
This commit is contained in:
hondacrx
2020-08-23 21:52:32 -04:00
parent 8fc9c45d50
commit 15ae7a7c66
45 changed files with 3925 additions and 1963 deletions
+5 -5
View File
@@ -358,7 +358,7 @@ namespace Game.PvP
void AddGO(uint type, ulong guid)
{
GameObjectData data = Global.ObjectMgr.GetGOData(guid);
GameObjectData data = Global.ObjectMgr.GetGameObjectData(guid);
if (data == null)
return;
@@ -378,7 +378,7 @@ namespace Game.PvP
public bool AddObject(uint type, uint entry, uint map, Position pos, Quaternion rot)
{
ulong guid = Global.ObjectMgr.AddGOData(entry, map, pos, rot, 0);
ulong guid = Global.ObjectMgr.AddGameObjectData(entry, map, pos, rot, 0);
if (guid != 0)
{
AddGO(type, guid);
@@ -412,7 +412,7 @@ namespace Game.PvP
return false;
}
m_capturePointSpawnId = Global.ObjectMgr.AddGOData(entry, map, pos, rot, 0);
m_capturePointSpawnId = Global.ObjectMgr.AddGameObjectData(entry, map, pos, rot, 0);
if (m_capturePointSpawnId == 0)
return false;
@@ -472,7 +472,7 @@ namespace Game.PvP
gameobject.Delete();
}
Global.ObjectMgr.DeleteGOData(spawnId);
Global.ObjectMgr.DeleteGameObjectData(spawnId);
m_ObjectTypes.Remove(spawnId);
m_Objects.Remove(type);
return true;
@@ -480,7 +480,7 @@ namespace Game.PvP
bool DelCapturePoint()
{
Global.ObjectMgr.DeleteGOData(m_capturePointSpawnId);
Global.ObjectMgr.DeleteGameObjectData(m_capturePointSpawnId);
m_capturePointSpawnId = 0;
if (m_capturePoint)