Click or drag to resize
IMyTerminalControlsAddActionTBlock Method

[This is preliminary documentation and is subject to change.]

This allows you to add an action to an assocated block

Namespace: Sandbox.ModAPI
Assembly: Sandbox.Common (in Sandbox.Common.dll) Version: 1.0.0.0
Syntax
C#
void AddAction<TBlock>(
	IMyTerminalAction action
)

Parameters

action
Type: Sandbox.ModAPI.Interfaces.TerminalIMyTerminalAction
An IMyTerminalAction object returned from CreateAction

Type Parameters

TBlock
The ModAPI interface of the associated block
See Also