Class StackableInventoryItem
Stackable item handled by the IInventoryManager.
Inherited Members
Namespace: UnityEngine.GameFoundation
Syntax
public class StackableInventoryItem : InventoryItem, IEquatable<InventoryItem>, IComparable<InventoryItem>, ITradable, IQuantifiable
Properties
quantity
Quantity of this StackableInventoryItem.
Declaration
public long quantity { get; }
Property Value
Type | Description |
---|---|
Int64 |
Implements
Methods
SetQuantity(Int64)
Set quantity for this StackableInventoryItem if permissible.
Declaration
public bool SetQuantity(long quantity)
Parameters
Type | Name | Description |
---|---|---|
Int64 | quantity | Requested new quantity. |
Returns
Type | Description |
---|---|
Boolean | true if new quantity is valid and set, else false. |
Events
quantityChanged
Triggered every time a StackableInventoryItem quantity is changed.
Declaration
public static event Action<StackableInventoryItem, long> quantityChanged
Event Type
Type | Description |
---|---|
Action<StackableInventoryItem, Int64> |