mirror of
https://github.com/Mr-X-GTA/GTAV-Classes-1.git
synced 2024-12-22 14:37:31 +08:00
d81f392e61
* 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;
|
|
}
|
|
};
|
|
}
|