* Migrate InFrame

* Format(ish) netServerMessages
This commit is contained in:
Ryan 2024-06-25 10:57:35 -04:00 committed by GitHub
parent 70091e27d2
commit 02c09a9a3b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 38 additions and 5 deletions

29
network/InFrame.hpp Normal file
View File

@ -0,0 +1,29 @@
#pragma once
#include <cstdint>
namespace rage
{
#pragma pack(push, 8)
class InFrame
{
public:
enum class EventType
{
ConnectionClosed = 4,
FrameReceived = 5,
BandwidthExceeded = 6,
OutOfMemory = 7
};
virtual ~InFrame() = default;
virtual void Destroy() = 0;
virtual EventType GetEventType() = 0;
virtual uint32_t _0x18() = 0;
char pad_0[0x70]; // 0x8
uint32_t m_Length; // 0x78
void *m_Data; // 0x80
};
#pragma pack(pop)
}

View File

@ -1,8 +1,10 @@
#pragma once
#include <cstdint>
namespace rage {
class ServerRPCSerializer {
namespace rage
{
class ServerRPCSerializer
{
public:
virtual int dtor() = 0;
virtual int Unk() = 0;
@ -10,14 +12,16 @@ public:
virtual int GetSize() = 0;
};
class ServerMsgData {
class ServerMsgData
{
public:
unsigned char *data;
int size;
bool is_json;
};
class ServerMsg {
class ServerMsg
{
public:
virtual ~ServerMsg() = default;
virtual void _0x08() = 0;
@ -36,4 +40,4 @@ public:
virtual void _0x70() = 0;
virtual ServerMsgData *GetMsgData() = 0;
};
} // namespace rage
}