Started removing all target actor id references.

This commit is contained in:
Filip Maj committed 2017-06-27 13:23:05 -04:00
1 parent c09471ed43
commit a264745207
64 files changed
+141 -136

No files matched your search

+7 -2
View File
@@ -72,7 +72,7 @@ namespace FFXIVClassic.Common
offset += header.subpacketSize;
}
public SubPacket(ushort opcode, uint sourceId, uint targetId, byte[] data) : this(true, opcode, sourceId, targetId, data) { }
public SubPacket(ushort opcode, uint sourceId, byte[] data) : this(true, opcode, sourceId, targetId, data) { }
public SubPacket(bool isGameMessage, ushort opcode, uint sourceId, uint targetId, byte[] data)
{
@@ -89,7 +89,7 @@ namespace FFXIVClassic.Common
}
header.sourceId = sourceId;
header.targetId = targetId;
header.targetId = 0;
if (isGameMessage)
header.type = 0x03;
@@ -117,6 +117,11 @@ namespace FFXIVClassic.Common
data = original.data;
}
public void SetTargetId(uint target)
{
this.header.targetId = target;
}
public byte[] GetHeaderBytes()
{
var size = Marshal.SizeOf(header);