GTAV-Classes/rage/atSingleton.hpp
2024-09-25 01:24:45 +00:00

22 lines
311 B
C++

#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;
}
};
}