Shared Task WIP

This commit is contained in:
Michael Cook (mackal)
2018-09-01 17:32:13 -04:00
parent d4e0e8aea2
commit 39544b4723
22 changed files with 500 additions and 36 deletions
+1
View File
@@ -6,6 +6,7 @@ N(OP_0x0347),
N(OP_AAAction),
N(OP_AAExpUpdate),
N(OP_AcceptNewTask),
N(OP_AcceptNewSharedTask),
N(OP_AckPacket),
N(OP_Action),
N(OP_Action2),
+8
View File
@@ -3788,6 +3788,14 @@ struct AcceptNewTask_Struct {
uint32 task_master_id; //entity ID
};
struct AcceptNewSharedTask_Struct {
uint32 unknown00;
uint32 unknown04;
uint32 task_master_id;
uint32 task_id;
float unknown16;
};
//was all 0's from client, server replied with same op, all 0's
struct CancelTask_Struct {
uint32 SequenceNumber;
+1
View File
@@ -187,6 +187,7 @@ public:
const unsigned char *buffer() const { return m_buffer; }
friend class BasePacket;
friend class ServerPacket;
private:
void Grow(size_t new_size);
+20
View File
@@ -4,6 +4,7 @@
#include "../common/types.h"
#include "../common/packet_functions.h"
#include "../common/eq_packet_structs.h"
#include "../common/serialize_buffer.h"
#include "../net/packet.h"
#include <cereal/cereal.hpp>
#include <cereal/types/string.hpp>
@@ -151,6 +152,12 @@
#define ServerOP_LSRemoteAddr 0x1009
#define ServerOP_LSAccountUpdate 0x100A
#define ServerOP_TaskRequest 0x0300
#define ServerOP_TaskGrant 0x0301
#define ServerOP_TaskReject 0x0302
#define ServerOP_TaskAddPlayer 0x0303
#define ServerOP_TaskRemovePlayer 0x0304
#define ServerOP_EncapPacket 0x2007 // Packet within a packet
#define ServerOP_WorldListUpdate 0x2008
#define ServerOP_WorldListRemove 0x2009
@@ -246,6 +253,19 @@ public:
_rpos = 0;
}
ServerPacket(uint16 in_opcode, SerializeBuffer &buf)
{
compressed = false;
size = buf.m_pos;
buf.m_pos = 0;
opcode = in_opcode;
pBuffer = buf.m_buffer;
buf.m_buffer = 0;
buf.m_capacity = 0;
_wpos = 0;
_rpos = 0;
}
ServerPacket* Copy() {
if (this == 0) {
return 0;