89d2428864
* feat(Script): Ported BBv2 script classes * fix: Change hard tab indents to 4 width space indents
23 lines
311 B
C++
23 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;
|
|
}
|
|
};
|
|
}
|