mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-04-02 19:42:05 -04:00
34 lines
861 B
C#
34 lines
861 B
C#
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
|
|
{
|
|
public bool isLogin;
|
|
public bool invalidPacket = false;
|
|
|
|
public SessionBeginPacket(byte[] data)
|
|
{
|
|
using (MemoryStream mem = new MemoryStream(data))
|
|
{
|
|
using (BinaryReader binReader = new BinaryReader(mem))
|
|
{
|
|
try
|
|
{
|
|
isLogin = binReader.ReadByte() != 0;
|
|
}
|
|
catch (Exception)
|
|
{
|
|
invalidPacket = true;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|