2016-06-08 22:29:04 +01:00
|
|
|
|
using System;
|
2015-10-08 00:49:31 -04:00
|
|
|
|
using System.IO;
|
|
|
|
|
|
|
|
|
|
namespace FFXIVClassic_Map_Server.packets.receive
|
|
|
|
|
{
|
|
|
|
|
class SetTargetPacket
|
|
|
|
|
{
|
|
|
|
|
public bool invalidPacket = false;
|
|
|
|
|
public uint actorID;
|
2017-10-03 07:32:32 +01:00
|
|
|
|
public uint attackTarget; //Usually 0xE0000000
|
2015-10-08 00:49:31 -04:00
|
|
|
|
|
|
|
|
|
public SetTargetPacket(byte[] data)
|
|
|
|
|
{
|
|
|
|
|
using (MemoryStream mem = new MemoryStream(data))
|
|
|
|
|
{
|
|
|
|
|
using (BinaryReader binReader = new BinaryReader(mem))
|
|
|
|
|
{
|
|
|
|
|
try{
|
|
|
|
|
actorID = binReader.ReadUInt32();
|
2017-10-03 07:32:32 +01:00
|
|
|
|
attackTarget = binReader.ReadUInt32();
|
2015-10-08 00:49:31 -04:00
|
|
|
|
}
|
|
|
|
|
catch (Exception){
|
|
|
|
|
invalidPacket = true;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|