Drag[en]gine Script Module DragonScript  1.23
Dragengine.StateMachineSystem.SMAction Interface Reference

State machine action interface. More...

Inheritance diagram for Dragengine.StateMachineSystem.SMAction:
Dragengine.StateMachineSystem.SMActionParameterTable Dragengine.StateMachineSystem.SMActionSendGlobalEvent Dragengine.StateMachineSystem.SMActionTrigger Dragengine.StateMachineSystem.SMBlockAction

Public Member Functions

void runAction (SMContext context, Dictionary parameters)
 Run action. More...
 

Detailed Description

State machine action interface.

Actions should not store any state since state machines can be reused across different game elements using different SMContext. Always store required state in SMContext.

Member Function Documentation

◆ runAction()

void Dragengine.StateMachineSystem.SMAction.runAction ( SMContext  context,
Dictionary  parameters 
)

Run action.

Parameters
parametersDictionary with parameters of type String key and String value. Do not change the content of the dictionary as it is shared.

Implemented in Dragengine.StateMachineSystem.SMActionTrigger, Dragengine.StateMachineSystem.SMActionSendGlobalEvent, and Dragengine.StateMachineSystem.SMActionParameterTable.


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