Space Engineers
Classes | Public Types | Public Member Functions | Public Attributes | Protected Member Functions | Properties | List of all members
Sandbox.Definitions.MyWeaponDefinition Class Reference
Inheritance diagram for Sandbox.Definitions.MyWeaponDefinition:
VRage.Game.MyDefinitionBase

Classes

class  MyWeaponAmmoData
 
class  MyWeaponEffect
 

Public Types

enum  WeaponEffectAction { WeaponEffectAction.Unknown, WeaponEffectAction.Shoot }
 

Public Member Functions

bool HasSpecificAmmoData (MyAmmoDefinition ammoDefinition)
 
bool HasAmmoMagazines ()
 
bool IsAmmoMagazineCompatible (MyDefinitionId ammoMagazineDefinitionId)
 
int GetAmmoMagazineIdArrayIndex (MyDefinitionId ammoMagazineId)
 
- Public Member Functions inherited from VRage.Game.MyDefinitionBase
void Init (MyObjectBuilder_DefinitionBase builder, MyModContext modContext)
 
virtual void Postprocess ()
 Override this in case you want to do some postprocessing of the definition before the game starts. More...
 
void Save (string filepath)
 
virtual MyObjectBuilder_DefinitionBase GetObjectBuilder ()
 
override string ToString ()
 

Public Attributes

const float oneSixtieth = 1.0f / 60.0f
 
MySoundPair NoAmmoSound
 
MySoundPair ReloadSound
 
MySoundPair SecondarySound
 
float DeviateShotAngle
 
float ReleaseTimeAfterFire
 
int MuzzleFlashLifeSpan
 
MyDefinitionId[] AmmoMagazinesId
 
MyWeaponAmmoData[] WeaponAmmoDatas
 
MyWeaponEffect[] WeaponEffects
 
MyStringHash PhysicalMaterial
 
bool UseDefaultMuzzleFlash
 
int ReloadTime = 2000
 
- Public Attributes inherited from VRage.Game.MyDefinitionBase
MyDefinitionId Id
 
MyStringId DisplayNameEnum
 Enum used for localization of display name. Null for player created definitions. More...
 
MyStringId DescriptionEnum
 Enum used for localization of description. Null for player created definitions. More...
 
String DisplayNameString
 String name used for user created definitions which do not have localization support. More...
 
String DescriptionString
 String used for user created description which do not have localization support. More...
 
string[] Icons
 Icons for the definition, they are used from top to bottom. More...
 
bool Enabled = true
 Definition can be disabled by mod, then it will be removed from definition manager More...
 
bool Public = true
 Indicates if definition should be offered in Cube builder More...
 
bool AvailableInSurvival
 
MyModContext Context
 

Protected Member Functions

override void Init (MyObjectBuilder_DefinitionBase builder)
 

Properties

bool HasProjectileAmmoDefined [get]
 
bool HasMissileAmmoDefined [get]
 
- Properties inherited from VRage.Game.MyDefinitionBase
virtual String DisplayNameText [get]
 Use this property when showing name in GUI instead of DisplayName. This takes into account more complex name construction. More...
 
virtual String DescriptionText [get]
 Use this property when showing description in GUI, as it takes into account more complex description construction. More...
 

Detailed Description

Definition at line 16 of file MyWeaponDefinition.cs.

Member Enumeration Documentation

Enumerator
Unknown 
Shoot 

Definition at line 38 of file MyWeaponDefinition.cs.

Member Function Documentation

int Sandbox.Definitions.MyWeaponDefinition.GetAmmoMagazineIdArrayIndex ( MyDefinitionId  ammoMagazineId)
inline

Definition at line 180 of file MyWeaponDefinition.cs.

bool Sandbox.Definitions.MyWeaponDefinition.HasAmmoMagazines ( )
inline

Definition at line 98 of file MyWeaponDefinition.cs.

bool Sandbox.Definitions.MyWeaponDefinition.HasSpecificAmmoData ( MyAmmoDefinition  ammoDefinition)
inline

Definition at line 93 of file MyWeaponDefinition.cs.

override void Sandbox.Definitions.MyWeaponDefinition.Init ( MyObjectBuilder_DefinitionBase  builder)
inlineprotectedvirtual

Reimplemented from VRage.Game.MyDefinitionBase.

Definition at line 103 of file MyWeaponDefinition.cs.

bool Sandbox.Definitions.MyWeaponDefinition.IsAmmoMagazineCompatible ( MyDefinitionId  ammoMagazineDefinitionId)
inline

Definition at line 170 of file MyWeaponDefinition.cs.

Member Data Documentation

MyDefinitionId [] Sandbox.Definitions.MyWeaponDefinition.AmmoMagazinesId

Definition at line 77 of file MyWeaponDefinition.cs.

float Sandbox.Definitions.MyWeaponDefinition.DeviateShotAngle

Definition at line 74 of file MyWeaponDefinition.cs.

int Sandbox.Definitions.MyWeaponDefinition.MuzzleFlashLifeSpan

Definition at line 76 of file MyWeaponDefinition.cs.

MySoundPair Sandbox.Definitions.MyWeaponDefinition.NoAmmoSound

Definition at line 71 of file MyWeaponDefinition.cs.

const float Sandbox.Definitions.MyWeaponDefinition.oneSixtieth = 1.0f / 60.0f

Definition at line 68 of file MyWeaponDefinition.cs.

MyStringHash Sandbox.Definitions.MyWeaponDefinition.PhysicalMaterial

Definition at line 80 of file MyWeaponDefinition.cs.

float Sandbox.Definitions.MyWeaponDefinition.ReleaseTimeAfterFire

Definition at line 75 of file MyWeaponDefinition.cs.

MySoundPair Sandbox.Definitions.MyWeaponDefinition.ReloadSound

Definition at line 72 of file MyWeaponDefinition.cs.

int Sandbox.Definitions.MyWeaponDefinition.ReloadTime = 2000

Definition at line 82 of file MyWeaponDefinition.cs.

MySoundPair Sandbox.Definitions.MyWeaponDefinition.SecondarySound

Definition at line 73 of file MyWeaponDefinition.cs.

bool Sandbox.Definitions.MyWeaponDefinition.UseDefaultMuzzleFlash

Definition at line 81 of file MyWeaponDefinition.cs.

MyWeaponAmmoData [] Sandbox.Definitions.MyWeaponDefinition.WeaponAmmoDatas

Definition at line 78 of file MyWeaponDefinition.cs.

MyWeaponEffect [] Sandbox.Definitions.MyWeaponDefinition.WeaponEffects

Definition at line 79 of file MyWeaponDefinition.cs.

Property Documentation

bool Sandbox.Definitions.MyWeaponDefinition.HasMissileAmmoDefined
get

Definition at line 89 of file MyWeaponDefinition.cs.

bool Sandbox.Definitions.MyWeaponDefinition.HasProjectileAmmoDefined
get

Definition at line 85 of file MyWeaponDefinition.cs.


The documentation for this class was generated from the following file: