Artenus 2D Framework
Artenus Reference
Interface for classes that interpret and execute scripts. If your game supports scripting, you can implement this interface to take advantage of the script console user interface.

See Also:

public interface ScriptHost

Method Summary

Modifier and TypeMethod and Description
public Objectexecute(String command)
Executes a script code
public voidonExit()
Called when the script console is closing.

Method Detail

execute
public Object execute(
    String command
)
Executes a script code
Parameters:
commandThe command or piece of code
Returns:
The result or null if there is not result
onExit
public void onExit()
Called when the script console is closing. It should free all resources allocated to the script host.