Scripting Methods |
The Scripting type exposes the following members.
| Name | Description | |
|---|---|---|
| CtcAccessory | Gets a reference to an accessory object. | |
| CtcBlock | Gets a reference to a block object. | |
| CtcBoundEngine | Gets a reference to an engine object guaranteed to be bound to a slot. | |
| CtcButton | Gets a reference to a button object. | |
| CtcEngine | Gets a reference to an engine object. | |
| CtcEventScript | Gets a reference to a layout event script object. | |
| CtcLabel | Gets a reference to a label object. | |
| CtcRoute | Gets a reference to a route object. | |
| CtcSensor | Gets a reference to a sensor object. | |
| CtcSequence | Gets a reference to a layout sequence object. | |
| CtcSignal | Gets a reference to a signal object. | |
| CtcStepScript | Gets a reference to a layout step script object. | |
| CtcTrack | Gets a reference to a track object. | |
| CtcTurnout | Gets a reference to a track object guaranteed to be a turnout. | |
| Delay | Introduces a delay in script execution. | |
| OnEvent(ScriptingEventsList, CancellationToken) | Creates an adhoc event binding to act on. | |
| OnEvent(ScriptingEventsList, FuncScriptEventArgs, Task, CancellationToken) | Creates an adhoc event binding to act on. | |
| PlaySound | Plays a sound file. | |
| PostCallStack | Posts the scripting call stack to the CTC event stream. | |
| PostMsg | Posts a text message to the CTC event stream. | |
| WithTimeout | Adds a timeout expiration to a given awaitable task. |