IMyTerminalControlsAddActionTBlock Method |
v01.180.0 (Beta)[This is preliminary documentation and is subject to change.]
This allows you to add an action to an assocated block
Namespace: Sandbox.ModAPIAssembly: Sandbox.Common (in Sandbox.Common.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax void AddAction<TBlock>(
IMyTerminalAction action
)
Sub AddAction(Of TBlock) (
action As IMyTerminalAction
)
generic<typename TBlock>
void AddAction(
IMyTerminalAction^ action
)
abstract AddAction :
action : IMyTerminalAction -> unit
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