Show / Hide Table of Contents

Class ShootingModule

Inheritance
Object
Element
BlockModule
ShootingModule
Implements
IValidatable
IReloadable
Inherited Members
BlockModule.ModId
BlockModule.OnReload(IReloadable)
BlockModule.PreprocessForReloading()
Element.Validate()
Element.MissingElement(String, String)
Element.MissingAttribute(String, String)
Element.InvalidData(String, String)
Element.Warn(String, String)
Element.LineNumber
Element.LinePosition
Element.AttributesUsed
Element.ElementsUsed
Element.FileName
Namespace: Modding.Modules.Official
Assembly: Assembly-CSharp.dll
Syntax
[Reloadable]
public class ShootingModule : BlockModule, IValidatable, IReloadable

Constructors

ShootingModule()

Declaration
public ShootingModule()

Fields

AmmoType

Declaration
[Reloadable]
public AmmoType AmmoType
Field Value
Type Description
AmmoType

DefaultAmmo

Declaration
[Reloadable]
public int DefaultAmmo
Field Value
Type Description
Int32

FireKey

Declaration
[RequireToValidate]
public MKeyReference FireKey
Field Value
Type Description
MKeyReference

HoldToShootToggle

Declaration
[RequireToValidate]
public MToggleReference HoldToShootToggle
Field Value
Type Description
MToggleReference

PoolSize

Declaration
public int PoolSize
Field Value
Type Description
Int32

PowerSlider

Declaration
[RequireToValidate]
public MSliderReference PowerSlider
Field Value
Type Description
MSliderReference

ProjectileInfo

Declaration
[RequireToValidate]
[Reloadable]
public ShootingModule.Projectile ProjectileInfo
Field Value
Type Description
ShootingModule.Projectile

ProjectilesDespawnImmediately

Declaration
[Reloadable]
public bool ProjectilesDespawnImmediately
Field Value
Type Description
Boolean

ProjectilesExplode

Declaration
[Reloadable]
public bool ProjectilesExplode
Field Value
Type Description
Boolean

ProjectileStart

Declaration
[Reloadable]
public TransformValues ProjectileStart
Field Value
Type Description
TransformValues

RateOfFireSlider

Declaration
[RequireToValidate]
public MSliderReference RateOfFireSlider
Field Value
Type Description
MSliderReference

RecoilMultiplier

Declaration
[Reloadable]
public float RecoilMultiplier
Field Value
Type Description
Single

ShowPlaceholderProjectile

Declaration
public bool ShowPlaceholderProjectile
Field Value
Type Description
Boolean

Sounds

Declaration
[RequireToValidate]
[CanBeEmpty]
public object[] Sounds
Field Value
Type Description
Object[]

SupportsExplosionGodTool

Declaration
[Reloadable]
public bool SupportsExplosionGodTool
Field Value
Type Description
Boolean

TriggeredByFire

Declaration
[Reloadable]
public bool TriggeredByFire
Field Value
Type Description
Boolean

Methods

GetProjectilePlaceholder(ModBlockBehaviourHandler)

Declaration
public GameObject GetProjectilePlaceholder(ModBlockBehaviourHandler behaviour)
Parameters
Type Name Description
InternalModding.Blocks.ModBlockBehaviourHandler behaviour
Returns
Type Description
UnityEngine.GameObject

GetProjectilePrefab(ModBlockBehaviourHandler)

Declaration
public GameObject GetProjectilePrefab(ModBlockBehaviourHandler behaviour)
Parameters
Type Name Description
InternalModding.Blocks.ModBlockBehaviourHandler behaviour
Returns
Type Description
UnityEngine.GameObject

OnReload(ModBlockBehaviourHandler)

Declaration
public void OnReload(ModBlockBehaviourHandler behaviour)
Parameters
Type Name Description
InternalModding.Blocks.ModBlockBehaviourHandler behaviour

Validate(String)

Declaration
protected override bool Validate(string elemName)
Parameters
Type Name Description
String elemName
Returns
Type Description
Boolean
Overrides
Element.Validate(String)

Implements

IValidatable
IReloadable
Back to top Generated by DocFX