2016-12-15 12:19:44 -05:00
|
|
|
|
using FFXIVClassic.Common;
|
|
|
|
|
using FFXIVClassic_World_Server.DataObjects.Group;
|
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.IO;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace FFXIVClassic_World_Server.Packets.Send.Subpackets.Groups
|
|
|
|
|
{
|
|
|
|
|
class GroupMembersBeginPacket
|
|
|
|
|
{
|
|
|
|
|
public const ushort OPCODE = 0x017D;
|
|
|
|
|
public const uint PACKET_SIZE = 0x40;
|
|
|
|
|
|
|
|
|
|
public static SubPacket buildPacket(uint playerActorID, uint locationCode, ulong sequenceId, Group group)
|
|
|
|
|
{
|
|
|
|
|
byte[] data = new byte[PACKET_SIZE - 0x20];
|
|
|
|
|
|
|
|
|
|
using (MemoryStream mem = new MemoryStream(data))
|
|
|
|
|
{
|
|
|
|
|
using (BinaryWriter binWriter = new BinaryWriter(mem))
|
|
|
|
|
{
|
|
|
|
|
//Write List Header
|
|
|
|
|
binWriter.Write((UInt64)locationCode);
|
|
|
|
|
binWriter.Write((UInt64)sequenceId);
|
|
|
|
|
//Write List Info
|
|
|
|
|
binWriter.Write((UInt64)group.groupIndex);
|
|
|
|
|
binWriter.Write((UInt32)group.GetMemberCount());
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2017-06-27 17:31:17 -04:00
|
|
|
|
return new SubPacket(OPCODE, playerActorID, data);
|
2016-12-15 12:19:44 -05:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|