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

Public Attributes

int MaxIntegrity
 HP of the component. Used when calculating overall HP of block from its components. More...
 
float DropProbability
 Chance that the damaged component will be dropped when damage is inflicted to a component stack. Percentage given as value from 0 to 1. More...
 
float DeconstructionEfficiency
 
- Public Attributes inherited from Sandbox.Definitions.MyPhysicalItemDefinition
Vector3 Size
 
float Mass
 
string Model
 
string[] Models
 
MyStringId IconSymbol
 
float Volume
 
float ModelVolume
 
MyStringHash PhysicalMaterial
 
MyStringHash VoxelMaterial
 
bool CanSpawnFromScreen
 
bool RotateOnSpawnX = false
 
bool RotateOnSpawnY = false
 
bool RotateOnSpawnZ = false
 
int Health
 
MyDefinitionId DestroyedPieceId = null
 
int DestroyedPieces = 0
 
StringBuilder ExtraInventoryTooltipLine
 
MyFixedPoint MaxStackAmount
 
- 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)
 
- Protected Member Functions inherited from Sandbox.Definitions.MyPhysicalItemDefinition
override void Init (MyObjectBuilder_DefinitionBase builder)
 

Additional Inherited Members

- 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 ()
 
- Properties inherited from Sandbox.Definitions.MyPhysicalItemDefinition
bool HasIntegralAmounts [get]
 
bool HasModelVariants [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 11 of file MyComponentDefinition.cs.

Member Function Documentation

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

Reimplemented from VRage.Game.MyDefinitionBase.

Definition at line 26 of file MyComponentDefinition.cs.

Member Data Documentation

float Sandbox.Definitions.MyComponentDefinition.DeconstructionEfficiency

Definition at line 24 of file MyComponentDefinition.cs.

float Sandbox.Definitions.MyComponentDefinition.DropProbability

Chance that the damaged component will be dropped when damage is inflicted to a component stack. Percentage given as value from 0 to 1.

Definition at line 22 of file MyComponentDefinition.cs.

int Sandbox.Definitions.MyComponentDefinition.MaxIntegrity

HP of the component. Used when calculating overall HP of block from its components.

Definition at line 16 of file MyComponentDefinition.cs.


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