⮞ Go to NeoFPS.com

    Show / Hide Table of Contents

    Class FpsInventoryInstantUseSwappableItem

    Inheritance
    Object
    MonoBehaviour
    FpsInventoryItemBase
    FpsInventoryInstantUseSwappableItem
    Implements
    IInventoryItem
    INeoSerializableComponent
    IQuickSlotItem
    ISwappable
    IMonoBehaviour
    Inherited Members
    FpsInventoryItemBase.onOwnerChange
    FpsInventoryItemBase.onAddToInventory
    FpsInventoryItemBase.onRemoveFromInventory
    FpsInventoryItemBase.onQuantityChange
    FpsInventoryItemBase.fpsInventory
    FpsInventoryItemBase.neoSerializedGameObject
    FpsInventoryItemBase.owner
    FpsInventoryItemBase.inventory
    FpsInventoryItemBase.quantity
    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 FpsInventoryInstantUseSwappableItem : FpsInventoryItemBase, IInventoryItem, INeoSerializableComponent, IQuickSlotItem, ISwappable, IMonoBehaviour

    Properties

    category

    Declaration
    public FpsSwappableCategory category { get; }
    Property Value
    Type Description
    FpsSwappableCategory

    displayImage

    Declaration
    public Sprite displayImage { get; }
    Property Value
    Type Description
    Sprite

    isDroppable

    Declaration
    public bool isDroppable { get; }
    Property Value
    Type Description
    System.Boolean

    isSelectable

    Declaration
    public virtual bool isSelectable { get; }
    Property Value
    Type Description
    System.Boolean

    isSelected

    Declaration
    public bool isSelected { get; }
    Property Value
    Type Description
    System.Boolean

    isUsable

    Declaration
    public virtual bool isUsable { get; }
    Property Value
    Type Description
    System.Boolean

    itemIdentifier

    Declaration
    public override int itemIdentifier { get; }
    Property Value
    Type Description
    System.Int32
    Overrides
    FpsInventoryItemBase.itemIdentifier

    maxQuantity

    Declaration
    public override int maxQuantity { get; }
    Property Value
    Type Description
    System.Int32
    Overrides
    FpsInventoryItemBase.maxQuantity

    quickSlot

    Declaration
    public int quickSlot { get; }
    Property Value
    Type Description
    System.Int32

    slots

    Declaration
    public IQuickSlots slots { get; }
    Property Value
    Type Description
    IQuickSlots

    wieldable

    Declaration
    public IWieldable wieldable { get; }
    Property Value
    Type Description
    IWieldable

    Methods

    Awake()

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

    DropItem(Vector3, Vector3, Vector3)

    Declaration
    public virtual bool DropItem(Vector3 position, Vector3 forward, Vector3 velocity)
    Parameters
    Type Name Description
    Vector3 position
    Vector3 forward
    Vector3 velocity
    Returns
    Type Description
    System.Boolean

    OnAddToInventory(IInventory, InventoryAddResult)

    Declaration
    public override void OnAddToInventory(IInventory i, InventoryAddResult addResult)
    Parameters
    Type Name Description
    IInventory i
    InventoryAddResult addResult
    Overrides
    FpsInventoryItemBase.OnAddToInventory(IInventory, InventoryAddResult)

    OnDeselect()

    Declaration
    public virtual Waitable OnDeselect()
    Returns
    Type Description
    Waitable

    OnDeselectInstant()

    Declaration
    public virtual void OnDeselectInstant()

    OnRemoveFromInventory()

    Declaration
    public override void OnRemoveFromInventory()
    Overrides
    FpsInventoryItemBase.OnRemoveFromInventory()

    OnSelect()

    Declaration
    public virtual void OnSelect()

    OnValidate()

    Declaration
    protected override void OnValidate()
    Overrides
    FpsInventoryItemBase.OnValidate()

    OnZeroQuantity()

    Declaration
    protected override void OnZeroQuantity()
    Overrides
    FpsInventoryItemBase.OnZeroQuantity()

    ReadProperties(INeoDeserializer, NeoSerializedGameObject)

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

    UseItem()

    Declaration
    public virtual void UseItem()

    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
    FpsInventoryItemBase.WriteProperties(INeoSerializer, NeoSerializedGameObject, SaveMode)

    Implements

    IInventoryItem
    INeoSerializableComponent
    IQuickSlotItem
    ISwappable
    IMonoBehaviour
    Back to top Copyright © 2019 Yondernauts Game Studios Ltd
    Generated with DocFX