project-meteor-server/FFXIVClassic Map Server/packets/send/player/SetHasGoobbuePacket.cs

18 lines
493 B
C#

using FFXIVClassic.Common;
namespace FFXIVClassic_Map_Server.packets.send.player
{
class SetHasGoobbuePacket
{
public const ushort OPCODE = 0x01A1;
public const uint PACKET_SIZE = 0x28;
public static SubPacket BuildPacket(uint sourceActorId, bool hasGoobbue)
{
byte[] data = new byte[PACKET_SIZE - 0x20];
data[0] = (byte)(hasGoobbue ? 1 : 0);
return new SubPacket(OPCODE, sourceActorId, data);
}
}
}