|
Drag[en]gine Script Module DragonScript 1.32.1
|
Behavior factory. More...
Public Member Functions | |
| ECBehavior | addBehavior (BehaviorElementClass eclass, String id, Dictionary parameters) |
| Add behavior to element class. | |
| Factory | new () |
Public Member Functions inherited from Dragengine.Scenery.DefaultBehaviorFactory | |
| void | assertIdEmpty (String id) |
| Assert id is empty string. | |
| String | factoryId () |
| Unique identifier of factory. | |
| BindingManager | getBindingManagerFor (String value) |
| Binding manager matching value. | |
| CommandManager | getCommandManagerFor (String value) |
| Command manager matching value. | |
| BehaviorFactoryHelper | getHelper () |
| Helper to use. | |
| ECBehaviorPlayerControllable.Tracker | getPlayerControllableActorFor (String value) |
| Player controllable actor matching value. | |
| ECBehaviorPlayerControllable.Tracker | getPlayerControlledActorFor (String value) |
| Trigger table matching value. | |
| SimpleConversationConverter | getSimpleConversationConverterFor (String value) |
| Simple conversation converter matching value. | |
| ConversationPlaybackSubTitle | getSubTitleFor (String value) |
| Conversation playback subtitle matching value. | |
| GuiTheme | getSubtitleThemeFor (String value) |
| Subtitle gui theme matching value. | |
| TranslationManager | getTranslationManagerFor (String value) |
| Translation manager matching value. | |
| TSTriggerTable | getTriggerTableFor (String value) |
| Trigger table matching value. | |
| DefaultBehaviorFactory | new (String id) |
| void | setHelper (BehaviorFactoryHelper helper) |
| Set helper to use. | |
Additional Inherited Members | |
Public Attributes inherited from Dragengine.Scenery.DefaultBehaviorFactory | |
| String | pFactoryId |
| BehaviorFactoryHelper | pHelper |
Behavior factory.
Automatically assigns these behaviors if present before adding:
Example XML element class:
Element class properties added by the behavior can also be set directly inside the tag be removing the property name prefix and starting with a "." (for example ".propertyName").
| ECBehavior Dragengine.Scenery.ECBehaviorVRHandPose.Factory.addBehavior | ( | BehaviorElementClass | eclass, |
| String | id, | ||
| Dictionary | parameters | ||
| ) |
Add behavior to element class.
Some behaviors support parameters. Parameters are provided as a Dictionary with parameter name as String key and parameter value as Object value. The type and format of value depends on the parameter name. Usually parameters indicate a dependency behavior to use. In this case the parameter name indicates the target behavior slot to assign the behavior to and the value is a String with the identifier of the behavior to assign. The target slot defines what what existing behaviors are matched against this identifier. Value can be also null to assign the null behavior.
| eclass | Element class to add behavior to. |
| id | Identifier to use. Has to be unique amongst same type behaviors. |
| parameters | Parameters as Dictionary with String name and Object value. |
Implements Dragengine.Scenery.BehaviorFactory.
| Factory Dragengine.Scenery.ECBehaviorVRHandPose.Factory.new | ( | ) |