public interface ScriptInvocationListener
| Modifier and Type | Method and Description |
|---|---|
boolean |
callOnGameThread()
Returns if this
ScriptInvocationListener should be notified on
the game thread |
default void |
onScriptBegin(int scriptId)
Called just before a script begins execution.
|
default void |
onScriptCancelled(int scriptId)
Called when a script is cancelled while in the invoke queue.
|
void |
onScriptException(int scriptId,
java.lang.Exception e)
Called when an exception occurs during script execution
|
void |
onScriptSkipped(int scriptId)
Called when a script is skipped during execution
|
void |
onScriptSuccess(int scriptId,
ScriptExecutionResult executionResult)
Called when a script successfully completes
|
default void onScriptBegin(int scriptId)
scriptId - The script iddefault void onScriptCancelled(int scriptId)
scriptId - The script idvoid onScriptSuccess(int scriptId,
ScriptExecutionResult executionResult)
scriptId - The script idexecutionResult - The variable bindings after executionvoid onScriptSkipped(int scriptId)
scriptId - The script idvoid onScriptException(int scriptId,
java.lang.Exception e)
scriptId - The script ide - The exception that occurredboolean callOnGameThread()
ScriptInvocationListener should be notified on
the game threadGameScriptingEngine thread pool