mirror of
https://github.com/Milxnor/Project-Reboot-3.0.git
synced 2026-01-13 02:42:22 +01:00
fix looting s5, fix mcp skins on <S9, add team map markers to s8+, add nomcp to s5, add something that should fix some issues on a lot of versions
46 lines
807 B
C++
46 lines
807 B
C++
#pragma once
|
|
|
|
#include "SharedPointerInternals.h"
|
|
|
|
template< class ObjectType>
|
|
class TSharedPtr
|
|
{
|
|
public:
|
|
ObjectType* Object;
|
|
|
|
int32 SharedReferenceCount;
|
|
int32 WeakReferenceCount;
|
|
|
|
FORCEINLINE ObjectType* Get()
|
|
{
|
|
return Object;
|
|
}
|
|
FORCEINLINE ObjectType* Get() const
|
|
{
|
|
return Object;
|
|
}
|
|
FORCEINLINE ObjectType& operator*()
|
|
{
|
|
return *Object;
|
|
}
|
|
FORCEINLINE const ObjectType& operator*() const
|
|
{
|
|
return *Object;
|
|
}
|
|
FORCEINLINE ObjectType* operator->()
|
|
{
|
|
return Object;
|
|
}
|
|
FORCEINLINE ObjectType* operator->() const
|
|
{
|
|
return Object;
|
|
}
|
|
};
|
|
|
|
template< class ObjectType, ESPMode Mode >
|
|
class TSharedRef
|
|
{
|
|
public:
|
|
ObjectType* Object;
|
|
FSharedReferencer<Mode> SharedReferenceCount;
|
|
}; |