⮞ Go to NeoFPS.com

    Show / Hide Table of Contents

    Class FpsInventoryQuickSwitch

    Inheritance
    Object
    MonoBehaviour
    FpsInventoryBase
    FpsInventoryQuickSwitch
    Implements
    IInventory
    IMonoBehaviour
    IQuickSlots
    INeoSerializableComponent
    Inherited Members
    FpsInventoryBase.Start()
    FpsInventoryBase.OnValidate()
    FpsInventoryBase.onItemAdded
    FpsInventoryBase.onItemRemoved
    FpsInventoryBase.OnItemRemoved(IInventoryItem)
    FpsInventoryBase.wieldableRootScale
    FpsInventoryBase.AddItem(IInventoryItem)
    FpsInventoryBase.AddItemFromPrefab(GameObject)
    FpsInventoryBase.AppendItem(IInventoryItem, IInventoryItem)
    FpsInventoryBase.AppendPrefab(IInventoryItem, IInventoryItem)
    FpsInventoryBase.RemoveItem(IInventoryItem)
    FpsInventoryBase.SwitchSelectionOnRemove(IInventoryItem)
    FpsInventoryBase.RemoveItem(Int32, UnityAction<IInventoryItem>)
    FpsInventoryBase.GetItems(List<IInventoryItem>)
    FpsInventoryBase.GetItems(List<IInventoryItem>, InventoryCallbacks.FilterItem)
    FpsInventoryBase.GetItems()
    FpsInventoryBase.GetItems(InventoryCallbacks.FilterItem)
    FpsInventoryBase.GetItemsSorted(InventoryCallbacks.FilterItem, Comparison<IInventoryItem>)
    FpsInventoryBase.onSelectionChanged
    FpsInventoryBase.onSlotItemChanged
    FpsInventoryBase.onItemDropped
    FpsInventoryBase.backupSlot
    FpsInventoryBase.selected
    FpsInventoryBase.swapping
    FpsInventoryBase.emptyAsBackupItem
    FpsInventoryBase.isSelectionLocked
    FpsInventoryBase.SetSelected(IQuickSlotItem, Int32, Boolean, Boolean)
    FpsInventoryBase.isBackupItemSelected
    FpsInventoryBase.isNothingSelected
    FpsInventoryBase.OnSelectionChanged(Int32)
    FpsInventoryBase.OnSlotItemChanged(Int32, IQuickSlotItem)
    FpsInventoryBase.SelectNothing(Boolean, Boolean)
    FpsInventoryBase.SelectBackupItem(Boolean, Boolean)
    FpsInventoryBase.SelectStartingSlot()
    FpsInventoryBase.SelectNextSlot()
    FpsInventoryBase.SelectPreviousSlot()
    FpsInventoryBase.numSlots
    FpsInventoryBase.isLocked
    FpsInventoryBase.AutoSwitchSlot(Int32)
    FpsInventoryBase.AutoSwitchSlotDelayed(Int32)
    FpsInventoryBase.DropSelected()
    FpsInventoryBase.DropAllWieldables()
    FpsInventoryBase.DropItem(IQuickSlotItem)
    FpsInventoryBase.GetStartingSlotOrder()
    FpsInventoryBase.LockSelectionToSlot(Int32, Object)
    FpsInventoryBase.LockSelectionToBackupItem(Object, Boolean)
    FpsInventoryBase.LockSelectionToNothing(Object, Boolean)
    FpsInventoryBase.UnlockSelection(Object)
    FpsInventoryBase.initialisedContents
    FpsInventoryBase.ApplyLoadout(FpsInventoryLoadout, Boolean)
    FpsInventoryBase.ApplyLoadout(IInventoryItem[], Boolean, Boolean)
    FpsInventoryBase.wieldableRootNsgo
    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()
    Namespace: NeoFPS
    Assembly: NeoFPS.dll
    Syntax
    public class FpsInventoryQuickSwitch : FpsInventoryBase, IInventory, IMonoBehaviour, IQuickSlots, INeoSerializableComponent

    Properties

    duplicateBehaviour

    Declaration
    public override DuplicateEntryBehaviourFull duplicateBehaviour { get; }
    Property Value
    Type Description
    DuplicateEntryBehaviourFull
    Overrides
    FpsInventoryBase.duplicateBehaviour

    swapAction

    Declaration
    public override SwapAction swapAction { get; }
    Property Value
    Type Description
    SwapAction
    Overrides
    FpsInventoryBase.swapAction

    Methods

    AddItemReference(FpsInventoryItemBase)

    Declaration
    protected override void AddItemReference(FpsInventoryItemBase item)
    Parameters
    Type Name Description
    FpsInventoryItemBase item
    Overrides
    FpsInventoryBase.AddItemReference(FpsInventoryItemBase)

    Awake()

    Declaration
    protected override void Awake()
    Overrides
    FpsInventoryBase.Awake()

    CanAddItem(IInventoryItem)

    Declaration
    protected override bool CanAddItem(IInventoryItem item)
    Parameters
    Type Name Description
    IInventoryItem item
    Returns
    Type Description
    System.Boolean
    Overrides
    FpsInventoryBase.CanAddItem(IInventoryItem)

    CheckInitialised()

    Declaration
    protected override void CheckInitialised()
    Overrides
    FpsInventoryBase.CheckInitialised()

    CheckInstantUse(Int32)

    Declaration
    protected override bool CheckInstantUse(int index)
    Parameters
    Type Name Description
    System.Int32 index
    Returns
    Type Description
    System.Boolean
    Overrides
    FpsInventoryBase.CheckInstantUse(Int32)

    ClearAllItems(UnityAction<IInventoryItem>)

    Declaration
    public override void ClearAllItems(UnityAction<IInventoryItem> onClearAction)
    Parameters
    Type Name Description
    UnityAction<IInventoryItem> onClearAction
    Overrides
    FpsInventoryBase.ClearAllItems(UnityAction<IInventoryItem>)

    ClearSlots()

    Declaration
    public override void ClearSlots()
    Overrides
    FpsInventoryBase.ClearSlots()

    ContainsItem(FpsInventoryItemBase)

    Declaration
    public override bool ContainsItem(FpsInventoryItemBase item)
    Parameters
    Type Name Description
    FpsInventoryItemBase item
    Returns
    Type Description
    System.Boolean
    Overrides
    FpsInventoryBase.ContainsItem(FpsInventoryItemBase)

    GetItem(Int32)

    Declaration
    public override IInventoryItem GetItem(int itemIdentifier)
    Parameters
    Type Name Description
    System.Int32 itemIdentifier
    Returns
    Type Description
    IInventoryItem
    Overrides
    FpsInventoryBase.GetItem(Int32)

    GetItemsSorted(List<IInventoryItem>, InventoryCallbacks.FilterItem, Comparison<IInventoryItem>)

    Declaration
    public override void GetItemsSorted(List<IInventoryItem> output, InventoryCallbacks.FilterItem filter, Comparison<IInventoryItem> compare)
    Parameters
    Type Name Description
    System.Collections.Generic.List<IInventoryItem> output
    InventoryCallbacks.FilterItem filter
    System.Comparison<IInventoryItem> compare
    Overrides
    FpsInventoryBase.GetItemsSorted(List<IInventoryItem>, InventoryCallbacks.FilterItem, Comparison<IInventoryItem>)

    GetSlotItem(Int32)

    Declaration
    public override IQuickSlotItem GetSlotItem(int slot)
    Parameters
    Type Name Description
    System.Int32 slot
    Returns
    Type Description
    IQuickSlotItem
    Overrides
    FpsInventoryBase.GetSlotItem(Int32)

    IsEquippableItem(Int32)

    Declaration
    protected override bool IsEquippableItem(int index)
    Parameters
    Type Name Description
    System.Int32 index
    Returns
    Type Description
    System.Boolean
    Overrides
    FpsInventoryBase.IsEquippableItem(Int32)

    IsSlotSelectable(Int32)

    Declaration
    public override bool IsSlotSelectable(int index)
    Parameters
    Type Name Description
    System.Int32 index
    Returns
    Type Description
    System.Boolean
    Overrides
    FpsInventoryBase.IsSlotSelectable(Int32)

    QuickSwapSlot()

    Declaration
    public bool QuickSwapSlot()
    Returns
    Type Description
    System.Boolean

    ReadProperties(INeoDeserializer, NeoSerializedGameObject)

    Declaration
    public override void ReadProperties(INeoDeserializer reader, NeoSerializedGameObject nsgo)
    Parameters
    Type Name Description
    INeoDeserializer reader
    NeoSerializedGameObject nsgo
    Overrides
    FpsInventoryBase.ReadProperties(INeoDeserializer, NeoSerializedGameObject)

    RemoveItemReference(FpsInventoryItemBase)

    Declaration
    protected override void RemoveItemReference(FpsInventoryItemBase item)
    Parameters
    Type Name Description
    FpsInventoryItemBase item
    Overrides
    FpsInventoryBase.RemoveItemReference(FpsInventoryItemBase)

    SelectSlot(Int32)

    Declaration
    public override bool SelectSlot(int slot)
    Parameters
    Type Name Description
    System.Int32 slot
    Returns
    Type Description
    System.Boolean
    Overrides
    FpsInventoryBase.SelectSlot(Int32)

    SelectSlotInternal(Int32)

    Declaration
    protected override bool SelectSlotInternal(int slot)
    Parameters
    Type Name Description
    System.Int32 slot
    Returns
    Type Description
    System.Boolean
    Overrides
    FpsInventoryBase.SelectSlotInternal(Int32)

    SetSlotItem(Int32, IQuickSlotItem)

    Declaration
    public override void SetSlotItem(int slot, IQuickSlotItem item)
    Parameters
    Type Name Description
    System.Int32 slot
    IQuickSlotItem item
    Overrides
    FpsInventoryBase.SetSlotItem(Int32, IQuickSlotItem)

    SwitchSelection()

    Declaration
    public override bool SwitchSelection()
    Returns
    Type Description
    System.Boolean
    Overrides
    FpsInventoryBase.SwitchSelection()

    WriteProperties(INeoSerializer, NeoSerializedGameObject, SaveMode)

    Declaration
    public override void WriteProperties(INeoSerializer writer, NeoSerializedGameObject nsgo, SaveMode saveMode)
    Parameters
    Type Name Description
    INeoSerializer writer
    NeoSerializedGameObject nsgo
    SaveMode saveMode
    Overrides
    FpsInventoryBase.WriteProperties(INeoSerializer, NeoSerializedGameObject, SaveMode)

    Implements

    IInventory
    IMonoBehaviour
    IQuickSlots
    INeoSerializableComponent
    Back to top Copyright © 2019 Yondernauts Game Studios Ltd
    Generated with DocFX