VRage.Game.ModAPI.Ingame
IMySlimBlock
Assembly: VRage.Game.dll
public interface IMySlimBlock
Basic block interface (PB scripting interface)
Properties
| Member | Description |
|---|---|
| AccumulatedDamage | Current accumlated damage, pending application |
| BlockDefinition | Block definition ID |
| BuildIntegrity | Build integrity (of components) |
| BuildLevelRatio | Ratio of BuildIntegrity and MaxIntegrity |
| ColorMaskHSV | Gets the color of the block |
| CubeGrid | Gets the grid the slimblock is on |
| CurrentDamage | BuildIntegrity - Integrity |
| DamageRatio | |
| FatBlock | Gets the fatblock if there is one |
| HasDeformation | If this block is deformed (bones deformed) |
| IsDestroyed | Gets if component stack is empty |
| IsFullIntegrity | Integrity is at maximum |
| IsFullyDismounted | Gets if component stack is empty |
| Mass | Block mass |
| MaxDeformation | Maximum deformation of block |
| MaxIntegrity | The maximum integrity of block |
| OwnerId | Fatblock owner, if present; otherwise grid owner |
| Position | Grid relative position of block |
| ShowParts | Gets if sub parts are shown |
| SkinSubtypeId | Gets the skin of the block |
| StockpileAllocated | A component stockpile has been allocated |
| StockpileEmpty | The component stockpile is empty (no build components) |
Methods
| Member | Description |
|---|---|
| GetMissingComponents(Dictionary<string, int>) | Gets the list of missing components for this block |