| PoolT Constructor |
Initializes a new instance of the
PoolT class.
Namespace:
Gamelogic.Extensions
Assembly:
Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax public Pool(
int initialCount,
Func<T> create,
Action<T> kill,
Action<T> wakeUp,
Action<T> setToSleep
)
Parameters
- initialCount
- Type: SystemInt32
The initial number of objects to create. - create
- Type: SystemFuncT
A function that creates a new object of type T. - kill
- Type: SystemActionT
The function that destroys an object of type T. - wakeUp
- Type: SystemActionT
A function called when an object is woken up. - setToSleep
- Type: SystemActionT
A function called when an object is set to sleep.
See Also