Core/Movement: Defined movement force type enum
Port From (https://github.com/TrinityCore/TrinityCore/commit/e2de5000acba888e2ae3177893f6063340902ffd)
This commit is contained in:
@@ -3509,7 +3509,7 @@ namespace Game.Entities
|
||||
public Vector3 Direction;
|
||||
public uint TransportID;
|
||||
public float Magnitude;
|
||||
public byte Type;
|
||||
public MovementForceType Type;
|
||||
public int Unused910;
|
||||
|
||||
public void Read(WorldPacket data)
|
||||
@@ -3519,7 +3519,7 @@ namespace Game.Entities
|
||||
Direction = data.ReadVector3();
|
||||
TransportID = data.ReadUInt32();
|
||||
Magnitude = data.ReadFloat();
|
||||
Type = data.ReadBits<byte>(2);
|
||||
Type = (MovementForceType)data.ReadBits<byte>(2);
|
||||
bool has910 = data.HasBit();
|
||||
if (has910)
|
||||
Unused910 = data.ReadInt32();
|
||||
|
||||
Reference in New Issue
Block a user