Click or drag to resize
IMyTerminalControlsCreateActionTBlock Method

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

This allows you to create an action to associate with a block

Namespace: Sandbox.ModAPI
Assembly: Sandbox.Common (in Sandbox.Common.dll) Version: 1.0.0.0
Syntax
C#
IMyTerminalAction CreateAction<TBlock>(
	string id
)

Parameters

id
Type: SystemString
A unique identifier for this action

Type Parameters

TBlock
The ModAPI interface of the associated block

Return Value

Type: IMyTerminalAction
An IMyTerminalAction object
See Also