2016-12-11 23:31:13 -05:00
|
|
|
|
using FFXIVClassic.Common;
|
|
|
|
|
using FFXIVClassic_Map_Server.actors.group;
|
|
|
|
|
using System;
|
|
|
|
|
using System.IO;
|
|
|
|
|
|
|
|
|
|
namespace FFXIVClassic_Map_Server.packets.send.groups
|
|
|
|
|
{
|
|
|
|
|
class DeleteGroupPacket
|
|
|
|
|
{
|
|
|
|
|
public const ushort OPCODE = 0x0143;
|
|
|
|
|
public const uint PACKET_SIZE = 0x40;
|
|
|
|
|
|
|
|
|
|
public static SubPacket buildPacket(uint playerActorID, Group group)
|
|
|
|
|
{
|
2016-12-21 18:02:50 -05:00
|
|
|
|
return buildPacket(playerActorID, group.groupIndex);
|
2016-12-11 23:31:13 -05:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public static SubPacket buildPacket(uint playerActorID, ulong groupId)
|
|
|
|
|
{
|
|
|
|
|
byte[] data = new byte[PACKET_SIZE - 0x20];
|
|
|
|
|
|
|
|
|
|
using (MemoryStream mem = new MemoryStream(data))
|
|
|
|
|
{
|
|
|
|
|
using (BinaryWriter binWriter = new BinaryWriter(mem))
|
|
|
|
|
{
|
|
|
|
|
//Write control num ????
|
|
|
|
|
binWriter.Write((UInt64)3);
|
|
|
|
|
|
|
|
|
|
//Write Ids
|
|
|
|
|
binWriter.Write((UInt64)groupId);
|
|
|
|
|
binWriter.Write((UInt64)0);
|
|
|
|
|
binWriter.Write((UInt64)groupId);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2017-06-27 16:55:14 -04:00
|
|
|
|
return new SubPacket(OPCODE, playerActorID, data);
|
2016-12-11 23:31:13 -05:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|