Added all the base code for managing world-scope groups.

This commit is contained in:
Filip Maj 2016-12-12 19:03:25 -05:00
parent 09e1e31e79
commit 31b13300ac
20 changed files with 940 additions and 4 deletions

View file

@ -0,0 +1,43 @@
using System;
using System.IO;
namespace FFXIVClassic_World_Server.Packets.WorldPackets.Receive.Group
{
class GroupControlCreateModifyPacket
{
public const byte GROUP_CONTROL_CREATE = 0;
public const byte GROUP_CONTROL_MODIFY = 1;
public const byte GROUP_PARTY = 0;
public const byte GROUP_RETAINER = 1;
public const byte GROUP_LINKSHELL = 2;
public const byte GROUP_RELATION = 3;
public bool invalidPacket = false;
public byte controlCode;
public ulong groupId;
public byte groupType;
public GroupControlCreateModifyPacket(byte[] data)
{
using (MemoryStream mem = new MemoryStream(data))
{
using (BinaryReader binReader = new BinaryReader(mem))
{
try
{
controlCode = binReader.ReadByte();
groupType = binReader.ReadByte();
groupId = binReader.ReadUInt64();
//Work value data
}
catch (Exception)
{
invalidPacket = true;
}
}
}
}
}
}