Core/PacketIO: 9.1.0 opcodes and packet structures
Port From (https://github.com/TrinityCore/TrinityCore/commit/cd5357dc185f95c6ef78089c5ab8bd2b885dd89f)
This commit is contained in:
@@ -928,6 +928,7 @@ namespace Game.Networking.Packets
|
||||
public Optional<ulong> BidAmount;
|
||||
public List<ItemGemData> Gems = new();
|
||||
public Optional<AuctionBucketKey> AuctionBucketKey;
|
||||
public Optional<ObjectGuid> Creator;
|
||||
|
||||
public void Write(WorldPacket data)
|
||||
{
|
||||
@@ -941,6 +942,7 @@ namespace Game.Networking.Packets
|
||||
data.WriteBit(CensorServerSideInfo);
|
||||
data.WriteBit(CensorBidInfo);
|
||||
data.WriteBit(AuctionBucketKey.HasValue);
|
||||
data.WriteBit(Creator.HasValue);
|
||||
if (!CensorBidInfo)
|
||||
{
|
||||
data.WriteBit(Bidder.HasValue);
|
||||
@@ -982,6 +984,9 @@ namespace Game.Networking.Packets
|
||||
data.WriteUInt32(EndTime);
|
||||
}
|
||||
|
||||
if (Creator.HasValue)
|
||||
data.WritePackedGuid(Creator.Value);
|
||||
|
||||
if (!CensorBidInfo)
|
||||
{
|
||||
if (Bidder.HasValue)
|
||||
|
||||
Reference in New Issue
Block a user