|
Drag[en]gine Script Module DragonScript 1.35
|
Behavior element behavior adding support to access a parameter tree. More...
Classes | |
| class | Factory |
| Behavior factory. More... | |
| class | Instance |
| Behavior instance. More... | |
Public Member Functions | |
| ECPString | getDataPath () |
| Data path within the parameter tree. | |
| ECPString | getPath () |
| Parameter tree file path. | |
| String | getPrefix () |
| Prefix. | |
| Instance | instance (BehaviorElement element) |
| Get instance in element from owner element class. | |
| ECBehaviorParameterTree | new (BehaviorElementClass eclass) |
| Create behavior element class. | |
| ECBehaviorParameterTree | new (BehaviorElementClass eclass, String prefix) |
| Create behavior element class. | |
| Public Member Functions inherited from Dragengine.Scenery.DefaultECBehavior | |
| void | assignInstanceIndex (int instanceIndex) |
| Assign instance index. | |
| void | dispose () |
| Dispose of behavior. | |
| String | getBehaviorID () |
| Unique identifier of behavior. | |
| String | getID () |
| Identifier. | |
| int | getInstanceIndex () |
| Instance index. | |
| void | loadSupportedData (String identifier, PersistencyEnvironment env, FileReader reader, ECBehaviorInstance instance) |
| Load instance data of another behavior. | |
| bool | supportsBehaviorID (String identifier) |
| Behavior supports loading instance data of another behavior. | |
| Public Member Functions inherited from Dragengine.Scenery.ECBehavior | |
| ECBehaviorInstance | createInstance (BehaviorElement element) |
| Create Behavior instance. | |
Static Public Member Functions | |
| static ECBehaviorParameterTree | getBehaviorIn (BehaviorElementClass eclass) |
| Get behavior in element class or null if absent. | |
Public Attributes | |
| ECPString | pPath |
| String | pPrefix |
Additional Inherited Members | |
| Protected Member Functions inherited from Dragengine.Scenery.DefaultECBehavior | |
| void | setBehaviorID (String identifier) |
| Set behavior identifier. | |
| void | useClassNameAsBehaviorID () |
| Set behavior identifier to "<class-name>:<identifier>". | |
| void | useFullyQualifiedClassNameAsBehaviorID () |
| Set behavior identifier to "<fully-qualified-class-name>:<identifier>". | |
Behavior element behavior adding support to access a parameter tree.
The parameter tree can be loaded individually for each element instance or using the one loaded by the GWBehaviorParameterTree game world behavior. Using the game world behavior provided parameter tree multiple element data can be grouped and loaded and accessed using a tree path. When using the tree path into the game world behavior parameter tree the path should be a data tree itself but this is not mandatory. The accessor function assumes this to be true for convenience.
Element class properties have the prefix "parameterTree.".
This behavior does not require the element class to be persistable (setPersistable).
|
static |
Get behavior in element class or null if absent.
Use this method to check if a particular BehaviorElementClass contains a behavior of type ECBehaviorParameterTree.
References Dragengine.Scenery.ECBehavior.createInstance(), getBehaviorIn(), getDataPath(), getPath(), getPrefix(), instance(), new(), pPath, and pPrefix.
Referenced by getBehaviorIn().
| ECPString Dragengine.Scenery.ECBehaviorParameterTree.getDataPath | ( | ) |
Data path within the parameter tree.
Referenced by getBehaviorIn(), and getPrefix().
| ECPString Dragengine.Scenery.ECBehaviorParameterTree.getPath | ( | ) |
Parameter tree file path.
Referenced by getBehaviorIn(), and Dragengine.Scenery.ECBehaviorParameterTree.Instance.getDataPath().
| String Dragengine.Scenery.ECBehaviorParameterTree.getPrefix | ( | ) |
| Instance Dragengine.Scenery.ECBehaviorParameterTree.instance | ( | BehaviorElement | element | ) |
Get instance in element from owner element class.
Referenced by getBehaviorIn().
| ECBehaviorParameterTree Dragengine.Scenery.ECBehaviorParameterTree.new | ( | BehaviorElementClass | eclass | ) |
Create behavior element class.
Reimplemented from Dragengine.Scenery.DefaultECBehavior.
Referenced by getBehaviorIn().
| ECBehaviorParameterTree Dragengine.Scenery.ECBehaviorParameterTree.new | ( | BehaviorElementClass | eclass, |
| String | prefix ) |
Create behavior element class.
Reimplemented from Dragengine.Scenery.DefaultECBehavior.
| ECPString Dragengine.Scenery.ECBehaviorParameterTree.pPath |
Referenced by getBehaviorIn().
| String Dragengine.Scenery.ECBehaviorParameterTree.pPrefix |
Referenced by getBehaviorIn().