LayerProcGen v0.1.0
Layer-based infinite procedural generation
|
Inherits IPool< T >.
Public Member Functions | |
T | Get () |
Gets an existing object from the pool, or creates one if none are available. | |
void | Return (ref object obj) |
void | Return (ref T element) |
Returns the object to the pool and sets the reference to null. | |
void | ReturnAll (ICollection< T > elements) |
Returns all the elements to the pool and calls Clear on the collection. | |
override string | ToString () |
Properties | |
int | CountActive [get] |
int | CountAll [get] |
int | CountInactive [get] |
static ObjectPool< T > | instance [get] |
T Get | ( | ) |
Gets an existing object from the pool, or creates one if none are available.
Implements IPool< T >.
void Return | ( | ref T | obj | ) |
Returns the object to the pool and sets the reference to null.
Implements IPool< T >.
void ReturnAll | ( | ICollection< T > | elements | ) |
Returns all the elements to the pool and calls Clear on the collection.
elements |
|
get |
Implements IPool< T >.
|
get |
Implements IPool< T >.
|
get |
Implements IPool< T >.