Sandbox.ModAPI.Ingame.IMyFunctionalBlock

From Space Engineers Wiki
Revision as of 06:34, 12 January 2015 by Textor (talk | contribs) (Created page with "=Sandbox.ModAPI.Ingame.IMyFunctionalBlock= This is a base class for blocks with functions. Examples: Assembler, Gravity Generator, Gyroscope. ==Namespace== Sandb...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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