You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

78 lines
2.7 KiB

#pragma once
#include <il2cpp/il2cpp.h>
namespace gameengine {
class engine {
public:
template <typename T = std::uintptr_t> T &m_gameplayer() {
return *(T *)((std::uintptr_t)this + 0x8);
}
template <typename T = std::uintptr_t> T &m_currentstate() {
return *(T *)((std::uintptr_t)this + 0xC);
}
template <typename T = void> T setupservices() {
return ((T(*)(engine *))(il2cpp::il2cpp_base() + 0x5F356A8))(this);
}
template <typename T = void> T init() {
return ((T(*)(engine *))(il2cpp::il2cpp_base() + 0x5F35F14))(this);
}
template <typename T = void> T shutdown() {
return ((T(*)(engine *))(il2cpp::il2cpp_base() + 0x5F3622C))(this);
}
template <typename T = void> T reset() {
return ((T(*)(engine *))(il2cpp::il2cpp_base() + 0x5F364E8))(this);
}
template <typename T = void> T relogin() {
return ((T(*)(engine *))(il2cpp::il2cpp_base() + 0x5F365F4))(this);
}
template <typename T = void> T createlocalplayer() {
return ((T(*)(engine *))(il2cpp::il2cpp_base() + 0x5F36154))(this);
}
template <typename T = void> T destroylocalplayer() {
return ((T(*)(engine *))(il2cpp::il2cpp_base() + 0x5F36444))(this);
}
template <typename T = std::uintptr_t> T getgameplayer() {
return ((T(*)(engine *))(il2cpp::il2cpp_base() + 0x5F36BAC))(this);
}
template <typename T = bool> T islocalplayer(std::uint32_t _playerid) {
return ((T(*)(engine *, std::uint32_t))(
il2cpp::il2cpp_base() + 0x5F36C4C))(this, _playerid);
}
template <typename T = void> T tick(float _deltatime) {
return ((T(*)(engine *, float))(il2cpp::il2cpp_base() + 0x5F36D48))(
this, _deltatime);
}
template <typename T = void>
T changestate(std::uintptr_t _targetstate) {
return ((T(*)(engine *, std::uintptr_t))(
il2cpp::il2cpp_base() + 0x5F36048))(this, _targetstate);
}
template <typename T = std::uintptr_t> static T get_instance() {
return ((T(*)(void *))(il2cpp::il2cpp_base() + 0x5F36E6C))(0);
}
template <typename T = void>
static T set_instance(std::uintptr_t _value) {
return ((T(*)(void *, std::uintptr_t))(il2cpp::il2cpp_base() +
0x5F36EEC))(0, _value);
}
template <typename T = void> static T create() {
return ((T(*)(void *))(il2cpp::il2cpp_base() + 0x5F36F70))(0);
}
};
} // namespace gameengine