Class MyComponentDefinition
Inheritance
System.Object
MyComponentDefinition
Assembly: Sandbox.Game.dll
Syntax
[MyDefinitionType]
public class MyComponentDefinition : MyPhysicalItemDefinition
Constructors
MyComponentDefinition()
Declaration
public MyComponentDefinition()
Fields
DeconstructionEfficiency
Declaration
public float DeconstructionEfficiency
Field Value
Type |
Description |
System.Single |
|
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.
Declaration
public float DropProbability
Field Value
Type |
Description |
System.Single |
|
MaxIntegrity
HP of the component. Used when calculating overall HP of block from its components.
Declaration
Field Value
Type |
Description |
System.Int32 |
|
Methods
Init(MyObjectBuilder_DefinitionBase)
Declaration
protected override void Init(MyObjectBuilder_DefinitionBase builder)
Parameters
Overrides