Class BaseShooterBehaviour
Inheritance
BaseShooterBehaviour
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.ModularFirearms
Assembly: NeoFPS.dll
Syntax
public abstract class BaseShooterBehaviour : BaseFirearmModuleBehaviour, IFirearmModule, IShooter, IFirearmModuleValidity, INeoSerializableComponent
Properties
isModuleValid
Declaration
public virtual bool isModuleValid { get; }
Property Value
| Type | Description |
|---|---|
| System.Boolean |
spreadMultiplier
Declaration
public float spreadMultiplier { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Single |
Methods
Enable()
Declaration
public override void Enable()
Overrides
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 |
SendOnShootEvent()
Declaration
protected void SendOnShootEvent()
Shoot(Single, IAmmoEffect)
Declaration
public virtual void Shoot(float accuracy, IAmmoEffect effect)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Single | accuracy | |
| IAmmoEffect | effect |
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
onShoot
Declaration
public event UnityAction<IModularFirearm> onShoot
Event Type
| Type | Description |
|---|---|
| UnityAction<IModularFirearm> |