Core/Misc: Updated SpellCastResult, GameError and HotfixStatus enums

Port From (https://github.com/TrinityCore/TrinityCore/commit/262ee285db1c69169210fc09cebca91a19cea4f2)
This commit is contained in:
hondacrx
2021-08-08 14:44:52 -04:00
parent 7ca12d9793
commit 10d7140450
4 changed files with 843 additions and 831 deletions
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
+5 -3
View File
@@ -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();
}