Adding getState, setState, setObject, delObject as part of the ScriptEngine. These are only delegates without copy/paste of the logic.

Adding getState, setState, setObject, delObject as part of the ScriptEngine.
These are only delegates without copy/paste of the logic.

Now you can do this:

scriptEngine.setState(xxx); in scripts that not directly called by the scriptengine, eg. helper scripts.