PoolT Class |
Namespace: Archon.SwissArmyLib.Pooling
public class Pool<T> : IPool<T>, TellMeWhenITimerCallback where T : class
The PoolT type exposes the following members.
Name | Description | |
---|---|---|
PoolT |
Creates a new object pool that uses the specified factory method to create object instances.
|
Name | Description | |
---|---|---|
CancelDespawn |
Cancels a pending timed despawn.
| |
Despawn(T) |
Despawns an object, adding it back to the pool.
| |
Despawn(T, Single, Boolean) |
Despawns an object after a delay.
| |
Equals | Determines whether the specified Object is equal to the current Object. (Inherited from Object.) | |
Finalize | Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.) | |
GetHashCode | Serves as a hash function for a particular type. (Inherited from Object.) | |
GetType | Gets the type of the current instance. (Inherited from Object.) | |
MemberwiseClone | Creates a shallow copy of the current Object. (Inherited from Object.) | |
OnDespawned |
Called when an object has been despawned and placed back in the pool.
| |
OnSpawned |
Called when an object has been spawned and removed from the pool.
| |
Prewarm |
Fills the pool with objects so that it contains the specified amount of objects.
If it already contains the specified amount or more, nothing will be done.
| |
Spawn |
Spawns a recycled object if there's one available, otherwise creates a new instance.
| |
SpawnInternal |
Recycles or creates a object if there's one available without calling OnSpawned(T).
| |
ToString | Returns a string that represents the current object. (Inherited from Object.) |