Core/AreaTriggers: Refactor
* Moved IsServerside to custom flags * Flags moved from areatrigger_template to areatrigger_create_properties * New field to create custom CreateProperties (IsCustom) * New field to reference custom areatriggers (IsAreatriggerCustom) * Moved fields for shape data to areatrigger_create_properties Port From (https://github.com/TrinityCore/TrinityCore/commit/37eb2e64a6ad075e9866af6feb72bb4fbccb2adc)
This commit is contained in:
@@ -3,23 +3,13 @@
|
||||
|
||||
namespace Framework.Constants
|
||||
{
|
||||
public enum AreaTriggerFlags
|
||||
public enum AreaTriggerFlag
|
||||
{
|
||||
HasAbsoluteOrientation = 0x01,
|
||||
HasDynamicShape = 0x02, // Implemented For Spheres
|
||||
HasAttached = 0x04,
|
||||
HasFaceMovementDir = 0x08,
|
||||
HasFollowsTerrain = 0x010, // Nyi
|
||||
Unk1 = 0x020,
|
||||
HasTargetRollPitchYaw = 0x040, // Nyi
|
||||
HasAnimID = 0x080,
|
||||
Unk3 = 0x100,
|
||||
HasAnimKitID = 0x200,
|
||||
HasCircularMovement = 0x400,
|
||||
Unk5 = 0x800
|
||||
None = 0x00,
|
||||
IsServerSide = 0x01
|
||||
}
|
||||
|
||||
public enum AreaTriggerTypes
|
||||
public enum AreaTriggerShapeType
|
||||
{
|
||||
Sphere = 0,
|
||||
Box = 1,
|
||||
@@ -49,4 +39,21 @@ namespace Framework.Constants
|
||||
Caster = 5,
|
||||
Max = 6
|
||||
}
|
||||
|
||||
public enum AreaTriggerCreatePropertiesFlag
|
||||
{
|
||||
None = 0x00,
|
||||
HasAbsoluteOrientation = 0x01,
|
||||
HasDynamicShape = 0x02,
|
||||
HasAttached = 0x04,
|
||||
HasFaceMovementDir = 0x08,
|
||||
HasFollowsTerrain = 0x10, // NYI
|
||||
Unk1 = 0x20,
|
||||
HasTargetRollPitchYaw = 0x40, // NYI
|
||||
HasAnimId = 0x80, // DEPRECATED
|
||||
Unk3 = 0x100,
|
||||
HasAnimKitId = 0x200, // DEPRECATED
|
||||
HasCircularMovement = 0x400, // DEPRECATED
|
||||
Unk5 = 0x800,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user