ItemContainerBase¶
Non-generic base class for all item containers.
Namespace: Jungle.Core
Inherits: MonoBehaviour
Implements: IItemContainer
Overview¶
ItemContainerBase provides non-generic access to container state — count, capacity, emptiness, fullness — so that conditions, commands, and editor tooling can inspect any container regardless of its element type. Concrete containers (GameObjectListContainer, CreatorBackedContainer, etc.) inherit from this through ItemContainer<T>.
Properties¶
| Member | Type | Description |
|---|---|---|
Count |
int |
Number of items currently in the container. |
Capacity |
int |
Maximum capacity (-1 if unlimited). |
HasAvailable |
bool |
True if the container has at least one item. |
IsFull |
bool |
True if count has reached capacity. |
IsEmpty |
bool |
True if count is zero. |
Events¶
| Event | Description |
|---|---|
OnItemAddedObject |
Fires when an item is added to the container. |
OnItemRemovedObject |
Fires when an item is removed from the container. |