Show / Hide Table of Contents

Class vGear_ItemContainer

The container of item data.
物品數據容器。

Inheritance
System.Object
UnityEngine.Object
UnityEngine.Component
UnityEngine.Behaviour
UnityEngine.MonoBehaviour
vGear_ItemContainer
Namespace: Votanic.vXR.vGear
Assembly: Votanic.vXR.dll
Syntax
[AddComponentMenu("")]
public class vGear_ItemContainer : MonoBehaviour

Fields

button

Button of item container.
物品容器按鈕。

Declaration
[Header("[Components]")]
[Tooltip("Button of item container.\n物品容器按鈕。")]
public vGear_Button button
Field Value
Type Description
vGear_Button

descDisplay

Description text component.
描述文字組件。

Declaration
[Tooltip("Description text component.\n描述文字組件。")]
public Text descDisplay
Field Value
Type Description
UnityEngine.UI.Text

durabilityDisplay

Durability text component.
耐久度文字組件。

Declaration
[Tooltip("Durability text component.\n耐久度文字組件。")]
public Text durabilityDisplay
Field Value
Type Description
UnityEngine.UI.Text

holdingDisplay

Holding state raw image component.
手持狀態影像組件。

Declaration
[Tooltip("Holding state raw image component.\n手持狀態影像組件。")]
public RawImage holdingDisplay
Field Value
Type Description
UnityEngine.UI.RawImage

iconDisplay

Icon raw image component.
圖示影像組件。

Declaration
[Tooltip("Icon raw image components.\n圖示影像組件。")]
public List<RawImage> iconDisplay
Field Value
Type Description
System.Collections.Generic.List<UnityEngine.UI.RawImage>

isEmpty

Return true if the container is empty.
當容器為空時傳回 true。

Declaration
[Tooltip("Return true if the container is empty.\n當容器為空時傳回 true。")]
public bool isEmpty
Field Value
Type Description
System.Boolean

isHolding

Return true if the container is holding.
當容器為保留時傳回 true。

Declaration
[Tooltip("Return true if the container is holding.\n當容器為保留時傳回 true。")]
public bool isHolding
Field Value
Type Description
System.Boolean

itemData

Current item data.
目前物品數據。

Declaration
[Header("[Status]")]
[Tooltip("Current item data.\n目前物品數據。")]
public ItemData itemData
Field Value
Type Description
ItemData

nameDisplay

Name text component.
名稱文字組件。

Declaration
[Tooltip("Name text component.\n名稱文字組件。")]
public Text nameDisplay
Field Value
Type Description
UnityEngine.UI.Text

qualityDisplay

Item quality raw image component.
物品品質影像組件。

Declaration
[Tooltip("Item quality raw image component.\n物品品質影像組件。")]
public RawImage qualityDisplay
Field Value
Type Description
UnityEngine.UI.RawImage

quantityDisplay

Quantity text component.
數量文字組件。

Declaration
[Tooltip("Quantity text component.\n數量文字組件。")]
public Text quantityDisplay
Field Value
Type Description
UnityEngine.UI.Text

remarkDisplay

Remark text component.
備註文字組件。

Declaration
[Tooltip("Remark text component.\n備註文字組件。")]
public Text remarkDisplay
Field Value
Type Description
UnityEngine.UI.Text

Methods

Apply(Parameter)

Apply this item.
使用這個物品。

Apply(new InteractionParameter("command", 1, -1, 0, InteractorType.Wand))

Declaration
public void Apply(Parameter parameter = null)
Parameters
Type Name Description
Parameter parameter

Paramter class
參數類別

AuxiliaryInfo()

The info displayed on auxiliary info panel.
輔助物資訊面板顯示的資訊。

Declaration
public virtual string AuxiliaryInfo()
Returns
Type Description
System.String

Buy(Int32, Parameter)

Buy this item.
購買這個物品。

Buy(1, new InteractionParameter("command", 1, -1, 0, InteractorType.Wand))

Declaration
public void Buy(int quantity, Parameter parameter = null)
Parameters
Type Name Description
System.Int32 quantity

Number of item
物品數量

Parameter parameter

Paramter class
參數類別

Buy(Parameter)

Buy this item.
購買這個物品。

Buy(new InteractionParameter("command", 1, -1, 0, InteractorType.Wand))

Declaration
public void Buy(Parameter parameter = null)
Parameters
Type Name Description
Parameter parameter

Paramter class
參數類別

CanPlace(ItemData)

Reutrn true if the item can be placed to the container.
當物品可放在這個容器時傳回 true。

CanPlace(itemData)

Declaration
public bool CanPlace(ItemData itemData)
Parameters
Type Name Description
ItemData itemData

Item
物品

Returns
Type Description
System.Boolean

Divide(Int32, Parameter)

Divide this item.
拆分這個物品。

Divide(1, new InteractionParameter("command", 1, -1, 0, InteractorType.Wand))

Declaration
public void Divide(int quantity, Parameter parameter = null)
Parameters
Type Name Description
System.Int32 quantity

Number of item
物品數量

Parameter parameter

Paramter class
參數類別

Divide(Parameter)

Divide this item.
拆分這個物品。

Divide(new InteractionParameter("command", 1, -1, 0, InteractorType.Wand))

Declaration
public void Divide(Parameter parameter = null)
Parameters
Type Name Description
Parameter parameter

Paramter class
參數類別

Move(Parameter)

Move this item.
移動這個物品。

Move(new InteractionParameter("command", 1, -1, 0, InteractorType.Wand))

Declaration
public void Move(Parameter parameter = null)
Parameters
Type Name Description
Parameter parameter

Paramter class
參數類別

Operate(Parameter)

Operate the default relevant function of the container.
操作容器預設相應的功能。

Operate(new InteractionParameter("command", 1, -1, 0, InteractorType.Wand))

Declaration
public void Operate(Parameter parameter = null)
Parameters
Type Name Description
Parameter parameter

Paramter class
參數類別

Remove(Parameter)

Remove this item.
移除這個物品。

Remove(new InteractionParameter("command", 1, -1, 0, InteractorType.Wand))

Declaration
public void Remove(Parameter parameter = null)
Parameters
Type Name Description
Parameter parameter

Paramter class
參數類別

Sell(Int32, Parameter)

Sell this item.
出售這個物品。

Sell(1, new InteractionParameter("command", 1, -1, 0, InteractorType.Wand))

Declaration
public void Sell(int quantity, Parameter parameter = null)
Parameters
Type Name Description
System.Int32 quantity

Number of item
物品數量

Parameter parameter

Paramter class
參數類別

Sell(Parameter)

Sell this item.
出售這個物品。

Sell(new InteractionParameter("command", 1, -1, 0, InteractorType.Wand))

Declaration
public void Sell(Parameter parameter = null)
Parameters
Type Name Description
Parameter parameter

Paramter class
參數類別

In This Article
Back to top Generated by DocFX