GameObjectCreatorBackedContainer¶
A container whose membership is dispensed and reclaimed through a referenced GameObjectCreator.
Namespace: Jungle.Objects
Inherits: CreatorBackedContainer<GameObject> → ItemContainer<GameObject> → ItemContainerBase
Overview¶
GameObjectCreatorBackedContainer is the agent-facing wrapper around a GameObjectCreator (such as PooledObjectCreator or InstanceObjectCreator). The creator owns the item lifecycle; the container re-exposes it in the take/store vocabulary that agents and commands already speak.
| Container operation | Delegates to |
|---|---|
TryTake / Take |
IItemCreator<T>.Create |
TryReturn / Store |
IItemCreator<T>.Reclaim |
TryRemove |
IItemCreator<T>.DestroyItem |
Available |
IItemCreator<T>.AllCreated |
HasAvailable is always true while a creator is assigned — it can always produce another instance (up to its own cap). Contains / CanAccept check that the item is known to the creator.
Serialized fields¶
| Field | Type | Description |
|---|---|---|
creator |
GameObjectCreator |
The creator backing this container. Take dispenses from it; Store reclaims to it. |