Interface IMyEventControllerBlock
Describes Event Controller Block
Inherited Members
Namespace: Sandbox.ModAPI
Assembly: Sandbox.Common.dll
Syntax
public interface IMyEventControllerBlock : IMyEventControllerBlock, IMyFunctionalBlock, IMyFunctionalBlock, IMyTerminalBlock, IMyTerminalBlock, IMyCubeBlock, IMyCubeBlock, IMyEntity, IMyEntity
Properties
SelectedEvent
Currently selected event
Declaration
IMyEventControllerEntityComponent SelectedEvent { get; }
Property Value
| Type | Description |
|---|---|
| IMyEventControllerEntityComponent |
Methods
TriggerAction(Int32)
Triggers actions for the block's toolbars. There are several toolbars (each 2 actions) for event controller block. This method triggers actions on each from start index, step 2. So for example 0 - 2 - 4 - 6 ... or 1 - 3 - 5 - 7 ...
Declaration
void TriggerAction(int startIndex)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Int32 | startIndex |
Events
ActionTriggered
Triggers when action is triggered (event triggers the first or the 2nd slot), index of the slot
Declaration
event Action<int> ActionTriggered
Event Type
| Type | Description |
|---|---|
| System.Action<System.Int32> |