Core/Battlegrounds: Move to scripts And a lot of misc commits i couldn't recover.
Port From (https://github.com/TrinityCore/TrinityCore/commit/d0d5d309bb5877dc2fcb27f6cb123707a31ec1e8)
This commit is contained in:
@@ -43,7 +43,7 @@ namespace Game.Networking.Packets
|
||||
public override void Read()
|
||||
{
|
||||
PlayerGuid = _worldPacket.ReadPackedGuid();
|
||||
DataType = (AccountDataTypes)_worldPacket.ReadBits<uint>(4);
|
||||
DataType = (AccountDataTypes)_worldPacket.ReadInt32();
|
||||
}
|
||||
|
||||
public ObjectGuid PlayerGuid;
|
||||
@@ -56,10 +56,10 @@ namespace Game.Networking.Packets
|
||||
|
||||
public override void Write()
|
||||
{
|
||||
_worldPacket.WritePackedGuid(Player);
|
||||
_worldPacket.WriteInt64(Time);
|
||||
_worldPacket.WriteUInt32(Size);
|
||||
_worldPacket.WriteBits(DataType, 4);
|
||||
_worldPacket.WritePackedGuid(Player);
|
||||
_worldPacket.WriteInt32((int)DataType);
|
||||
|
||||
if (CompressedData == null)
|
||||
_worldPacket.WriteUInt32(0);
|
||||
@@ -84,10 +84,10 @@ namespace Game.Networking.Packets
|
||||
|
||||
public override void Read()
|
||||
{
|
||||
PlayerGuid = _worldPacket.ReadPackedGuid();
|
||||
Time = _worldPacket.ReadInt64();
|
||||
Size = _worldPacket.ReadUInt32();
|
||||
DataType = (AccountDataTypes)_worldPacket.ReadBits<uint>(4);
|
||||
PlayerGuid = _worldPacket.ReadPackedGuid();
|
||||
DataType = (AccountDataTypes)_worldPacket.ReadInt32();
|
||||
|
||||
uint compressedSize = _worldPacket.ReadUInt32();
|
||||
if (compressedSize != 0)
|
||||
|
||||
Reference in New Issue
Block a user