Table of Contents

Class InventoryContainerBehaviour

Namespace
GrindFest
Assembly
GrindFest.dll
public class InventoryContainerBehaviour : MonoBehaviour, IEnumerable<ItemBehaviour>, IEnumerable
Inheritance
object
InventoryContainerBehaviour
Implements

Fields

ContainerCollider
Controller
InsideContainerTrigger
Items

Properties

AllItems
TotalItemsGoldValue
TotalItemsWeight

Methods

AddItem(ItemBehaviour, Vector3)
CheckCollision(Vector3)
DropAllOnGround()
DropItemInInventory(ItemBehaviour)
FindFirstItem(Predicate<ItemBehaviour>)

Zero-allocation method to find the first item matching a predicate. Returns the first matching item or null if none found.

ForEachItem(Action<ItemBehaviour>)

Zero-allocation alternative to AllItems enumeration. Calls the provided action for each item in the inventory, including nested containers.

GetEnumerator()
RemoveItem(ItemBehaviour)