-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathGAME_LEVEL_MANAGER.h
30 lines (24 loc) · 1.22 KB
/
GAME_LEVEL_MANAGER.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#pragma once
#include "DevTools.h"
namespace GAME_LEVEL_MANAGER
{
struct Instance {
char unk0[136]; // Skip unknown values in the struct.
int current_index; // Current level index.
unsigned int unk1;
};
// The global instance of GAME_LEVEL_MANAGER.
inline Instance* m_instance = nullptr;
int __fastcall h_get_level_from_name(Instance* _this, void* _EDX, char* level_name);
typedef int(__thiscall* t_get_level_from_name)(Instance*, char*);
// get_level_from_name(Instance* _this, char* level_name)
inline auto get_level_from_name = reinterpret_cast<t_get_level_from_name>(DEVTOOLS_RELATIVE_ADDRESS(0x0037b340));
void __fastcall h_queue_level(Instance* _this, void* _EDX, int level);
typedef void(__thiscall* t_queue_level)(Instance*, int);
// queue_level(Instance* _this, int level)
inline auto queue_level = reinterpret_cast<t_queue_level>(DEVTOOLS_RELATIVE_ADDRESS(0x0037b320));
void __fastcall h_request_next_level(Instance* _this, void* _EDX, bool is_part_of_playlist);
typedef void(__thiscall* t_request_next_level)(Instance*, bool);
// request_next_level(Instance* _this, bool is_part_of_playlist)
inline auto request_next_level = reinterpret_cast<t_request_next_level>(DEVTOOLS_RELATIVE_ADDRESS(0x0039a650));
}