Implemented newly discovered packets (Dalamud, Countdown).

This commit is contained in:
Filip Maj 2017-10-01 12:31:45 -04:00
parent 9649d755a9
commit 58334a0e5f
3 changed files with 42 additions and 5 deletions

View file

@ -0,0 +1,28 @@
using System;
using System.IO;
using FFXIVClassic.Common;
namespace FFXIVClassic_Map_Server.packets.send
{
class SetDalamudPacket
{
public const ushort OPCODE = 0x0010;
public const uint PACKET_SIZE = 0x28;
public static SubPacket BuildPacket(uint playerActorId, sbyte dalamudLevel)
{
byte[] data = new byte[PACKET_SIZE - 0x20];
using (MemoryStream mem = new MemoryStream(data))
{
using (BinaryWriter binWriter = new BinaryWriter(mem))
{
binWriter.Write((Int32)dalamudLevel);
}
}
return new SubPacket(OPCODE, playerActorId, data);
}
}
}