Core/PacketIO: Fix some inconsistencies with TC (#61)
Co-authored-by: RioMcBoo <artem.jkl@gmail.com>
This commit is contained in:
@@ -489,7 +489,7 @@ namespace Game.Networking.Packets
|
|||||||
{
|
{
|
||||||
public ulong? TotalPrice;
|
public ulong? TotalPrice;
|
||||||
public uint? Quantity;
|
public uint? Quantity;
|
||||||
public int? QuoteDuration;
|
public long? QuoteDuration;
|
||||||
public int ItemID;
|
public int ItemID;
|
||||||
public uint DesiredDelay;
|
public uint DesiredDelay;
|
||||||
|
|
||||||
@@ -510,7 +510,7 @@ namespace Game.Networking.Packets
|
|||||||
_worldPacket.WriteUInt32(Quantity.Value);
|
_worldPacket.WriteUInt32(Quantity.Value);
|
||||||
|
|
||||||
if (QuoteDuration.HasValue)
|
if (QuoteDuration.HasValue)
|
||||||
_worldPacket.WriteInt32(QuoteDuration.Value);
|
_worldPacket.WriteInt64(QuoteDuration.Value);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -473,7 +473,7 @@ namespace Game.Networking.Packets
|
|||||||
_worldPacket.WriteUInt32(MapID);
|
_worldPacket.WriteUInt32(MapID);
|
||||||
_worldPacket.WriteUInt8((byte)State);
|
_worldPacket.WriteUInt8((byte)State);
|
||||||
_worldPacket.WriteInt64(StartTime);
|
_worldPacket.WriteInt64(StartTime);
|
||||||
_worldPacket.WriteInt32(Duration);
|
_worldPacket.WriteInt64(Duration);
|
||||||
_worldPacket.WriteUInt8(ArenaFaction);
|
_worldPacket.WriteUInt8(ArenaFaction);
|
||||||
_worldPacket.WriteUInt32(BattlemasterListID);
|
_worldPacket.WriteUInt32(BattlemasterListID);
|
||||||
_worldPacket.WriteBit(Registered);
|
_worldPacket.WriteBit(Registered);
|
||||||
@@ -488,7 +488,7 @@ namespace Game.Networking.Packets
|
|||||||
public uint MapID;
|
public uint MapID;
|
||||||
public PVPMatchState State = PVPMatchState.Inactive;
|
public PVPMatchState State = PVPMatchState.Inactive;
|
||||||
public long StartTime;
|
public long StartTime;
|
||||||
public int Duration;
|
public long Duration;
|
||||||
public RatedMatchDeserterPenalty DeserterPenalty;
|
public RatedMatchDeserterPenalty DeserterPenalty;
|
||||||
public byte ArenaFaction;
|
public byte ArenaFaction;
|
||||||
public uint BattlemasterListID;
|
public uint BattlemasterListID;
|
||||||
@@ -518,7 +518,7 @@ namespace Game.Networking.Packets
|
|||||||
public override void Write()
|
public override void Write()
|
||||||
{
|
{
|
||||||
_worldPacket.WriteUInt8(Winner);
|
_worldPacket.WriteUInt8(Winner);
|
||||||
_worldPacket.WriteInt32(Duration);
|
_worldPacket.WriteInt64(Duration);
|
||||||
_worldPacket.WriteBit(LogData != null);
|
_worldPacket.WriteBit(LogData != null);
|
||||||
_worldPacket.WriteBits(SoloShuffleStatus, 2);
|
_worldPacket.WriteBits(SoloShuffleStatus, 2);
|
||||||
_worldPacket.FlushBits();
|
_worldPacket.FlushBits();
|
||||||
@@ -528,7 +528,7 @@ namespace Game.Networking.Packets
|
|||||||
}
|
}
|
||||||
|
|
||||||
public byte Winner;
|
public byte Winner;
|
||||||
public int Duration;
|
public long Duration;
|
||||||
public PVPMatchStatistics LogData;
|
public PVPMatchStatistics LogData;
|
||||||
public uint SoloShuffleStatus;
|
public uint SoloShuffleStatus;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -444,10 +444,10 @@ namespace Game.Networking.Packets
|
|||||||
public ulong DbID;
|
public ulong DbID;
|
||||||
public int MissionRecID;
|
public int MissionRecID;
|
||||||
public long OfferTime;
|
public long OfferTime;
|
||||||
public uint OfferDuration;
|
public long OfferDuration;
|
||||||
public long StartTime = 2288912640;
|
public long StartTime = 2288912640;
|
||||||
public uint TravelDuration;
|
public long TravelDuration;
|
||||||
public uint MissionDuration;
|
public long MissionDuration;
|
||||||
public int MissionState = 0;
|
public int MissionState = 0;
|
||||||
public int SuccessChance = 0;
|
public int SuccessChance = 0;
|
||||||
public uint Flags = 0;
|
public uint Flags = 0;
|
||||||
@@ -462,10 +462,10 @@ namespace Game.Networking.Packets
|
|||||||
data.WriteUInt64(DbID);
|
data.WriteUInt64(DbID);
|
||||||
data.WriteInt32(MissionRecID);
|
data.WriteInt32(MissionRecID);
|
||||||
data.WriteInt64(OfferTime);
|
data.WriteInt64(OfferTime);
|
||||||
data.WriteUInt32(OfferDuration);
|
data.WriteInt64(OfferDuration);
|
||||||
data.WriteInt64(StartTime);
|
data.WriteInt64(StartTime);
|
||||||
data.WriteUInt32(TravelDuration);
|
data.WriteInt64(TravelDuration);
|
||||||
data.WriteUInt32(MissionDuration);
|
data.WriteInt64(MissionDuration);
|
||||||
data.WriteInt32(MissionState);
|
data.WriteInt32(MissionState);
|
||||||
data.WriteInt32(SuccessChance);
|
data.WriteInt32(SuccessChance);
|
||||||
data.WriteUInt32(Flags);
|
data.WriteUInt32(Flags);
|
||||||
|
|||||||
@@ -1265,13 +1265,13 @@ namespace Game.Networking.Packets
|
|||||||
|
|
||||||
public override void Write()
|
public override void Write()
|
||||||
{
|
{
|
||||||
_worldPacket.WriteUInt32(TotalTime);
|
_worldPacket.WriteInt64(TotalTime);
|
||||||
_worldPacket.WriteUInt32(TimeLeft);
|
_worldPacket.WriteInt64(TimeLeft);
|
||||||
_worldPacket.WriteInt32((int)Type);
|
_worldPacket.WriteInt32((int)Type);
|
||||||
}
|
}
|
||||||
|
|
||||||
public uint TotalTime;
|
public long TotalTime;
|
||||||
public uint TimeLeft;
|
public long TimeLeft;
|
||||||
public TimerType Type;
|
public TimerType Type;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -633,13 +633,13 @@ namespace Game.Networking.Packets
|
|||||||
_worldPacket.WriteInt8(PartyIndex);
|
_worldPacket.WriteInt8(PartyIndex);
|
||||||
_worldPacket.WritePackedGuid(PartyGUID);
|
_worldPacket.WritePackedGuid(PartyGUID);
|
||||||
_worldPacket.WritePackedGuid(InitiatorGUID);
|
_worldPacket.WritePackedGuid(InitiatorGUID);
|
||||||
_worldPacket.WriteUInt32(Duration);
|
_worldPacket.WriteInt64(Duration);
|
||||||
}
|
}
|
||||||
|
|
||||||
public sbyte PartyIndex;
|
public sbyte PartyIndex;
|
||||||
public ObjectGuid PartyGUID;
|
public ObjectGuid PartyGUID;
|
||||||
public ObjectGuid InitiatorGUID;
|
public ObjectGuid InitiatorGUID;
|
||||||
public uint Duration;
|
public long Duration;
|
||||||
}
|
}
|
||||||
|
|
||||||
class ReadyCheckResponseClient : ClientPacket
|
class ReadyCheckResponseClient : ClientPacket
|
||||||
|
|||||||
Reference in New Issue
Block a user