Interface IInventoryItem
Assembly: NeoFPS.dll
Syntax
public interface IInventoryItem
Properties
gameObject
Declaration
GameObject gameObject { get; }
Property Value
| Type |
Description |
| GameObject |
|
inventory
Declaration
IInventory inventory { get; }
Property Value
itemIdentifier
Declaration
int itemIdentifier { get; }
Property Value
| Type |
Description |
| System.Int32 |
|
maxQuantity
Declaration
Property Value
| Type |
Description |
| System.Int32 |
|
name
Declaration
Property Value
| Type |
Description |
| System.String |
|
owner
Declaration
ICharacter owner { get; }
Property Value
quantity
Declaration
int quantity { get; set; }
Property Value
| Type |
Description |
| System.Int32 |
|
Declaration
Transform transform { get; }
Property Value
| Type |
Description |
| Transform |
|
Methods
GetComponent(Type)
Declaration
Component GetComponent(Type t)
Parameters
| Type |
Name |
Description |
| System.Type |
t |
|
Returns
| Type |
Description |
| Component |
|
GetComponent<T>()
Declaration
Returns
Type Parameters
GetComponentInChildren(Type)
Declaration
Component GetComponentInChildren(Type t)
Parameters
| Type |
Name |
Description |
| System.Type |
t |
|
Returns
| Type |
Description |
| Component |
|
GetComponentInChildren<T>()
Declaration
T GetComponentInChildren<T>()
Returns
Type Parameters
GetComponentInParent(Type)
Declaration
Component GetComponentInParent(Type t)
Parameters
| Type |
Name |
Description |
| System.Type |
t |
|
Returns
| Type |
Description |
| Component |
|
GetComponentInParent<T>()
Declaration
T GetComponentInParent<T>()
Returns
Type Parameters
GetComponents(Type)
Declaration
Component[] GetComponents(Type t)
Parameters
| Type |
Name |
Description |
| System.Type |
t |
|
Returns
| Type |
Description |
| Component[] |
|
GetComponents<T>()
Declaration
Returns
Type Parameters
GetComponentsInChildren(Type, Boolean)
Declaration
Component[] GetComponentsInChildren(Type t, bool includeInactive = false)
Parameters
| Type |
Name |
Description |
| System.Type |
t |
|
| System.Boolean |
includeInactive |
|
Returns
| Type |
Description |
| Component[] |
|
GetComponentsInChildren<T>(Boolean)
Declaration
T[] GetComponentsInChildren<T>(bool includeInactive = false)
Parameters
| Type |
Name |
Description |
| System.Boolean |
includeInactive |
|
Returns
Type Parameters
GetComponentsInParent(Type, Boolean)
Declaration
Component[] GetComponentsInParent(Type t, bool includeInactive = false)
Parameters
| Type |
Name |
Description |
| System.Type |
t |
|
| System.Boolean |
includeInactive |
|
Returns
| Type |
Description |
| Component[] |
|
GetComponentsInParent<T>(Boolean)
Declaration
T[] GetComponentsInParent<T>(bool includeInactive = false)
Parameters
| Type |
Name |
Description |
| System.Boolean |
includeInactive |
|
Returns
Type Parameters
OnAddToInventory(IInventory, InventoryAddResult)
Declaration
void OnAddToInventory(IInventory i, InventoryAddResult addResult)
Parameters
OnRemoveFromInventory()
Declaration
void OnRemoveFromInventory()
Events
onAddToInventory
Declaration
event UnityAction onAddToInventory
Event Type
| Type |
Description |
| UnityAction |
|
onQuantityChange
Declaration
event UnityAction onQuantityChange
Event Type
| Type |
Description |
| UnityAction |
|
onRemoveFromInventory
Declaration
event UnityAction onRemoveFromInventory
Event Type
| Type |
Description |
| UnityAction |
|