Class: ReturnToPoolStrategyComponent<T>
Defined in: lifecycle/strategies/return-to-pool-strategy-component.ts:8
Strategy component that marks an entity to be returned to a pool when its lifetime expires. This is a pure data component with no logic - it stores the pool reference.
Type Parameters
T
T extends NonNullable<unknown>
Implements
Constructors
Constructor
new ReturnToPoolStrategyComponent<
T>(pool):ReturnToPoolStrategyComponent<T>
Defined in: lifecycle/strategies/return-to-pool-strategy-component.ts:19
Creates an instance of the ReturnToPoolStrategyComponent.
Parameters
pool
ObjectPool<T>
The object pool to return the entity to.
Returns
ReturnToPoolStrategyComponent<T>
Properties
name
name:
symbol
Defined in: lifecycle/strategies/return-to-pool-strategy-component.ts:11
The unique name of the component.
Implementation of
pool
pool:
ObjectPool<T>
Defined in: lifecycle/strategies/return-to-pool-strategy-component.ts:12
symbol
readonlystaticsymbol: typeofsymbol
Defined in: lifecycle/strategies/return-to-pool-strategy-component.ts:13