Drag[en]gine Script Module DragonScript
1.23
|
Behavior element behavior used as base for class to use ECBehaviorRenderableCanvas. More...
Classes | |
class | Instance |
Behavior instance. More... | |
Public Member Functions | |
ECBehaviorInstance | createInstance (BehaviorElement element) |
Create Behavior instance. More... | |
void | dispose () |
Dispose of behavior. More... | |
ECBehaviorRenderableCanvas | getRenderableCanvas () |
Renderable canvas behavior. More... | |
ECBehaviorRenderableCanvasBase | new (BehaviorElementClass eclass, ECBehaviorRenderableCanvas renderableCanvas) |
Create behavior element class. More... | |
ECBehaviorRenderableCanvasBase | new (BehaviorElementClass eclass, ECBehaviorRenderableCanvas renderableCanvas, String id) |
Public Member Functions inherited from Dragengine.Scenery.DefaultECBehavior | |
void | assignInstanceIndex (int instanceIndex) |
Assign instance index. 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... | |
Additional Inherited Members | |
Protected Member Functions inherited from Dragengine.Scenery.DefaultECBehavior | |
DefaultECBehavior | new (BehaviorElementClass eclass) |
Create default composeable behavior with empty identifier. More... | |
DefaultECBehavior | new (BehaviorElementClass eclass, String id) |
Create default composeable behavior. More... | |
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 used as base for class to use ECBehaviorRenderableCanvas.
This behavior only provides support to create a custom canvas managed by the subclass and add it to an ECBehaviorRenderableCanvas. This avoids some repeated code. To use this base class create a class like this:
This behavior will automatically pick the order value for the canvas based on the order in which the canvas are added. Basically the number of canvas in the renderable canvas view is used as order. During calls to setCanvas() the order of the canvas is set. If you want to use a specific order call setOrder().
This behavior does not require the element class to be persistable (setPersistable).
ECBehaviorInstance Dragengine.Scenery.ECBehaviorRenderableCanvasBase.createInstance | ( | BehaviorElement | element | ) |
Create Behavior instance.
Implements Dragengine.Scenery.ECBehavior.
void Dragengine.Scenery.ECBehaviorRenderableCanvasBase.dispose | ( | ) |
Dispose of behavior.
Reimplemented from Dragengine.Scenery.DefaultECBehavior.
ECBehaviorRenderableCanvas Dragengine.Scenery.ECBehaviorRenderableCanvasBase.getRenderableCanvas | ( | ) |
Renderable canvas behavior.
ECBehaviorRenderableCanvasBase Dragengine.Scenery.ECBehaviorRenderableCanvasBase.new | ( | BehaviorElementClass | eclass, |
ECBehaviorRenderableCanvas | renderableCanvas | ||
) |
Create behavior element class.
ECBehaviorRenderableCanvasBase Dragengine.Scenery.ECBehaviorRenderableCanvasBase.new | ( | BehaviorElementClass | eclass, |
ECBehaviorRenderableCanvas | renderableCanvas, | ||
String | id | ||
) |