⮞ Go to NeoFPS.com

    Show / Hide Table of Contents

    Class InventoryItemPickup

    Inheritance
    Object
    MonoBehaviour
    Pickup
    InventoryItemPickup
    Implements
    IPickup
    INeoSerializableComponent
    Inherited Members
    Pickup.onPickupTriggered
    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 InventoryItemPickup : Pickup, IPickup, INeoSerializableComponent

    Properties

    item

    Declaration
    public FpsInventoryItemBase item { get; }
    Property Value
    Type Description
    FpsInventoryItemBase

    itemIdentifier

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

    pickUpAdditional

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

    Methods

    AddAdditionalItems(IInventory)

    Declaration
    protected virtual void AddAdditionalItems(IInventory inventory)
    Parameters
    Type Name Description
    IInventory inventory

    Awake()

    Declaration
    protected void Awake()

    EnablePickup(Boolean)

    Declaration
    public virtual void EnablePickup(bool value)
    Parameters
    Type Name Description
    System.Boolean value

    OnEnable()

    Declaration
    protected void OnEnable()

    OnPickedUp()

    Declaration
    protected virtual void OnPickedUp()

    OnPickedUpPartial()

    Declaration
    protected virtual void OnPickedUpPartial()

    OnValidate()

    Declaration
    protected void OnValidate()

    PickUpFromPrefab(IInventory)

    Declaration
    protected virtual void PickUpFromPrefab(IInventory inventory)
    Parameters
    Type Name Description
    IInventory inventory

    PickUpLocal(IInventory)

    Declaration
    protected virtual void PickUpLocal(IInventory inventory)
    Parameters
    Type Name Description
    IInventory inventory

    ReadProperties(INeoDeserializer, NeoSerializedGameObject)

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

    SpawnItem()

    Declaration
    public virtual bool SpawnItem()
    Returns
    Type Description
    System.Boolean

    Trigger(ICharacter)

    Declaration
    public override void Trigger(ICharacter character)
    Parameters
    Type Name Description
    ICharacter character
    Overrides
    Pickup.Trigger(ICharacter)

    WriteProperties(INeoSerializer, NeoSerializedGameObject, SaveMode)

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

    Implements

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