mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-04-02 19:42:05 -04:00
35 lines
1006 B
C#
35 lines
1006 B
C#
using System;
|
|
using System.IO;
|
|
|
|
namespace FFXIVClassic_World_Server.Packets.WorldPackets.Receive.Group
|
|
{
|
|
class GroupControlGetDeletePacket
|
|
{
|
|
public const byte GROUP_CONTROL_GET = 0;
|
|
public const byte GROUP_CONTROL_DELETE = 1;
|
|
|
|
public bool invalidPacket = false;
|
|
public uint controlCode;
|
|
public ulong groupId;
|
|
|
|
public GroupControlGetDeletePacket(byte[] data)
|
|
{
|
|
using (MemoryStream mem = new MemoryStream(data))
|
|
{
|
|
using (BinaryReader binReader = new BinaryReader(mem))
|
|
{
|
|
try
|
|
{
|
|
controlCode = binReader.ReadUInt32();
|
|
groupId = binReader.ReadUInt64();
|
|
}
|
|
catch (Exception)
|
|
{
|
|
invalidPacket = true;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|