2019-05-06 13:39:24 -04:00
|
|
|
|
using System;
|
2016-12-03 12:19:59 -05:00
|
|
|
|
using System.IO;
|
|
|
|
|
|
|
|
|
|
namespace FFXIVClassic_World_Server.Packets.WorldPackets.Receive
|
|
|
|
|
{
|
|
|
|
|
class SessionEndConfirmPacket
|
|
|
|
|
{
|
|
|
|
|
public bool invalidPacket = false;
|
|
|
|
|
public uint sessionId;
|
|
|
|
|
public ushort errorCode;
|
|
|
|
|
public uint destinationZone;
|
|
|
|
|
|
|
|
|
|
public SessionEndConfirmPacket(byte[] data)
|
|
|
|
|
{
|
|
|
|
|
using (MemoryStream mem = new MemoryStream(data))
|
|
|
|
|
{
|
|
|
|
|
using (BinaryReader binReader = new BinaryReader(mem))
|
|
|
|
|
{
|
|
|
|
|
try
|
|
|
|
|
{
|
|
|
|
|
sessionId = binReader.ReadUInt32();
|
|
|
|
|
errorCode = binReader.ReadUInt16();
|
|
|
|
|
destinationZone = binReader.ReadUInt32();
|
|
|
|
|
}
|
|
|
|
|
catch (Exception)
|
|
|
|
|
{
|
|
|
|
|
invalidPacket = true;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|