public abstract class EmbeddedScriptInvoker
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected GameScriptingEngine |
gameScriptingEngine |
protected int |
parentScriptId |
protected ScriptBindings |
scriptBindings |
| Constructor and Description |
|---|
EmbeddedScriptInvoker(GameScriptingEngine gameScriptingEngine) |
| Modifier and Type | Method and Description |
|---|---|
int |
getScriptId(java.lang.String filepath) |
void |
invokeAsync(int scriptId)
Queues a script for invocation in the game engine.
|
void |
invokeAsync(java.lang.String filepath)
Queues a script for invocation in the game engine.
|
abstract void |
invokeSync(int scriptId)
Invokes a script during the execution of the current script.
|
void |
invokeSync(java.lang.String filepath)
Invokes a script during the execution of the current script.
|
void |
setParentScriptId(int parentScriptId) |
void |
setScriptBindings(ScriptBindings scriptBindings) |
protected final GameScriptingEngine gameScriptingEngine
protected int parentScriptId
protected ScriptBindings scriptBindings
public EmbeddedScriptInvoker(GameScriptingEngine gameScriptingEngine)
public int getScriptId(java.lang.String filepath)
public abstract void invokeSync(int scriptId)
scriptId - The script ID to invokepublic void invokeSync(java.lang.String filepath)
filepath - The filepath of the script to invokepublic void invokeAsync(int scriptId)
scriptId - The script ID to invokepublic void invokeAsync(java.lang.String filepath)
filepath - The filepath of the script to invokepublic void setScriptBindings(ScriptBindings scriptBindings)
public void setParentScriptId(int parentScriptId)