LayerProcGen v0.4.0
Layer-based infinite procedural generation
Loading...
Searching...
No Matches
ListPool< T >

Inherits IPool< T >.

Public Member Functions

List< T > Get ()
 Gets an existing object from the pool, or creates one if none are available.
 ListPool (int capacity)
void Return (ref T obj)
 Returns the object to the pool and sets the reference to null.
void Return (ref List< T > list)
void Return (ref object obj)
override string ToString ()

Properties

int CountActive [get]
int CountAll [get]
int CountInactive [get]

Member Function Documentation

◆ Get()

List< T > Get ( )

Gets an existing object from the pool, or creates one if none are available.

Implements IPool< T >.

◆ Return()

void Return ( ref T obj)
inherited

Returns the object to the pool and sets the reference to null.

Implemented in ObjectPool< T >.

Property Documentation

◆ CountActive

int CountActive
get

Implements IPool.

◆ CountAll

int CountAll
get

Implements IPool.

◆ CountInactive

int CountInactive
get

Implements IPool.