Enfusion Script API
Loading...
Searching...
No Matches
Public Member Functions | List of all members
ActionManager Interface Reference

ActionManager holds information about states of registered Contexts and Actions. More...

Inheritance diagram for ActionManager:
[legend]

Public Member Functions

proto external void SetDebug (int debugMode)
 Show debug info via DbgUI.
 
proto external bool ActivateContext (string contextName, int duration=0)
 
proto external bool IsContextActive (string contextName)
 
proto external void SetContextDebug (string contextName, bool bDebug)
 
proto external bool ActivateAction (string actionName, int duration=0)
 
proto external bool IsActionActive (string actionName)
 
proto external float GetActionValue (string actionName)
 Return normalized value of action.
 
proto external EActionValueType GetActionInputType (string actionName)
 Return type of last input contributing to this action.
 
proto external bool GetActionTriggered (string actionName)
 Return TRUE if value of action is above threshold(0.99) and is active.
 
proto external void SetActionValue (string actionName, float value)
 
proto external int GetActionCount ()
 
proto external string GetActionName (int actionIndex)
 
proto external void AddActionListener (string actionName, EActionTrigger trigger, ActionListenerCallback callback)
 
proto external bool RemoveActionListener (string actionName, EActionTrigger trigger, ActionListenerCallback callback)
 

Detailed Description

ActionManager holds information about states of registered Contexts and Actions.

Member Function Documentation

◆ ActivateAction()

proto external bool ActionManager.ActivateAction ( string  actionName,
int  duration = 0 
)

◆ ActivateContext()

proto external bool ActionManager.ActivateContext ( string  contextName,
int  duration = 0 
)

◆ AddActionListener()

proto external void ActionManager.AddActionListener ( string  actionName,
EActionTrigger  trigger,
ActionListenerCallback  callback 
)

◆ GetActionCount()

proto external int ActionManager.GetActionCount ( )

◆ GetActionInputType()

proto external EActionValueType ActionManager.GetActionInputType ( string  actionName)

Return type of last input contributing to this action.

◆ GetActionName()

proto external string ActionManager.GetActionName ( int  actionIndex)

◆ GetActionTriggered()

proto external bool ActionManager.GetActionTriggered ( string  actionName)

Return TRUE if value of action is above threshold(0.99) and is active.

◆ GetActionValue()

proto external float ActionManager.GetActionValue ( string  actionName)

Return normalized value of action.

◆ IsActionActive()

proto external bool ActionManager.IsActionActive ( string  actionName)

◆ IsContextActive()

proto external bool ActionManager.IsContextActive ( string  contextName)

◆ RemoveActionListener()

proto external bool ActionManager.RemoveActionListener ( string  actionName,
EActionTrigger  trigger,
ActionListenerCallback  callback 
)

◆ SetActionValue()

proto external void ActionManager.SetActionValue ( string  actionName,
float  value 
)

◆ SetContextDebug()

proto external void ActionManager.SetContextDebug ( string  contextName,
bool  bDebug 
)

◆ SetDebug()

proto external void ActionManager.SetDebug ( int  debugMode)

Show debug info via DbgUI.


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