Drag[en]gine Script Module DragonScript
1.23
|
Behavior tree action sending a global event. More...
Public Member Functions | |
Object | getData () |
Optional parameter to send with event. More... | |
String | getEvent () |
Event to send. More... | |
GlobalEvents | getGlobalEvents () |
Global event instance to send event to. More... | |
Object | getSource () |
Optional source of event. More... | |
BTActionSendGlobalEvent | new (GlobalEvents globalEvents, String event) |
Create action. More... | |
BTActionSendGlobalEvent | new (GlobalEvents globalEvents, String event, Object source, Object data) |
Create action. More... | |
BTActionSendGlobalEvent | new (String event) |
Create action using BaseGameApp global events. More... | |
BTActionSendGlobalEvent | new (String event, Object source, Object data) |
Create action using BaseGameApp global events. More... | |
BTResult | runAction (BTContext context, Dictionary parameters) |
Run action. More... | |
void | setData (Object data) |
Set optional parameter to send with event. More... | |
void | setEvent (String event) |
Set event to send. More... | |
void | setGlobalEvents (GlobalEvents globalEvents) |
Set global event instance to send event to. More... | |
void | setSource (Object source) |
Set optional source of event. More... | |
Public Attributes | |
Object | pData |
String | pEvent |
GlobalEvents | pGlobalEvents |
Object | pSource |
Behavior tree action sending a global event.
This action always returns BTResult.success.
Object Dragengine.BehaviorTreeSystem.BTActionSendGlobalEvent.getData | ( | ) |
Optional parameter to send with event.
String Dragengine.BehaviorTreeSystem.BTActionSendGlobalEvent.getEvent | ( | ) |
Event to send.
GlobalEvents Dragengine.BehaviorTreeSystem.BTActionSendGlobalEvent.getGlobalEvents | ( | ) |
Global event instance to send event to.
Object Dragengine.BehaviorTreeSystem.BTActionSendGlobalEvent.getSource | ( | ) |
Optional source of event.
BTActionSendGlobalEvent Dragengine.BehaviorTreeSystem.BTActionSendGlobalEvent.new | ( | GlobalEvents | globalEvents, |
String | event | ||
) |
Create action.
BTActionSendGlobalEvent Dragengine.BehaviorTreeSystem.BTActionSendGlobalEvent.new | ( | GlobalEvents | globalEvents, |
String | event, | ||
Object | source, | ||
Object | data | ||
) |
Create action.
BTActionSendGlobalEvent Dragengine.BehaviorTreeSystem.BTActionSendGlobalEvent.new | ( | String | event | ) |
Create action using BaseGameApp global events.
BTActionSendGlobalEvent Dragengine.BehaviorTreeSystem.BTActionSendGlobalEvent.new | ( | String | event, |
Object | source, | ||
Object | data | ||
) |
Create action using BaseGameApp global events.
BTResult Dragengine.BehaviorTreeSystem.BTActionSendGlobalEvent.runAction | ( | BTContext | context, |
Dictionary | parameters | ||
) |
Run action.
parameters | Dictionary with parameters of type String key and String value. Do not change the content of the dictionary as it is shared. |
Implements Dragengine.BehaviorTreeSystem.BTAction.
void Dragengine.BehaviorTreeSystem.BTActionSendGlobalEvent.setData | ( | Object | data | ) |
Set optional parameter to send with event.
void Dragengine.BehaviorTreeSystem.BTActionSendGlobalEvent.setEvent | ( | String | event | ) |
Set event to send.
void Dragengine.BehaviorTreeSystem.BTActionSendGlobalEvent.setGlobalEvents | ( | GlobalEvents | globalEvents | ) |
Set global event instance to send event to.
void Dragengine.BehaviorTreeSystem.BTActionSendGlobalEvent.setSource | ( | Object | source | ) |
Set optional source of event.
Object Dragengine.BehaviorTreeSystem.BTActionSendGlobalEvent.pData |
String Dragengine.BehaviorTreeSystem.BTActionSendGlobalEvent.pEvent |
GlobalEvents Dragengine.BehaviorTreeSystem.BTActionSendGlobalEvent.pGlobalEvents |
Object Dragengine.BehaviorTreeSystem.BTActionSendGlobalEvent.pSource |