⮞ Go to NeoFPS.com

    Show / Hide Table of Contents

    Class FpsInventoryItemBase

    Inheritance
    Object
    MonoBehaviour
    FpsInventoryItemBase
    FpsInventoryAmmo
    FpsInventoryInstantUseItem
    FpsInventoryInstantUseSwappableItem
    FpsInventoryItem
    FpsInventoryQuickUseItem
    FpsInventoryQuickUseSwappableItem
    FpsInventoryWieldable
    FpsInventoryWieldableSwappable
    KeyRing
    Implements
    IInventoryItem
    INeoSerializableComponent
    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()
    Namespace: NeoFPS
    Assembly: NeoFPS.dll
    Syntax
    public abstract class FpsInventoryItemBase : MonoBehaviour, IInventoryItem, INeoSerializableComponent

    Properties

    fpsInventory

    Declaration
    protected FpsInventoryBase fpsInventory { get; }
    Property Value
    Type Description
    FpsInventoryBase

    inventory

    Declaration
    public IInventory inventory { get; }
    Property Value
    Type Description
    IInventory

    itemIdentifier

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

    maxQuantity

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

    neoSerializedGameObject

    Declaration
    protected NeoSerializedGameObject neoSerializedGameObject { get; }
    Property Value
    Type Description
    NeoSerializedGameObject

    owner

    Declaration
    public ICharacter owner { get; }
    Property Value
    Type Description
    ICharacter

    quantity

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

    Methods

    Awake()

    Declaration
    protected virtual void Awake()

    OnAddToInventory(IInventory, InventoryAddResult)

    Declaration
    public virtual void OnAddToInventory(IInventory i, InventoryAddResult addResult)
    Parameters
    Type Name Description
    IInventory i
    InventoryAddResult addResult

    OnRemoveFromInventory()

    Declaration
    public virtual void OnRemoveFromInventory()

    OnValidate()

    Declaration
    protected virtual void OnValidate()

    OnZeroQuantity()

    Declaration
    protected virtual void OnZeroQuantity()

    ReadProperties(INeoDeserializer, NeoSerializedGameObject)

    Declaration
    public virtual void ReadProperties(INeoDeserializer reader, NeoSerializedGameObject nsgo)
    Parameters
    Type Name Description
    INeoDeserializer reader
    NeoSerializedGameObject nsgo

    WriteProperties(INeoSerializer, NeoSerializedGameObject, SaveMode)

    Declaration
    public virtual void WriteProperties(INeoSerializer writer, NeoSerializedGameObject nsgo, SaveMode saveMode)
    Parameters
    Type Name Description
    INeoSerializer writer
    NeoSerializedGameObject nsgo
    SaveMode saveMode

    Events

    onAddToInventory

    Declaration
    public event UnityAction onAddToInventory
    Event Type
    Type Description
    UnityAction

    onOwnerChange

    Declaration
    public event UnityAction<ICharacter, ICharacter> onOwnerChange
    Event Type
    Type Description
    UnityAction<ICharacter, ICharacter>

    onQuantityChange

    Declaration
    public event UnityAction onQuantityChange
    Event Type
    Type Description
    UnityAction

    onRemoveFromInventory

    Declaration
    public event UnityAction onRemoveFromInventory
    Event Type
    Type Description
    UnityAction

    Implements

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