feat(CTunables): Added new class

This commit is contained in:
Yimura 2022-06-03 14:27:35 +02:00
parent 0bc4a53a0f
commit d268f4773b
2 changed files with 36 additions and 0 deletions

14
CTunables.hpp Normal file
View File

@ -0,0 +1,14 @@
#pragma once
#include <cstdint>
namespace rage
{
class CTunables
{
public:
char pad_0000[112]; //0x0000
uint64_t m_bPtr; //0x0070
uint16_t m_bCount; //0x0078
}; //Size: 0x007A
}

22
atSingleton.hpp Normal file
View File

@ -0,0 +1,22 @@
#pragma once
namespace rage
{
template <typename T>
struct atSingleton
{
private:
T* m_basePtr{};
public:
bool isValid() const
{
return m_basePtr != nullptr;
}
T* getInstance()
{
return m_basePtr;
}
};
}