Class InfiniteAmmo
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()
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
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
WriteProperties(INeoSerializer, NeoSerializedGameObject, SaveMode)
Declaration
public void WriteProperties(INeoSerializer writer, NeoSerializedGameObject nsgo, SaveMode saveMode)
Parameters
Events
onCurrentAmmoChange
Declaration
public event UnityAction<IModularFirearm, int> onCurrentAmmoChange
Event Type
Implements