Core/Misc: Updated SpellCastResult, GameError and HotfixStatus enums
Port From (https://github.com/TrinityCore/TrinityCore/commit/262ee285db1c69169210fc09cebca91a19cea4f2)
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -762,7 +762,8 @@ namespace Framework.Constants
|
||||
OptionalReagents = 307,
|
||||
SpectatorOrCommentator = 308,
|
||||
SoulbindConduitLearnFailedInvalidCovenant = 309,
|
||||
Unknown = 310,
|
||||
ShadowlandsRidingRequirement = 310,
|
||||
Unknown = 311,
|
||||
|
||||
// Ok Cast Value - Here In Case A Future Version Removes Success And We Need To Use A Custom Value (Not Sent To Client Either Way)
|
||||
SpellCastOk = Success
|
||||
|
||||
@@ -2553,9 +2553,11 @@ namespace Game.DataStorage
|
||||
|
||||
public enum Status
|
||||
{
|
||||
Valid = 1,
|
||||
RecordRemoved = 2,
|
||||
Invalid = 3
|
||||
NotSet = 0,
|
||||
Valid = 1,
|
||||
RecordRemoved = 2,
|
||||
Invalid = 3,
|
||||
NotPublic = 4
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -63,7 +63,7 @@ namespace Game.Networking.Packets
|
||||
_worldPacket.WriteUInt32(TableHash);
|
||||
_worldPacket.WriteUInt32(RecordID);
|
||||
_worldPacket.WriteUInt32(Timestamp);
|
||||
_worldPacket.WriteBits((byte)Status, 2);
|
||||
_worldPacket.WriteBits((byte)Status, 3);
|
||||
_worldPacket.WriteUInt32(Data.GetSize());
|
||||
_worldPacket.WriteBytes(Data.GetData());
|
||||
}
|
||||
@@ -140,7 +140,7 @@ namespace Game.Networking.Packets
|
||||
{
|
||||
Record.Write(data);
|
||||
data.WriteUInt32(Size);
|
||||
data.WriteBits((byte)Record.HotfixStatus, 2);
|
||||
data.WriteBits((byte)Record.HotfixStatus, 3);
|
||||
data.FlushBits();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user