Show / Hide Table of Contents

Class MyWeaponDefinition.MyWeaponAmmoData

Inheritance
System.Object
MyWeaponDefinition.MyWeaponAmmoData
Namespace: Sandbox.Definitions
Assembly: Sandbox.Game.dll
Syntax
public class MyWeaponAmmoData : Object

Constructors

MyWeaponAmmoData(Int32, String, String, Int32)

Declaration
public MyWeaponAmmoData(int rateOfFire, string soundName, string preShotSoundName, int shotsInBurst)
Parameters
Type Name Description
System.Int32 rateOfFire
System.String soundName
System.String preShotSoundName
System.Int32 shotsInBurst

MyWeaponAmmoData(Int32, String, String, Int32, String, String)

Declaration
public MyWeaponAmmoData(int rateOfFire, string soundName, string preShotSoundName, int shotsInBurst, string flightSoundName, string ricochetSoundName)
Parameters
Type Name Description
System.Int32 rateOfFire
System.String soundName
System.String preShotSoundName
System.Int32 shotsInBurst
System.String flightSoundName
System.String ricochetSoundName

MyWeaponAmmoData(MyObjectBuilder_WeaponDefinition.WeaponAmmoData)

Declaration
public MyWeaponAmmoData(MyObjectBuilder_WeaponDefinition.WeaponAmmoData data)
Parameters
Type Name Description
MyObjectBuilder_WeaponDefinition.WeaponAmmoData data

Fields

FlightSound

Declaration
public MySoundPair FlightSound
Field Value
Type Description
MySoundPair

PreShotSound

Declaration
public MySoundPair PreShotSound
Field Value
Type Description
MySoundPair

RateOfFire

Declaration
public int RateOfFire
Field Value
Type Description
System.Int32

RicochetSound

Declaration
public MySoundPair RicochetSound
Field Value
Type Description
MySoundPair

ShootIntervalInMiliseconds

Declaration
public int ShootIntervalInMiliseconds
Field Value
Type Description
System.Int32

ShootSound

Declaration
public MySoundPair ShootSound
Field Value
Type Description
MySoundPair

ShotsInBurst

Declaration
public int ShotsInBurst
Field Value
Type Description
System.Int32
☀
☾
In This Article
  • Constructors
    • MyWeaponAmmoData(Int32, String, String, Int32)
    • MyWeaponAmmoData(Int32, String, String, Int32, String, String)
    • MyWeaponAmmoData(MyObjectBuilder_WeaponDefinition.WeaponAmmoData)
  • Fields
    • FlightSound
    • PreShotSound
    • RateOfFire
    • RicochetSound
    • ShootIntervalInMiliseconds
    • ShootSound
    • ShotsInBurst
Back to top
Generated by DocFX
☀
☾