Dynamic Creature/Go spawning
Port From (https://github.com/TrinityCore/TrinityCore/commit/03b125e6d1947258316c931499746696a95aded2)
This commit is contained in:
@@ -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) { }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user