Drag[en]gine Script Module DragonScript
1.21
|
Generic boolean behavior listener. More...
Public Member Functions | |
void | disabled () |
State changed to disabled. More... | |
void | enabled () |
State changed to enabled. More... | |
Generic boolean behavior listener.
Various behaviors react to boolean state changes or expose listeners of boolean nature. This interface provides an abstraction over these various listeners allowing to use them without a lot of extra work.
To use this interface create a subclass implementing it. Create an instance of the subclass. This instance you can then use with appropriate behavior listener implementation accepting a BooleanBehaviorListener. For example for ECBehaviorTriggered this would be:
There is an alternative version you can use not requiring to use listener factories. This version is useful if the same listener is to be used for different boolean sources. The code below shows this version:
void Dragengine.Scenery.BooleanBehaviorListener.disabled | ( | ) |
State changed to disabled.
Implemented in Dragengine.Scenery.ECBehaviorSkinSwitcher.BooleanListener.
void Dragengine.Scenery.BooleanBehaviorListener.enabled | ( | ) |
State changed to enabled.
Implemented in Dragengine.Scenery.ECBehaviorSkinSwitcher.BooleanListener.