IMyTerminalControlsCreateActionTBlock Method |
v01.180.0 (Beta)[This is preliminary documentation and is subject to change.]
This allows you to create an action to associate with a block
Namespace: Sandbox.ModAPIAssembly: Sandbox.Common (in Sandbox.Common.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax IMyTerminalAction CreateAction<TBlock>(
string id
)
Function CreateAction(Of TBlock) (
id As String
) As IMyTerminalAction
generic<typename TBlock>
IMyTerminalAction^ CreateAction(
String^ id
)
abstract CreateAction :
id : string -> IMyTerminalAction
Parameters
- id
- Type: SystemString
A unique identifier for this action
Type Parameters
- TBlock
- The ModAPI interface of the associated block
Return Value
Type:
IMyTerminalActionAn IMyTerminalAction object
See Also