2015-09-25 18:52:25 -04:00
|
|
|
|
using FFXIVClassic_Lobby_Server.packets;
|
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace FFXIVClassic_Map_Server.packets.send.actor
|
|
|
|
|
{
|
|
|
|
|
class AddActorPacket
|
|
|
|
|
{
|
|
|
|
|
public const ushort OPCODE = 0x00CA;
|
|
|
|
|
public const uint PACKET_SIZE = 0x28;
|
|
|
|
|
|
2015-10-13 22:58:21 -04:00
|
|
|
|
public static SubPacket buildPacket(uint playerActorID, uint actorID, byte val)
|
2015-09-25 18:52:25 -04:00
|
|
|
|
{
|
2015-10-13 22:58:21 -04:00
|
|
|
|
byte[] data = new byte[PACKET_SIZE-0x20];
|
|
|
|
|
data[0] = val; //Why?
|
|
|
|
|
|
|
|
|
|
return new SubPacket(OPCODE, playerActorID, actorID, data);
|
2015-09-25 18:52:25 -04:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|