⮞ Go to NeoFPS.com

    Show / Hide Table of Contents

    Class InfiniteAmmo

    Inheritance
    Object
    MonoBehaviour
    BaseFirearmModuleBehaviour
    InfiniteAmmo
    Implements
    IFirearmModule
    IAmmo
    IFirearmModuleValidity
    INeoSerializableComponent
    Inherited Members
    BaseFirearmModuleBehaviour.activationMode
    BaseFirearmModuleBehaviour.firearm
    BaseFirearmModuleBehaviour.Awake()
    BaseFirearmModuleBehaviour.Enable()
    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 class InfiniteAmmo : 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 int currentAmmo { get; }
    Property Value
    Type Description
    System.Int32

    effect

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

    isModuleValid

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

    maxAmmo

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

    printableName

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

    Methods

    DecrementAmmo(Int32)

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

    IncrementAmmo(Int32)

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

    OnEnable()

    Declaration
    protected void OnEnable()

    OnValidate()

    Declaration
    protected void OnValidate()

    ReadProperties(INeoDeserializer, NeoSerializedGameObject)

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

    WriteProperties(INeoSerializer, NeoSerializedGameObject, SaveMode)

    Declaration
    public 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