Drag[en]gine Script Module DragonScript 1.32.1
Loading...
Searching...
No Matches
Dragengine.Scenery.ECBehaviorPlaySoundRandom.Factory Class Reference

Behavior factory. More...

Inheritance diagram for Dragengine.Scenery.ECBehaviorPlaySoundRandom.Factory:
Dragengine.Scenery.ECBehaviorPlaySound.Factory Dragengine.Scenery.DefaultBehaviorFactory Dragengine.Scenery.BehaviorFactory

Public Member Functions

ECBehavior addBehavior (BehaviorElementClass eclass, String id, Dictionary parameters)
 Add behavior to element class.
 
String factoryId ()
 Unique identifier of factory.
 
Factory new ()
 
- Public Member Functions inherited from Dragengine.Scenery.DefaultBehaviorFactory
void assertIdEmpty (String id)
 Assert id is empty string.
 
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
 

Detailed Description

Behavior factory.

Version
1.25
See also
ECBehaviorPlaySound::Factory

Example XML element class:

<behavior type='ECBehaviorPlaySoundRandom'>
...
</behavior>
<!-- for adding multiple behaviors use unique identifiers -->
<behavior type='ECBehaviorPlaySoundRandom' id='second'>
...
</behavior>

Member Function Documentation

◆ addBehavior()

ECBehavior Dragengine.Scenery.ECBehaviorPlaySoundRandom.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.

Parameters
eclassElement class to add behavior to.
idIdentifier to use. Has to be unique amongst same type behaviors.
parametersParameters as Dictionary with String name and Object value.

Reimplemented from Dragengine.Scenery.ECBehaviorPlaySound.Factory.

◆ factoryId()

String Dragengine.Scenery.ECBehaviorPlaySoundRandom.Factory.factoryId ( )

Unique identifier of factory.

Should be the class name of the behavior. Factory identifiers are case sensitive.

Reimplemented from Dragengine.Scenery.DefaultBehaviorFactory.

◆ new()

Factory Dragengine.Scenery.ECBehaviorPlaySoundRandom.Factory.new ( )

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