Interface IInventory
Assembly: NeoFPS.dll
Syntax
public interface IInventory : IMonoBehaviour
Properties
duplicateBehaviour
Declaration
DuplicateEntryBehaviourFull duplicateBehaviour { get; }
Property Value
Methods
AddItem(IInventoryItem)
Add an item to the inventory.
Declaration
InventoryAddResult AddItem(IInventoryItem item)
Parameters
Returns
| Type |
Description |
| InventoryAddResult |
The result of the addition (success, partial, failure).
|
See Also
AddItemFromPrefab(GameObject)
Declaration
InventoryAddResult AddItemFromPrefab(GameObject prefab)
Parameters
| Type |
Name |
Description |
| GameObject |
prefab |
|
Returns
ApplyLoadout(FpsInventoryLoadout, Boolean)
Declaration
void ApplyLoadout(FpsInventoryLoadout loadout, bool replace = true)
Parameters
ApplyLoadout(IInventoryItem[], Boolean, Boolean)
Declaration
void ApplyLoadout(IInventoryItem[] loadout, bool prefabs, bool replace = true)
Parameters
| Type |
Name |
Description |
| IInventoryItem[] |
loadout |
|
| System.Boolean |
prefabs |
|
| System.Boolean |
replace |
|
ClearAllItems(UnityAction<IInventoryItem>)
Declaration
void ClearAllItems(UnityAction<IInventoryItem> onClearAction)
Parameters
GetItem(Int32)
Declaration
IInventoryItem GetItem(int identifier)
Parameters
| Type |
Name |
Description |
| System.Int32 |
identifier |
|
Returns
GetItems()
Declaration
IInventoryItem[] GetItems()
Returns
GetItems(InventoryCallbacks.FilterItem)
Declaration
IInventoryItem[] GetItems(InventoryCallbacks.FilterItem filter)
Parameters
Returns
GetItems(List<IInventoryItem>)
Declaration
void GetItems(List<IInventoryItem> output)
Parameters
| Type |
Name |
Description |
| System.Collections.Generic.List<IInventoryItem> |
output |
|
GetItems(List<IInventoryItem>, InventoryCallbacks.FilterItem)
Declaration
void GetItems(List<IInventoryItem> output, InventoryCallbacks.FilterItem filter)
Parameters
GetItemsSorted(InventoryCallbacks.FilterItem, Comparison<IInventoryItem>)
Declaration
IInventoryItem[] GetItemsSorted(InventoryCallbacks.FilterItem filter, Comparison<IInventoryItem> compare)
Parameters
Returns
GetItemsSorted(List<IInventoryItem>, InventoryCallbacks.FilterItem, Comparison<IInventoryItem>)
Declaration
void GetItemsSorted(List<IInventoryItem> output, InventoryCallbacks.FilterItem filter, Comparison<IInventoryItem> compare)
Parameters
RemoveItem(IInventoryItem)
Declaration
void RemoveItem(IInventoryItem item)
Parameters
RemoveItem(Int32, UnityAction<IInventoryItem>)
Declaration
void RemoveItem(int itemIdentifier, UnityAction<IInventoryItem> onClearAction)
Parameters
| Type |
Name |
Description |
| System.Int32 |
itemIdentifier |
|
| UnityAction<IInventoryItem> |
onClearAction |
|
Events
onItemAdded
Declaration
event UnityAction<IInventoryItem> onItemAdded
Event Type
onItemRemoved
Declaration
event UnityAction<IInventoryItem> onItemRemoved
Event Type