Skip to content
This repository has been archived by the owner on Oct 22, 2024. It is now read-only.

VRage.Game.ModAPI.Ingame.IMySlimBlock

Morten Aune Lyrstad edited this page Feb 17, 2020 · 45 revisions

IndexNamespace Index

IMySlimBlock Interface

public interface IMySlimBlock

basic block interface

Namespace: VRage.Game.ModAPI.Ingame
Assembly: VRage.Game.dll

Properties

Member Description
BlockDefinition { get; } Block definition ID
AccumulatedDamage { get; } Current accumlated damage, pending application
BuildIntegrity { get; } Build integrity (of components)
BuildLevelRatio { get; } Ratio of BuildIntegrity and MaxIntegrity
CurrentDamage { get; } BuildIntegrity - Integrity
DamageRatio { get; }
FatBlock { get; } Gets the fatblock if there is one
HasDeformation { get; } If this block is deformed (bones deformed)
IsDestroyed { get; } Gets if component stack is empty
IsFullIntegrity { get; } Integrity is at maximum
IsFullyDismounted { get; } Gets if component stack is empty
MaxDeformation { get; } Maximum deformation of block
MaxIntegrity { get; } The maximum integrity of block
Mass { get; } Block mass
OwnerId { get; } Fatblock owner, if present; otherwise grid owner
ShowParts { get; } Gets if sub parts are shown
StockpileAllocated { get; } A component stockpile has been allocated
StockpileEmpty { get; } The component stockpile is empty (no build components)
Position { get; } Grid relative position of block
CubeGrid { get; } Gets the grid the slimblock is on
ColorMaskHSV { get; } Gets the color of the block
SkinSubtypeId { get; } Gets the skin of the block

Methods

Member Description
GetMissingComponents(Dictionary) Gets the list of missing components for this block
Clone this wiki locally