From d8c62840df3634d9f4dbc848d5720ebc95f8d778 Mon Sep 17 00:00:00 2001 From: Yimura Date: Fri, 18 Feb 2022 10:17:34 +0100 Subject: [PATCH] feat(Friends): Added classes with friend info --- FriendInfo.hpp | 19 +++++++++++++++++++ FriendRegistry.hpp | 20 ++++++++++++++++++++ 2 files changed, 39 insertions(+) create mode 100644 FriendInfo.hpp create mode 100644 FriendRegistry.hpp diff --git a/FriendInfo.hpp b/FriendInfo.hpp new file mode 100644 index 0000000..7e3c146 --- /dev/null +++ b/FriendInfo.hpp @@ -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) diff --git a/FriendRegistry.hpp b/FriendRegistry.hpp new file mode 100644 index 0000000..10eee76 --- /dev/null +++ b/FriendRegistry.hpp @@ -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)