Method ForEachItem
- Namespace
- GrindFest
- Assembly
- GrindFest.dll
ForEachItem(Action<ItemBehaviour>)
Zero-allocation alternative to AllItems enumeration. Calls the provided action for each item in the inventory, including nested containers.
public void ForEachItem(Action<ItemBehaviour> action)
Parameters
actionAction<ItemBehaviour>Action to call for each item