2016-06-08 22:29:04 +01:00
|
|
|
|
using System;
|
2016-04-14 08:30:21 -04:00
|
|
|
|
using System.IO;
|
|
|
|
|
|
|
|
|
|
namespace FFXIVClassic_Map_Server.packets.send
|
|
|
|
|
{
|
|
|
|
|
class _0x10Packet
|
|
|
|
|
{
|
|
|
|
|
public const ushort OPCODE = 0x0010;
|
|
|
|
|
public const uint PACKET_SIZE = 0x28;
|
|
|
|
|
|
2016-06-14 21:29:10 +01:00
|
|
|
|
public static SubPacket BuildPacket(uint playerActorId, int val)
|
2016-04-14 08:30:21 -04:00
|
|
|
|
{
|
|
|
|
|
byte[] data = new byte[PACKET_SIZE - 0x20];
|
|
|
|
|
|
|
|
|
|
using (MemoryStream mem = new MemoryStream(data))
|
|
|
|
|
{
|
|
|
|
|
using (BinaryWriter binWriter = new BinaryWriter(mem))
|
|
|
|
|
{
|
|
|
|
|
binWriter.Write((UInt32)val);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return new SubPacket(OPCODE, playerActorId, playerActorId, data);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|