Class FpsInventorySwappable
Inheritance
FpsInventorySwappable
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Assembly: NeoFPS.dll
Syntax
public class FpsInventorySwappable : FpsInventoryBase, IInventory, IMonoBehaviour, IQuickSlots, INeoSerializableComponent
Properties
duplicateBehaviour
Declaration
public override DuplicateEntryBehaviourFull duplicateBehaviour { get; }
Property Value
Overrides
swapAction
Declaration
public override SwapAction swapAction { get; }
Property Value
Overrides
Methods
AddItemReference(FpsInventoryItemBase)
Declaration
protected override void AddItemReference(FpsInventoryItemBase item)
Parameters
Overrides
AutoSwitchSlotDelayed(Int32)
Declaration
protected override IEnumerator AutoSwitchSlotDelayed(int slot)
Parameters
| Type |
Name |
Description |
| System.Int32 |
slot |
|
Returns
| Type |
Description |
| System.Collections.IEnumerator |
|
Overrides
Awake()
Declaration
protected override void Awake()
Overrides
CanAddItem(IInventoryItem)
Declaration
protected override bool CanAddItem(IInventoryItem item)
Parameters
Returns
| Type |
Description |
| System.Boolean |
|
Overrides
CheckInitialised()
Declaration
protected override void CheckInitialised()
Overrides
CheckInstantUse(Int32)
Declaration
protected override bool CheckInstantUse(int index)
Parameters
| Type |
Name |
Description |
| System.Int32 |
index |
|
Returns
| Type |
Description |
| System.Boolean |
|
Overrides
ClearAllItems(UnityAction<IInventoryItem>)
Declaration
public override void ClearAllItems(UnityAction<IInventoryItem> onClearAction)
Parameters
Overrides
ClearSlots()
Declaration
public override void ClearSlots()
Overrides
ContainsItem(FpsInventoryItemBase)
Declaration
public override bool ContainsItem(FpsInventoryItemBase item)
Parameters
Returns
| Type |
Description |
| System.Boolean |
|
Overrides
GetItem(Int32)
Declaration
public override IInventoryItem GetItem(int itemIdentifier)
Parameters
| Type |
Name |
Description |
| System.Int32 |
itemIdentifier |
|
Returns
Overrides
GetItemsSorted(List<IInventoryItem>, InventoryCallbacks.FilterItem, Comparison<IInventoryItem>)
Declaration
public override void GetItemsSorted(List<IInventoryItem> output, InventoryCallbacks.FilterItem filter, Comparison<IInventoryItem> compare)
Parameters
Overrides
GetSlotForItem(ISwappable)
Declaration
public int GetSlotForItem(ISwappable item)
Parameters
Returns
| Type |
Description |
| System.Int32 |
|
GetSlotItem(Int32)
Declaration
public override IQuickSlotItem GetSlotItem(int slot)
Parameters
| Type |
Name |
Description |
| System.Int32 |
slot |
|
Returns
Overrides
IsEquippableItem(Int32)
Declaration
protected override bool IsEquippableItem(int index)
Parameters
| Type |
Name |
Description |
| System.Int32 |
index |
|
Returns
| Type |
Description |
| System.Boolean |
|
Overrides
IsSlotSelectable(Int32)
Declaration
public override bool IsSlotSelectable(int index)
Parameters
| Type |
Name |
Description |
| System.Int32 |
index |
|
Returns
| Type |
Description |
| System.Boolean |
|
Overrides
OnValidate()
Declaration
protected override void OnValidate()
Overrides
ReadProperties(INeoDeserializer, NeoSerializedGameObject)
Declaration
public override void ReadProperties(INeoDeserializer reader, NeoSerializedGameObject nsgo)
Parameters
Overrides
RemoveItemReference(FpsInventoryItemBase)
Declaration
protected override void RemoveItemReference(FpsInventoryItemBase item)
Parameters
Overrides
SelectSlotInternal(Int32)
Declaration
protected override bool SelectSlotInternal(int slot)
Parameters
| Type |
Name |
Description |
| System.Int32 |
slot |
|
Returns
| Type |
Description |
| System.Boolean |
|
Overrides
SetSlotItem(Int32, IQuickSlotItem)
Declaration
public override void SetSlotItem(int slot, IQuickSlotItem item)
Parameters
Overrides
WriteProperties(INeoSerializer, NeoSerializedGameObject, SaveMode)
Declaration
public override void WriteProperties(INeoSerializer writer, NeoSerializedGameObject nsgo, SaveMode saveMode)
Parameters
Overrides
Events
onCategoryFullChanged
Declaration
public event UnityAction<FpsSwappableCategory, bool> onCategoryFullChanged
Event Type
Implements