2016-12-03 12:19:59 -05:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.IO;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace FFXIVClassic_Map_Server.packets.WorldPackets.Receive
|
|
|
|
|
{
|
|
|
|
|
class SessionBeginPacket
|
|
|
|
|
{
|
2017-06-19 16:30:04 -04:00
|
|
|
|
public bool isLogin;
|
2016-12-03 12:19:59 -05:00
|
|
|
|
public bool invalidPacket = false;
|
|
|
|
|
|
|
|
|
|
public SessionBeginPacket(byte[] data)
|
|
|
|
|
{
|
2017-06-19 16:30:04 -04:00
|
|
|
|
using (MemoryStream mem = new MemoryStream(data))
|
|
|
|
|
{
|
|
|
|
|
using (BinaryReader binReader = new BinaryReader(mem))
|
|
|
|
|
{
|
|
|
|
|
try
|
|
|
|
|
{
|
|
|
|
|
isLogin = binReader.ReadByte() != 0;
|
|
|
|
|
}
|
|
|
|
|
catch (Exception)
|
|
|
|
|
{
|
|
|
|
|
invalidPacket = true;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2016-12-03 12:19:59 -05:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|