feat(Friends): Added classes with friend info

This commit is contained in:
Yimura 2022-02-18 10:17:34 +01:00
parent 4e103da918
commit cacab970b3
2 changed files with 39 additions and 0 deletions

19
FriendInfo.hpp Normal file
View File

@ -0,0 +1,19 @@
#pragma once
#pragma pack(push, 1)
class FriendInfo
{
public:
char pad_0000[128]; //0x0000
char m_name[20]; //0x0080
char pad_0094[36]; //0x0094
uint64_t m_rockstar_id; //0x00B8
uint8_t unk_0xC0; //0x00C0
char pad_00C1[3]; //0x00C1
uint32_t m_friend_state; //0x00C4
char pad_00C8[304]; //0x00C8
uint32_t m_is_joinable; //0x01F8
char pad_01FC[4]; //0x01FC
}; //Size: 0x0200
static_assert(sizeof(FriendInfo) == 0x200);
#pragma pack(pop)

20
FriendRegistry.hpp Normal file
View File

@ -0,0 +1,20 @@
#pragma once
#include "FriendInfo.hpp"
class FriendList
{
public:
class FriendInfo m_data[250]; //0x0000
}; //Size: 0x1F400
static_assert(sizeof(FriendList) == 0x1F400);
#pragma pack(push, 4)
class FriendRegistry
{
public:
uint32_t m_friend_count; //0x0000
char pad_0004[8]; //0x0004
class FriendList *m_friends_list; //0x000C
}; //Size: 0x0014
static_assert(sizeof(FriendRegistry) == 0x14);
#pragma pack(pop)