⮞ Go to NeoFPS.com

    Show / Hide Table of Contents

    Class BaseAmmoBehaviour

    Inheritance
    Object
    MonoBehaviour
    BaseFirearmModuleBehaviour
    BaseAmmoBehaviour
    CustomAmmo
    RechargingAmmo
    SharedPoolAmmo
    Implements
    IFirearmModule
    IAmmo
    IFirearmModuleValidity
    INeoSerializableComponent
    Inherited Members
    BaseFirearmModuleBehaviour.activationMode
    BaseFirearmModuleBehaviour.firearm
    BaseFirearmModuleBehaviour.Awake()
    BaseFirearmModuleBehaviour.Disable()
    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.ModularFirearms
    Assembly: NeoFPS.dll
    Syntax
    public abstract class BaseAmmoBehaviour : BaseFirearmModuleBehaviour, IFirearmModule, IAmmo, IFirearmModuleValidity, INeoSerializableComponent

    Properties

    atMaximum

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

    available

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

    currentAmmo

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

    effect

    Declaration
    public abstract IAmmoEffect effect { get; }
    Property Value
    Type Description
    IAmmoEffect

    isModuleValid

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

    maxAmmo

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

    printableName

    Declaration
    public abstract string printableName { get; }
    Property Value
    Type Description
    System.String

    Methods

    DecrementAmmo(Int32)

    Declaration
    public abstract void DecrementAmmo(int amount)
    Parameters
    Type Name Description
    System.Int32 amount

    Enable()

    Declaration
    public override void Enable()
    Overrides
    BaseFirearmModuleBehaviour.Enable()

    IncrementAmmo(Int32)

    Declaration
    public abstract void IncrementAmmo(int amount)
    Parameters
    Type Name Description
    System.Int32 amount

    OnEnable()

    Declaration
    protected virtual void OnEnable()

    ReadProperties(INeoDeserializer, NeoSerializedGameObject)

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

    SendAmmoChangeEvent()

    Declaration
    protected void SendAmmoChangeEvent()

    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

    onCurrentAmmoChange

    Declaration
    public event UnityAction<IModularFirearm, int> onCurrentAmmoChange
    Event Type
    Type Description
    UnityAction<IModularFirearm, System.Int32>

    Implements

    IFirearmModule
    IAmmo
    IFirearmModuleValidity
    INeoSerializableComponent
    Back to top Copyright © 2019 Yondernauts Game Studios Ltd
    Generated with DocFX