public class GroovyGameScriptingEngine
extends org.mini2Dx.miniscript.core.GameScriptingEngine
GameScriptingEngine for Groovy-based scripts| Constructor and Description |
|---|
GroovyGameScriptingEngine()
Constructs a scripting engine backed by a thread pool with the maximum
amount of concurrent scripts set to the amount of processors + 1;
|
GroovyGameScriptingEngine(int maxConcurrentScripts)
Constructs a scripting engine backed by a thread pool.
|
| Modifier and Type | Method and Description |
|---|---|
protected org.mini2Dx.miniscript.core.ScriptExecutorPool<?> |
createScriptExecutorPool(int poolSize,
boolean sandboxing) |
boolean |
isSandboxingSupported() |
compileScript, compileScript, dispose, invokeCompiledScript, invokeCompiledScript, invokeCompiledScriptLocally, invokeCompiledScriptLocally, invokeScript, invokeScript, run, setCancelReallocatedFutures, skipAllGameFutures, skipAllScripts, skipScript, updatepublic GroovyGameScriptingEngine()
public GroovyGameScriptingEngine(int maxConcurrentScripts)
maxConcurrentScripts - The maximum amount of concurrently running scripts. Note this
is a 'requested' amount and may be less due to the amount of
available processors on the player's machine.protected org.mini2Dx.miniscript.core.ScriptExecutorPool<?> createScriptExecutorPool(int poolSize,
boolean sandboxing)
createScriptExecutorPool in class org.mini2Dx.miniscript.core.GameScriptingEnginepublic boolean isSandboxingSupported()
isSandboxingSupported in class org.mini2Dx.miniscript.core.GameScriptingEngine