| 1 |
NAME SoOnOff SoOnOff "" { engine that functions as an on/off switch } |
| 2 |
|
| 3 |
DESC { |
| 4 |
This engine has three triggers as input and two Boolean values as output. |
| 5 |
The \visOn\. output is a switch that can be turned \von\. or \voff\. by |
| 6 |
triggering the corresponding input. |
| 7 |
You can toggle the value by triggering the \vtoggle\. input. |
| 8 |
By default \visOn\. is FALSE. |
| 9 |
The \visOff\. output value is the inverse of \visOn\. |
| 10 |
} |
| 11 |
|
| 12 |
INCLUDE engines/SoOnOff.h |
| 13 |
|
| 14 |
INPUT on { Turn the \visOn\. switch on. } |
| 15 |
INPUT off { Turn the \visOn\. switch off. } |
| 16 |
INPUT toggle { Toggle the switch value. } |
| 17 |
|
| 18 |
OUTPUT isOn { Switch value. } |
| 19 |
OUTPUT isOff { The inverse of \visOn\.. } |
| 20 |
|
| 21 |
METHOD Create SoOnOff() { Constructor. } |
| 22 |
|
| 23 |
ALSO { SoEngineOutput } |