Class Consumability
Consumability of the item.
物品的消耗性。
Inheritance
System.Object
Consumability
Namespace: Votanic.vXR.vGear.Inventory
Assembly: Votanic.vXR.dll
Syntax
[Serializable]
public class Consumability
Constructors
Consumability()
Declare a consumability.
宣告一個消耗性。
Declaration
public Consumability()
Fields
applyDurability
Apply item will consume durability.
使用物品將會消耗其耐久度。
Declaration
[Tooltip("Apply item will consume durability.\n使用物品將會消耗其耐久度。")]
public bool applyDurability
Field Value
Type | Description |
---|---|
System.Boolean |
applyQuantity
Access item will change quantity.
存取物品將會改變其數量。
Declaration
[Tooltip("Access item will change quantity.\n存取物品將會改變其數量。")]
public bool applyQuantity
Field Value
Type | Description |
---|---|
System.Boolean |
durability
Current durability of item.
物品目前的耐久度。
Declaration
[Tooltip("Current durability of item.\n物品目前的耐久度。")]
public int durability
Field Value
Type | Description |
---|---|
System.Int32 |
maxDurability
Maximum durability of item.
物品最大的耐久度。
Declaration
[Tooltip("Maximum durability of item.\n物品最大的耐久度。")]
public int maxDurability
Field Value
Type | Description |
---|---|
System.Int32 |
quantity
Quantity on this container.
這個容器的物品數量。
Declaration
[Tooltip("Quantity on this container.\n這個容器的物品數量。")]
public int quantity
Field Value
Type | Description |
---|---|
System.Int32 |