Class Inventory
Inventory used for storing items. Items with the same name are treated as the same type regardless of their other properties such as description, icon and itemLimit, and therefore are put into the same item slot.
Inherited Members
Component.GetComponentInChildren<T>()
Object.Destroy(Object)
Object.DestroyImmediate(Object)
Object.DestroyObject(Object)
Namespace: LobsterFramework.Interaction
Assembly: LobsterFramework.dll
Syntax
public class Inventory : Interactor
Properties
| Improve this Doc View SourceEntity
Declaration
public Entity Entity { get; }
Property Value
Type | Description |
---|---|
Entity |
Methods
| Improve this Doc View SourceDropItem(InventoryItem)
Drop specified inventory item by removing it from the inventory and generating a CollectableItem on the ground
Declaration
public void DropItem(InventoryItem itemToDrop)
Parameters
Type | Name | Description |
---|---|---|
InventoryItem | itemToDrop | The item to be dropped, must be present in the inventory, otherwise this method do nothing |