Drag[en]gine Script Module DragonScript
1.23
|
Behavior element behavior adding sky support. More...
Classes | |
class | Instance |
Behavior instance. More... | |
Public Member Functions | |
ECBehaviorInstance | createInstance (BehaviorElement element) |
Create Behavior instance. More... | |
ECPString | getControllerPlayback () |
Name of playback controller or empty string if not used. More... | |
LayerMask | getLayerMask () |
Layer mask. More... | |
ECPInteger | getOrder () |
Order. More... | |
ECPSky | getSky () |
Sky resource. More... | |
Instance | instance (BehaviorElement element) |
Get instance in element from owner element class. More... | |
ECBehaviorSky | new (BehaviorElementClass eclass) |
Create behavior element class. More... | |
ECBehaviorSky | new (BehaviorElementClass eclass, Loaders loaders) |
Create behavior element class. More... | |
ECBehaviorSky | new (BehaviorElementClass eclass, Loaders loaders, String prefix) |
Create behavior element class. More... | |
ECBehaviorSky | new (BehaviorElementClass eclass, String prefix) |
Create behavior element class. More... | |
void | setLayerMask (LayerMask layerMask) |
Set layer mask. More... | |
Public Member Functions inherited from Dragengine.Scenery.DefaultECBehavior | |
void | assignInstanceIndex (int instanceIndex) |
Assign instance index. More... | |
void | dispose () |
Dispose of behavior. More... | |
String | getBehaviorID () |
Unique identifier of behavior. More... | |
String | getID () |
Identifier. More... | |
int | getInstanceIndex () |
Instance index. More... | |
void | loadSupportedData (String identifier, PersistencyEnvironment env, FileReader reader, ECBehaviorInstance instance) |
Load instance data of another behavior. More... | |
bool | supportsBehaviorID (String identifier) |
Behavior supports loading instance data of another behavior. More... | |
Static Public Member Functions | |
static ECBehaviorSky | getBehaviorIn (BehaviorElementClass eclass) |
Get behavior in element class or null if absent. More... | |
static Instance | getInstanceIn (BehaviorElement element) |
Get instance in element or null if absent. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from Dragengine.Scenery.DefaultECBehavior | |
void | setBehaviorID (String identifier) |
Set behavior identifier. More... | |
void | useClassNameAsBehaviorID () |
Set behavior identifier to "<class-name>:<identifier>". More... | |
void | useFullyQualifiedClassNameAsBehaviorID () |
Set behavior identifier to "<fully-qualified-class-name>:<identifier>". More... | |
Behavior element behavior adding sky support.
Adds a SkyInstance resources to the world with support to mainpulate controllers. If a playback controller is set it is updated with the elapsed time. Other behaviors can update individual named controllers to add special effects.
Multiple skies can be added to a game world by different elements. In this case the graphic module concatenates them as if one single sky is used. This allows to split skies into multiple sky instances to add individual effects easily. To ensure the correct drawing order each sky is required to have a unique order value. Higher order values are rendered ontop of lower order values.
This behavior can be present only once in the behavior element.
Element class properties have the prefix "sky.".
This behavior supports persistable element class (setPersistable).
ECBehaviorInstance Dragengine.Scenery.ECBehaviorSky.createInstance | ( | BehaviorElement | element | ) |
Create Behavior instance.
Implements Dragengine.Scenery.ECBehavior.
|
static |
Get behavior in element class or null if absent.
Use this method to check if a particular BehaviorElementClass contains a behavior of type ECBehaviorComponent.
ECPString Dragengine.Scenery.ECBehaviorSky.getControllerPlayback | ( | ) |
Name of playback controller or empty string if not used.
|
static |
Get instance in element or null if absent.
Use this method to check if a particular BehaviorElement contains a behavior instance of type ECBehaviorSky.Instance .
LayerMask Dragengine.Scenery.ECBehaviorSky.getLayerMask | ( | ) |
Layer mask.
ECPInteger Dragengine.Scenery.ECBehaviorSky.getOrder | ( | ) |
Order.
Instance Dragengine.Scenery.ECBehaviorSky.instance | ( | BehaviorElement | element | ) |
Get instance in element from owner element class.
ECBehaviorSky Dragengine.Scenery.ECBehaviorSky.new | ( | BehaviorElementClass | eclass | ) |
Create behavior element class.
Reimplemented from Dragengine.Scenery.DefaultECBehavior.
ECBehaviorSky Dragengine.Scenery.ECBehaviorSky.new | ( | BehaviorElementClass | eclass, |
Loaders | loaders | ||
) |
Create behavior element class.
ECBehaviorSky Dragengine.Scenery.ECBehaviorSky.new | ( | BehaviorElementClass | eclass, |
Loaders | loaders, | ||
String | prefix | ||
) |
Create behavior element class.
ECBehaviorSky Dragengine.Scenery.ECBehaviorSky.new | ( | BehaviorElementClass | eclass, |
String | prefix | ||
) |
Create behavior element class.
Reimplemented from Dragengine.Scenery.DefaultECBehavior.
void Dragengine.Scenery.ECBehaviorSky.setLayerMask | ( | LayerMask | layerMask | ) |
Set layer mask.