GTAV-Classes/rage/atSingleton.hpp

23 lines
311 B
C++
Raw Permalink Normal View History

2024-09-24 21:24:45 -04:00
#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;
}
};
}