Temp-Classes/rage/rlGamerInfoBase.hpp
2023-02-02 22:55:50 +00:00

41 lines
1.0 KiB
C++

#pragma once
#include <cstdint>
#include <cstddef>
#include "rlGamerHandle.hpp"
union netAddress {
uint32_t m_packed; //0x0000
struct {
uint8_t m_field4; //0x0000
uint8_t m_field3; //0x0001
uint8_t m_field2; //0x0002
uint8_t m_field1; //0x0003
};
}; //Size: 0x0004
static_assert(sizeof(netAddress) == 0x04);
namespace rage
{
#pragma pack(push,8)
class rlGamerInfoBase
{
public:
char pad_0000[0x60];
uint64_t m_peer_id; //0x0000
rlGamerHandle m_gamer_handle; //0x008
char m_aes_key[32]; //0x0018
uint8_t unk_0038; //0x0038
netAddress m_unk_ip; //0x003C
uint16_t m_unk_port; //0x0040
netAddress m_relay_ip; //0x0044
uint16_t m_relay_port; //0x0048
netAddress m_external_ip; //0x004C
uint16_t m_external_port; //0x0050
netAddress m_internal_ip; //0x0054
uint16_t m_internal_port; //0x0058
uint32_t unk_005C; //0x005C
};
static_assert(sizeof(rlGamerInfoBase) == 0xC0);
#pragma pack(pop)
}