Rewrote the BattleActionPacket classes to standardize them. Added a method in Character.cs to fire off BattleActions.

This commit is contained in:
Filip Maj 2017-08-28 20:26:21 -04:00
parent 6c74222b68
commit 37b8203dae
5 changed files with 39 additions and 15 deletions

View file

@ -2,8 +2,6 @@
using System;
using System.IO;
using FFXIVClassic.Common;
namespace FFXIVClassic_Map_Server.packets.send.actor.battle
{
class BattleActionX00Packet
@ -11,7 +9,7 @@ namespace FFXIVClassic_Map_Server.packets.send.actor.battle
public const ushort OPCODE = 0x013C;
public const uint PACKET_SIZE = 0x48;
public static SubPacket BuildPacket(uint playerActorID, uint sourceActorId, uint targetActorId, uint animationId, ushort commandId)
public static SubPacket BuildPacket(uint sourceActorId, uint targetActorId, uint animationId, ushort commandId)
{
byte[] data = new byte[PACKET_SIZE - 0x20];