mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-01-16 07:30:42 +01:00
Core/Misc: Updated SpellCastResult, GameError and HotfixStatus enums
This commit is contained in:
@@ -292,9 +292,11 @@ public:
|
||||
{
|
||||
enum class Status : uint8
|
||||
{
|
||||
NotSet = 0,
|
||||
Valid = 1,
|
||||
RecordRemoved = 2,
|
||||
Invalid = 3
|
||||
Invalid = 3,
|
||||
NotPublic = 4
|
||||
};
|
||||
|
||||
uint32 TableHash = 0;
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -55,7 +55,7 @@ WorldPacket const* DBReply::Write()
|
||||
_worldPacket << uint32(TableHash);
|
||||
_worldPacket << uint32(RecordID);
|
||||
_worldPacket << uint32(Timestamp);
|
||||
_worldPacket.WriteBits(AsUnderlyingType(Status), 2);
|
||||
_worldPacket.WriteBits(AsUnderlyingType(Status), 3);
|
||||
_worldPacket << uint32(Data.size());
|
||||
_worldPacket.append(Data);
|
||||
|
||||
@@ -90,7 +90,7 @@ ByteBuffer& operator<<(ByteBuffer& data, HotfixConnect::HotfixData const& hotfix
|
||||
{
|
||||
data << hotfixData.Record;
|
||||
data << uint32(hotfixData.Size);
|
||||
data.WriteBits(AsUnderlyingType(hotfixData.Record.HotfixStatus), 2);
|
||||
data.WriteBits(AsUnderlyingType(hotfixData.Record.HotfixStatus), 3);
|
||||
data.FlushBits();
|
||||
|
||||
return data;
|
||||
|
||||
Reference in New Issue
Block a user