A poolcontainer for short-lived items.
More...
|
|
| PoolContainerOnClock (TimingHelper timingHelper, Transform parent) |
|
| PoolContainerOnClock (BaseAlarmClock alarmClock) |
|
void | Init () |
| override void | Dispose () |
|
List< TPoolItemOnClock > | GetValidPoolItems () |
|
void | Tick () |
|
override void | AddItem (TPoolItemOnClock item) |
|
| PoolContainer () |
|
| PoolContainer (TPoolItem prefab) |
| TPoolItem | ReuseOrSpawnPoolItem (TPoolItem prefab, Transform parent, Predicate< TPoolItem > match=null) |
| | Pool or instantiate a new poolitem depending if any are free to use. Does not add the poolitem automatically to this container!
|
| TPoolItem | ReuseOrSpawnPoolItem (Transform parent, Predicate< TPoolItem > match=null) |
| | Pool or instantiate a new poolitem depending if any are free to use.
|
| bool | TryReusePoolItem (out TPoolItem poolItem, Predicate< TPoolItem > match=null) |
| | Gets a poolitem if any free are available.
|
| List< TPoolItem > | ReusePoolItems (Predicate< TPoolItem > match=null) |
| | Get as many pooled items that can be used as possible (does not instantiate new ones)
|
| virtual void | AddItem (TPoolItem item) |
| | Add a poolitem to this container (will automatically be removed when the item gets destroyed)
|
| virtual bool | RemoveItem (TPoolItem item) |
| | Remove the poolitem from this container.
|
| void | RemoveItem (int index) |
| | Remove the poolitem from this container by index.
|
|
|
virtual void | OnPoolItemDestroyed (IPoolItem poolItem) |
|
List< TPoolItem > | _poolList = new List<TPoolItem>() |
|
List< TPoolItem > | PoolList [get] |
|
TPoolItem | Prefab [get, set] |
| | The prefab to spawn if no poolable (free) item exists.
|
A poolcontainer for short-lived items.
- Template Parameters
-
◆ Dispose()
| override void NikosAssets.Pooling.PoolContainerOnClock< TPoolItemOnClock >.Dispose |
( |
| ) |
|
|
virtual |
The documentation for this class was generated from the following file: