|
Drag[en]gine Script Module DragonScript 1.32.1
|
Behavior element behavior adding world support. More...
Classes | |
| class | Factory |
| Behavior factory. More... | |
| class | Instance |
| Behavior instance. More... | |
Public Member Functions | |
| void | dispose () |
| Dispose of behavior. | |
| DecalBuilder | getDecalBuilder () |
| Decal builder used for world decals. | |
| MutableID | getIDGenerator () |
| ID Generator. | |
| ECPVector | getOrientation () |
| Orientation. | |
| ECPVector | getPosition () |
| Position. | |
| ECPWorld | getWorld () |
| World to load. | |
| Instance | instance (BehaviorElement element) |
| Get instance in element from owner element class. | |
| ECBehaviorWorld | new (BehaviorElementClass eclass) |
| Create behavior element class. | |
| ECBehaviorWorld | new (BehaviorElementClass eclass, Loaders loaders, MutableID idGenerator) |
| ECBehaviorWorld | new (BehaviorElementClass eclass, Loaders loaders, MutableID idGenerator, String id) |
| ECBehaviorWorld | new (BehaviorElementClass eclass, Loaders loaders, MutableID idGenerator, String id, String prefix) |
| ECBehaviorWorld | new (BehaviorElementClass eclass, String id) |
| Create default composeable behavior. | |
| void | setDecalBuilder (DecalBuilder decalBuilder) |
| Set decal builder used for world decals. | |
| void | setIDGenerator (MutableID idGenerator) |
| Set ID Generator. | |
Public Member Functions inherited from Dragengine.Scenery.DefaultECBehavior | |
| void | assignInstanceIndex (int instanceIndex) |
| Assign instance index. | |
| 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 ECBehaviorWorld | getBehaviorIn (BehaviorElementClass eclass) |
| Get first behavior in element class or null if absent. | |
Public Attributes | |
| DecalBuilder | pDecalBuilder |
| MutableID | pIDGenerator |
| ECPVector | pOrientation |
| ECPVector | pPosition |
| ECPWorld | pWorld |
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 world support.
Behavior loads world file and adds contained content to the the game world this element is located in.
This behavior can be added multiple times to an element. Each instance loads an own world and adds its content to the parent world. To distinguish the world behaviors an identifier is used to retrieve a specific instance. By default world class properties have no prefix. If the identifier is not empty the world element class properties have the prefix "{id}.". This can be overwritten if required. Hence to use more than one world use code like this in your subclass constructor:
You can now define the parameters to use for both worlds using for example the properties "path" for the first world and "subWorld.path" for the second world.
Element class properties have the prefix "world{(id)}.".
This behavior does require the element class to be persistable (setPersistable).
| void Dragengine.Scenery.ECBehaviorWorld.dispose | ( | ) |
Dispose of behavior.
Reimplemented from Dragengine.Scenery.DefaultECBehavior.
|
static |
Get first behavior in element class or null if absent.
| DecalBuilder Dragengine.Scenery.ECBehaviorWorld.getDecalBuilder | ( | ) |
Decal builder used for world decals.
| MutableID Dragengine.Scenery.ECBehaviorWorld.getIDGenerator | ( | ) |
ID Generator.
| ECPVector Dragengine.Scenery.ECBehaviorWorld.getOrientation | ( | ) |
Orientation.
| ECPVector Dragengine.Scenery.ECBehaviorWorld.getPosition | ( | ) |
Position.
| ECPWorld Dragengine.Scenery.ECBehaviorWorld.getWorld | ( | ) |
World to load.
| Instance Dragengine.Scenery.ECBehaviorWorld.instance | ( | BehaviorElement | element | ) |
Get instance in element from owner element class.
| ECBehaviorWorld Dragengine.Scenery.ECBehaviorWorld.new | ( | BehaviorElementClass | eclass | ) |
Create behavior element class.
Reimplemented from Dragengine.Scenery.DefaultECBehavior.
| ECBehaviorWorld Dragengine.Scenery.ECBehaviorWorld.new | ( | BehaviorElementClass | eclass, |
| Loaders | loaders, | ||
| MutableID | idGenerator | ||
| ) |
| ECBehaviorWorld Dragengine.Scenery.ECBehaviorWorld.new | ( | BehaviorElementClass | eclass, |
| Loaders | loaders, | ||
| MutableID | idGenerator, | ||
| String | id | ||
| ) |
| ECBehaviorWorld Dragengine.Scenery.ECBehaviorWorld.new | ( | BehaviorElementClass | eclass, |
| Loaders | loaders, | ||
| MutableID | idGenerator, | ||
| String | id, | ||
| String | prefix | ||
| ) |
| ECBehaviorWorld Dragengine.Scenery.ECBehaviorWorld.new | ( | BehaviorElementClass | eclass, |
| String | id | ||
| ) |
Create default composeable behavior.
Reimplemented from Dragengine.Scenery.DefaultECBehavior.
| void Dragengine.Scenery.ECBehaviorWorld.setDecalBuilder | ( | DecalBuilder | decalBuilder | ) |
Set decal builder used for world decals.
The old decal builder is disposed of if present.
| void Dragengine.Scenery.ECBehaviorWorld.setIDGenerator | ( | MutableID | idGenerator | ) |
Set ID Generator.
| DecalBuilder Dragengine.Scenery.ECBehaviorWorld.pDecalBuilder |
| MutableID Dragengine.Scenery.ECBehaviorWorld.pIDGenerator |
| ECPVector Dragengine.Scenery.ECBehaviorWorld.pOrientation |
| ECPVector Dragengine.Scenery.ECBehaviorWorld.pPosition |
| ECPWorld Dragengine.Scenery.ECBehaviorWorld.pWorld |