Misc net messages (#75)

* Create RemoteGamerInfoMsg.hpp

* Create CMsgTextMessage.hpp
This commit is contained in:
maybegreat48 2022-11-20 16:34:38 +00:00 committed by GitHub
parent c7bbb404a4
commit 4022845783
2 changed files with 27 additions and 0 deletions

View File

@ -0,0 +1,13 @@
#pragma once
#include <cstdint>
#pragma pack(push, 1)
class CMsgTextMessage
{
public:
char m_message[256]; //0x0000
uint64_t m_peer_id; //0x0100
bool m_is_team; //0x0108
}; //Size: 0x0109
static_assert(sizeof(CMsgTextMessage) == 0x109);
#pragma pack(pop)

View File

@ -0,0 +1,14 @@
#pragma once
#include <cstdint>
#include "../rage/rlGamerInfo.hpp"
#pragma pack(push, 1)
class RemoteGamerInfoMsg
{
public:
uint64_t m_session_id; //0x0000
class rage::rlGamerInfo m_gamer_info; //0x0008
char pad_00A0[256]; //0x00A0 (tons of more fields down here, like IP addresses...)
}; //Size: 0x01A0
static_assert(sizeof(RemoteGamerInfoMsg) == 0x1A0);
#pragma pack(pop)