mirror of
https://github.com/YimMenu/RDR-Classes.git
synced 2026-10-11 01:38:11 +08:00
Invoker stuff (#1)
* feat: initialize classes repo * feat(script): stuff for native invoker * feat: add some more classes * feat(player): complete CNetworkPlayerMgr * feat(network): add some more stuff * feat(network): add rlGamerInfo * feat(player): add CPlayerInfo
This commit is contained in:
1 parent
d07e253439
commit
a2a74e151a
21 files changed
+800
No files matched your search
@@ -0,0 +1,40 @@
|
||||
#pragma once
|
||||
|
||||
class CNetGamePlayer;
|
||||
|
||||
class CScriptParticipant
|
||||
{
|
||||
public:
|
||||
char pad_0000[16]; //0x0000
|
||||
class CNetGamePlayer* m_net_game_player;//0x0010
|
||||
char pad_0018[2]; //0x0018
|
||||
int16_t m_participant_index; //0x001A
|
||||
char pad_001C[12]; //0x001C
|
||||
};
|
||||
static_assert(sizeof(CScriptParticipant) == 0x28);
|
||||
|
||||
#pragma pack(push, 8)
|
||||
namespace rage
|
||||
{
|
||||
class scriptHandler;
|
||||
class scriptHandlerNetComponent
|
||||
{
|
||||
public:
|
||||
virtual ~scriptHandlerNetComponent() = default;
|
||||
virtual bool _0x08(void*) = 0;
|
||||
virtual void _0x10(CNetGamePlayer*) = 0;
|
||||
virtual void* HandlePlayerLeft(CNetGamePlayer* player) = 0;
|
||||
virtual void* SendHostMigrationEvent(CNetGamePlayer* player) = 0;
|
||||
|
||||
public:
|
||||
scriptHandler* m_ScriptHandler; // 0x08
|
||||
char m_Pad[0x28]; // 0x10
|
||||
std::uint8_t m_LocalParticipantId; // 0x38
|
||||
void* m_Pad2[4]; // 0x40
|
||||
CScriptParticipant* m_Participants[32]; // 0x60
|
||||
int m_Pad3[3]; // 0x160
|
||||
std::uint8_t m_NumParticipants; // 0x168
|
||||
};
|
||||
static_assert(sizeof(rage::scriptHandlerNetComponent) == 0x170);
|
||||
}
|
||||
#pragma pack(pop)
|
||||
Reference in new issue
Block a user