RDR-Classes/network/rlGamerHandle.hpp

36 lines
920 B
C++
Raw Normal View History

#pragma once
#include <cstdint>
namespace rage
{
class datBitBuffer;
#pragma pack(push,8)
class rlGamerHandle
{
public:
2024-08-08 08:11:50 +08:00
int64_t m_RockstarId; // 0x00
uint16_t m_UnkData; // 0x08
uint8_t m_Platform; // 0x0A
inline rlGamerHandle() = default;
2024-08-08 08:11:50 +08:00
inline rlGamerHandle(int64_t rockstar_id) :
m_RockstarId(rockstar_id),
m_Platform(3),
m_UnkData(0)
{
}
2024-07-14 02:56:19 +08:00
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)
}