2017-01-02 11:47:14 -05:00
|
|
|
|
using FFXIVClassic.Common;
|
|
|
|
|
using FFXIVClassic_Map_Server.dataobjects;
|
|
|
|
|
using System;
|
|
|
|
|
using System.IO;
|
|
|
|
|
|
|
|
|
|
namespace FFXIVClassic_Map_Server.packets.WorldPackets.Send.Group
|
|
|
|
|
{
|
2017-01-02 14:35:11 -05:00
|
|
|
|
class GroupInviteResultPacket
|
2017-01-02 11:47:14 -05:00
|
|
|
|
{
|
|
|
|
|
public const ushort OPCODE = 0x1023;
|
|
|
|
|
public const uint PACKET_SIZE = 0x28;
|
|
|
|
|
|
2017-01-02 14:35:11 -05:00
|
|
|
|
public static SubPacket BuildPacket(Session session, uint groupType, uint result)
|
2017-01-02 11:47:14 -05:00
|
|
|
|
{
|
|
|
|
|
byte[] data = new byte[PACKET_SIZE - 0x20];
|
|
|
|
|
using (MemoryStream mem = new MemoryStream(data))
|
|
|
|
|
{
|
|
|
|
|
using (BinaryWriter binWriter = new BinaryWriter(mem))
|
|
|
|
|
{
|
2017-01-02 14:35:11 -05:00
|
|
|
|
binWriter.Write((UInt32)groupType);
|
2017-01-02 11:47:14 -05:00
|
|
|
|
binWriter.Write((UInt32)result);
|
|
|
|
|
}
|
|
|
|
|
}
|
2017-06-27 16:55:14 -04:00
|
|
|
|
return new SubPacket(true, OPCODE, session.id, data);
|
2017-01-02 11:47:14 -05:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|