Sandbox.Game.Entities
MyComponentStack
Assembly: Sandbox.Game.dll
public class MyComponentStack: IMyComponentStack
Fields
| Member | Description |
|---|---|
| static MOUNT_THRESHOLD | Mount threshold, required because of float inaccuracy. Component that has integrity beyond this threshold is considered unmounted. The integrity of the whole stack will never fall beyond this level (unless the stack is fully dismounted) |
| BuildIntegrityChanged | |
| IntegrityChanged |
Events
| Member | Description |
|---|---|
| IsFunctionalChanged | |
| IntegrityChanged | Triggers when integrity is changed Inherited from IMyComponentStack |
| IsFunctionalChanged | Triggers when functional state has changed Inherited from IMyComponentStack |
Properties
| Member | Description |
|---|---|
| static NewBlockIntegrity | |
| BuildIntegrity | |
| BuildRatio | |
| GroupCount | |
| Integrity | |
| IntegrityRatio | |
| IsBuilt | Whether the block is built based on build-time integrity (construction state) and the final model can be shown. Uses BuildIntegrity for the check. |
| IsDestroyed | |
| IsFullIntegrity | |
| IsFullyDismounted | |
| IsFunctional | Component stack is functional when critical part is not destroyed (integrity > 0). IMPORTANT: When you change the logic beyond this property, don't forget to call CheckFunctionalState every time the functional state could have been changed! (Also, remove calls to CheckFunctionalState where no longer needed) |
| LastChangeStamp | |
| MaxIntegrity | |
| YieldLastComponent | |
| BuildIntegrity | Gets the build integrity of the component stack Inherited from IMyComponentStack |
| BuildRatio | Gets the build ration of the component stack Inherited from IMyComponentStack |
| GroupCount | Gets count of the components in the group (stack). Use with GetComponentStackInfo to get components in the stack. Inherited from IMyComponentStack |
| Integrity | Gets the integrity of the component stack Inherited from IMyComponentStack |
| IntegrityRatio | Gets the integrity ratio of the component stack Inherited from IMyComponentStack |
| IsBuilt | Whether this component stack is built Inherited from IMyComponentStack |
| IsDestroyed | Whether the component stack is destroyed Inherited from IMyComponentStack |
| IsFullIntegrity | Whether the component stack is at full integrity Inherited from IMyComponentStack |
| IsFullyDismounted | Whether the component stack is fully dismounted Inherited from IMyComponentStack |
| IsFunctional | Whether this component stack is in functional state Inherited from IMyComponentStack |
| MaxIntegrity | Gets the max integrity of the component stack Inherited from IMyComponentStack |
| YieldLastComponent | Whether the yield last component is enabled or not. Inherited from IMyComponentStack |
Constructors
| Member | Description |
|---|---|
| MyComponentStack(MyCubeBlockDefinition, float, float) |
Methods
Implements: