From d268f4773b185a1b4f400bfc5edc79de5f8fe35d Mon Sep 17 00:00:00 2001 From: Yimura Date: Fri, 3 Jun 2022 14:27:35 +0200 Subject: [PATCH] feat(CTunables): Added new class --- CTunables.hpp | 14 ++++++++++++++ atSingleton.hpp | 22 ++++++++++++++++++++++ 2 files changed, 36 insertions(+) create mode 100644 CTunables.hpp create mode 100644 atSingleton.hpp diff --git a/CTunables.hpp b/CTunables.hpp new file mode 100644 index 0000000..478067f --- /dev/null +++ b/CTunables.hpp @@ -0,0 +1,14 @@ +#pragma once + +#include + +namespace rage +{ + class CTunables + { + public: + char pad_0000[112]; //0x0000 + uint64_t m_bPtr; //0x0070 + uint16_t m_bCount; //0x0078 + }; //Size: 0x007A +} diff --git a/atSingleton.hpp b/atSingleton.hpp new file mode 100644 index 0000000..5ade0cf --- /dev/null +++ b/atSingleton.hpp @@ -0,0 +1,22 @@ +#pragma once + +namespace rage +{ + template + struct atSingleton + { + private: + T* m_basePtr{}; + + public: + bool isValid() const + { + return m_basePtr != nullptr; + } + + T* getInstance() + { + return m_basePtr; + } + }; +}