Difference between revisions of "Sandbox.ModAPI.Ingame.IMyFunctionalBlock"
From Space Engineers Wiki
(Created page with "=Sandbox.ModAPI.Ingame.IMyFunctionalBlock= This is a base class for blocks with functions. Examples: Assembler, Gravity Generator, Gyroscope. ==Namespace== Sandb...") |
(No difference)
|
Latest revision as of 06:34, 12 January 2015
Contents
Sandbox.ModAPI.Ingame.IMyFunctionalBlock
This is a base class for blocks with functions. Examples: Assembler, Gravity Generator, Gyroscope.
Namespace
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.