Core/Movement: Defined movement force type enum

Port From (https://github.com/TrinityCore/TrinityCore/commit/e2de5000acba888e2ae3177893f6063340902ffd)
This commit is contained in:
hondacrx
2021-12-10 17:33:33 -05:00
parent 3c6f584f33
commit f77b631422
4 changed files with 11 additions and 5 deletions
+2 -2
View File
@@ -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();