userSwitch derived from ygNode | Example | Source | Header |
Messages |
on | string | set the switch to on for all or a single user |
off | string | set the switch to off for all or a single user |
toggle | [string] | toggle the state of the switch for all or a single user |
Comments |
constructor userSwitch
1 create pfSwitch for the pfnode
destructor ~userSwitch
method reset
method message
1 set the switch to on for all or a single user
2 set the switch to off for all or a single user
2.0.1 for each user in the world3 toggle the state of the switch for all or a single user
3.0.0.1 for each user in the world
method on
1 remove this user from the users list
method off
1 add this user to the users list
method toggle
method setState