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
@@ -21,6 +21,7 @@ using Framework.GameMath;
using System.Collections.Generic;
using System.Runtime.InteropServices;
using Game.Networking.Packets;
using Game.Maps;
namespace Game.Entities
{
@@ -1274,25 +1275,13 @@ namespace Game.Entities
public uint WorldEffectID;
}
public class GameObjectData
public class GameObjectData : SpawnData
{
public uint id; // entry in gamobject_template
public ushort mapid;
public float posX;
public float posY;
public float posZ;
public float orientation;
public Quaternion rotation;
public int spawntimesecs;
public uint animprogress;
public GameObjectState go_state;
public List<Difficulty> spawnDifficulties = new List<Difficulty>();
public GameObjectState goState;
public byte artKit;
public PhaseUseFlagsValues phaseUseFlags;
public uint phaseId;
public uint phaseGroup;
public int terrainSwapMap;
public uint ScriptId;
public bool dbData = true;
public GameObjectData() : base(SpawnObjectType.GameObject) { }
}
}