using System.IO;

using FFXIVClassic.Common;
using System;

namespace  FFXIVClassic_Map_Server.packets.send.actor
{
    class _0xD8Packet
    {
        public const ushort OPCODE = 0x00D8;
        public const uint PACKET_SIZE = 0x28;

        public static SubPacket BuildPacket(uint playerActorID, uint targetActorID, uint val1, uint val2)
        {
            byte[] data = new byte[PACKET_SIZE - 0x20];

            using (MemoryStream mem = new MemoryStream(data))
            {
                using (BinaryWriter binWriter = new BinaryWriter(mem))
                {
                    binWriter.Write((UInt32)val1);
                    binWriter.Write((UInt32)val2);
                }
            }

            return new SubPacket(OPCODE, playerActorID, targetActorID, data);
        }
    }
}
