mirror of
https://github.com/YimMenu/RDR-Classes.git
synced 2024-12-22 14:37:30 +08:00
36 lines
920 B
C++
36 lines
920 B
C++
#pragma once
|
|
|
|
#include <cstdint>
|
|
|
|
namespace rage
|
|
{
|
|
class datBitBuffer;
|
|
|
|
#pragma pack(push,8)
|
|
class rlGamerHandle
|
|
{
|
|
public:
|
|
int64_t m_RockstarId; // 0x00
|
|
uint16_t m_UnkData; // 0x08
|
|
uint8_t m_Platform; // 0x0A
|
|
|
|
inline rlGamerHandle() = default;
|
|
|
|
inline rlGamerHandle(int64_t rockstar_id) :
|
|
m_RockstarId(rockstar_id),
|
|
m_Platform(3),
|
|
m_UnkData(0)
|
|
{
|
|
}
|
|
|
|
inline bool operator==(const rage::rlGamerHandle other)
|
|
{
|
|
return m_Platform == other.m_Platform && m_UnkData == other.m_UnkData && m_RockstarId == other.m_RockstarId && m_Platform == 3;
|
|
}
|
|
|
|
bool Serialize(rage::datBitBuffer& buf) const;
|
|
bool Deserialize(rage::datBitBuffer& buf);
|
|
}; //Size: 0x0010
|
|
static_assert(sizeof(rlGamerHandle) == 0x10);
|
|
#pragma pack(pop)
|
|
} |