mirror of
https://bitbucket.org/Ioncannon/project-meteor-server.git
synced 2025-07-23 02:56:02 +02:00
Merge branch 'develop' of https://bitbucket.org/Ioncannon/ffxiv-classic-server into ai
# Conflicts: # FFXIVClassic Map Server/actors/Actor.cs # FFXIVClassic Map Server/dataobjects/Session.cs # FFXIVClassic Map Server/lua/LuaEngine.cs
This commit is contained in:
commit
4695193aa0
235 changed files with 2840 additions and 1024 deletions
|
@ -72,9 +72,9 @@ 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, data) { }
|
||||
|
||||
public SubPacket(bool isGameMessage, ushort opcode, uint sourceId, uint targetId, byte[] data)
|
||||
public SubPacket(bool isGameMessage, ushort opcode, uint sourceId, byte[] data)
|
||||
{
|
||||
header = new SubPacketHeader();
|
||||
|
||||
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue