From c7bbb404a4311bcee209902c5c154d0b290300f7 Mon Sep 17 00:00:00 2001 From: maybegreat48 <96936658+maybegreat48@users.noreply.github.com> Date: Thu, 17 Nov 2022 11:31:52 +0000 Subject: [PATCH] Add join request classes (#74) --- network/CJoinRequestContext.hpp | 16 ++++++++++++++++ network/CMsgJoinResponse.hpp | 18 ++++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 network/CJoinRequestContext.hpp create mode 100644 network/CMsgJoinResponse.hpp diff --git a/network/CJoinRequestContext.hpp b/network/CJoinRequestContext.hpp new file mode 100644 index 0000000..dae6526 --- /dev/null +++ b/network/CJoinRequestContext.hpp @@ -0,0 +1,16 @@ +#pragma once +#include + +#pragma pack(push, 1) +class CJoinRequestContext +{ +public: + char pad_0000[40]; //0x0000 + void* m_join_request_data; //0x0028 + uint32_t m_join_request_size; //0x0030 + uint8_t m_join_response_data[512]; //0x0034 + uint32_t m_join_response_size; //0x0234 + char pad_0238[12]; //0x0238 +}; //Size: 0x0244 +static_assert(sizeof(CJoinRequestContext) == 0x244); +#pragma pack(pop) diff --git a/network/CMsgJoinResponse.hpp b/network/CMsgJoinResponse.hpp new file mode 100644 index 0000000..c1fd254 --- /dev/null +++ b/network/CMsgJoinResponse.hpp @@ -0,0 +1,18 @@ +#pragma once +#include + +#pragma pack(push, 1) +class CMsgJoinResponse +{ +public: + uint32_t m_status_code; //0x0000 + uint32_t m_visibility_flags; //0x0004 + bool m_can_wait_for_slot; //0x0008 + char pad_0009[3]; //0x0009 + bool m_is_activity_session; //0x000C + char pad_000D[7]; //0x000D + uint32_t m_network_time; //0x0014 + char pad_0018[72]; //0x0018 +}; //Size: 0x0060 +static_assert(sizeof(CMsgJoinResponse) == 0x60); +#pragma pack(pop)