mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-06-12 23:44:34 +02:00
Added all the base code for managing world-scope groups.
This commit is contained in:
parent
09e1e31e79
commit
31b13300ac
20 changed files with 940 additions and 4 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue