mirror of
https://github.com/Mr-X-GTA/YimMenu.git
synced 2025-01-07 18:03:34 +08:00
97a8c5d60b
* feat(Spoofing): add spoofing * feat(Spoofing): prepare code for player attach * remove(PlayerAttach): isn't going to work due to netsync architecture * fix(GUI): fix scaling * feat(Project): add clang-format file * feat(Classes): update classes * fix(BlackHole): remove unnecessary cleanup * fix(Formatting): fix formatting for initializer lists * feat(clang-format): Set tab width and 1 space before comment Co-authored-by: Yimura <24669514+Yimura@users.noreply.github.com>
28 lines
529 B
C++
28 lines
529 B
C++
#include "script_global.hpp"
|
|
|
|
#include "common.hpp"
|
|
#include "pointers.hpp"
|
|
|
|
namespace big
|
|
{
|
|
script_global::script_global(std::size_t index) :
|
|
m_index(index)
|
|
{
|
|
}
|
|
|
|
script_global script_global::at(std::ptrdiff_t index)
|
|
{
|
|
return script_global(m_index + index);
|
|
}
|
|
|
|
script_global script_global::at(std::ptrdiff_t index, std::size_t size)
|
|
{
|
|
return script_global(m_index + 1 + (index * size));
|
|
}
|
|
|
|
void* script_global::get()
|
|
{
|
|
return g_pointers->m_script_globals[m_index >> 0x12 & 0x3F] + (m_index & 0x3FFFF);
|
|
}
|
|
}
|