Sandbox.ModAPI.Ingame.IMyFunctionalBlock

From Space Engineers Wiki
Jump to: navigation, search

Sandbox.ModAPI.Ingame.IMyFunctionalBlock

This is a base class for blocks with functions. Examples: Assembler, Gravity Generator, Gyroscope.

Namespace

Sandbox.ModAPI.Ingame

Assembly

Sandbox.Common (Sandbox.Common.dll)

Syntax

public interface IMyFunctionalBlock : IMyTerminalBlock, IMyCubeBlock, IMyEntity

Methods

RequestEnable

void RequestEnable(bool enable)

Turns the block off or on depending on if true or false. Same as action OnOff_On or OnOff_Off.

Properties

Enabled

bool Enabled {get;}

On/Off state of the block.

Cateogry:Sandbox.ModAPI.Ingame