Corgi Engine  v9.2
MoreMountains.Tools.MMReferenceHolder< T > Struct Template Reference
Inheritance diagram for MoreMountains.Tools.MMReferenceHolder< T >:

Public Member Functions

void Reference (T instance, bool cleanUp=false)
 
void Dispose ()
 

Static Public Member Functions

static void CleanUp ()
 
static void RepackNonNullReferences ()
 
static T First (System.Func< T, bool > selector)
 

Static Public Attributes

static T Any => _instances != null && _instances.Count > 0 && _instances[0].TryGetTarget(out T target) ? target : null
 

Properties

static IEnumerator< T > All [get]
 

Member Function Documentation

◆ CleanUp()

static void MoreMountains.Tools.MMReferenceHolder< T >.CleanUp ( )
static

◆ Dispose()

◆ First()

static T MoreMountains.Tools.MMReferenceHolder< T >.First ( System.Func< T, bool >  selector)
static

◆ Reference()

void MoreMountains.Tools.MMReferenceHolder< T >.Reference ( instance,
bool  cleanUp = false 
)

◆ RepackNonNullReferences()

static void MoreMountains.Tools.MMReferenceHolder< T >.RepackNonNullReferences ( )
static

Member Data Documentation

◆ Any

T MoreMountains.Tools.MMReferenceHolder< T >.Any => _instances != null && _instances.Count > 0 && _instances[0].TryGetTarget(out T target) ? target : null
static

Property Documentation

◆ All

IEnumerator<T> MoreMountains.Tools.MMReferenceHolder< T >.All
staticget

The documentation for this struct was generated from the following file: