Drag[en]gine Script Module DragonScript 1.35
Loading...
Searching...
No Matches
Dragengine.Scenery.ECBehaviorParameterTree Class Reference

Behavior element behavior adding support to access a parameter tree. More...

Inheritance diagram for Dragengine.Scenery.ECBehaviorParameterTree:
Dragengine.Scenery.DefaultECBehavior Dragengine.Scenery.ECBehavior Dragengine.Scenery.BehaviorCompatiblePersistency

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>".

Detailed Description

Behavior element behavior adding support to access a parameter tree.

Version
1.35

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).

See also
https://developer.dragondreams.ch/wiki/doku.php/dragengine:modules:dragonscript:behavior_parametertree

Member Function Documentation

◆ getBehaviorIn()

ECBehaviorParameterTree Dragengine.Scenery.ECBehaviorParameterTree.getBehaviorIn ( BehaviorElementClass eclass)
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().

◆ getDataPath()

ECPString Dragengine.Scenery.ECBehaviorParameterTree.getDataPath ( )

Data path within the parameter tree.

Referenced by getBehaviorIn(), and getPrefix().

◆ getPath()

ECPString Dragengine.Scenery.ECBehaviorParameterTree.getPath ( )

◆ getPrefix()

String Dragengine.Scenery.ECBehaviorParameterTree.getPrefix ( )

Prefix.

References getDataPath().

Referenced by getBehaviorIn().

◆ instance()

Instance Dragengine.Scenery.ECBehaviorParameterTree.instance ( BehaviorElement element)

Get instance in element from owner element class.

Referenced by getBehaviorIn().

◆ new() [1/2]

ECBehaviorParameterTree Dragengine.Scenery.ECBehaviorParameterTree.new ( BehaviorElementClass eclass)

Create behavior element class.

Reimplemented from Dragengine.Scenery.DefaultECBehavior.

Referenced by getBehaviorIn().

◆ new() [2/2]

ECBehaviorParameterTree Dragengine.Scenery.ECBehaviorParameterTree.new ( BehaviorElementClass eclass,
String prefix )

Create behavior element class.

Reimplemented from Dragengine.Scenery.DefaultECBehavior.

Member Data Documentation

◆ pPath

ECPString Dragengine.Scenery.ECBehaviorParameterTree.pPath

Referenced by getBehaviorIn().

◆ pPrefix

String Dragengine.Scenery.ECBehaviorParameterTree.pPrefix

Referenced by getBehaviorIn().


The documentation for this class was generated from the following file: