Interface IMyMechanicalConnectionBlock
Describes blocks linked with Mechanical connection (mods interface)
Inherited Members
Namespace: Sandbox.ModAPI
Assembly: Sandbox.Common.dll
Syntax
public interface IMyMechanicalConnectionBlock : IMyFunctionalBlock, IMyTerminalBlock, IMyCubeBlock, IMyEntity, IMyMechanicalConnectionBlock, IMyFunctionalBlock, IMyTerminalBlock, IMyCubeBlock, IMyEntity
Properties
Top
Gets the attached top part entity
Declaration
IMyAttachableTopBlock Top { get; }
Property Value
| Type | Description |
|---|---|
| IMyAttachableTopBlock |
TopGrid
Gets the grid of the attached top part
Declaration
IMyCubeGrid TopGrid { get; }
Property Value
| Type | Description |
|---|---|
| IMyCubeGrid |
Methods
Attach(IMyAttachableTopBlock, Boolean)
Attaches the specified top part to the base
Declaration
void Attach(IMyAttachableTopBlock top, bool updateGroup = true)
Parameters
| Type | Name | Description |
|---|---|---|
| IMyAttachableTopBlock | top | |
| System.Boolean | updateGroup | true to update grid groups |
Events
OnAttachedChanged
Triggered when something is attached or detached
Declaration
event Action<IMyMechanicalConnectionBlock> OnAttachedChanged
Event Type
| Type | Description |
|---|---|
| System.Action<IMyMechanicalConnectionBlock> |