Wraps a nkScripts::Script and offers functions for use in scripting.
More...
Wraps a nkScripts::Script and offers functions for use in scripting.
◆ updateEnvironment()
Updates a given environment and set it up to use all functions wrapped by this wrapper.
- Parameters
-
env | The environment to set up. |
◆ constructor()
static void* nkAstraeus::nkScriptsWrap::ScriptWrapper::constructor |
( |
const nkScripts::DataStack & |
stack | ) |
|
|
static |
Wrapper function for the constructor of the user type.
local t = nkScripts.Script.new() ;
- Parameters
-
stack | The parameter stack. |
- Returns
- An output value with the user type and data allocated.
◆ destructor()
static void nkAstraeus::nkScriptsWrap::ScriptWrapper::destructor |
( |
void * |
toDestroy | ) |
|
|
static |
Wrapper function for the destructor of the user type.
- Parameters
-
toDestroy | The data that has to be freed. |
◆ getTargetInterpreter()
◆ getName()
◆ getSources()
◆ getLastCompilationResult()
◆ setTargetInterpreter()
◆ setName()
Wrapper function for nkScripts::Script::setName().
s:setName('myScript') ;
- Parameters
-
stack | The parameter stack. |
- Returns
- The output value, empty.
◆ setSources()
◆ load()
◆ unload()
◆ call()
Utility function to allow to call scripts and execute them.
nkScripts.call("scriptName") ;
This can be used to execute scripts from a script. If anything bad happens, the error will be logged from nkScripts::LogManager.
- Parameters
-
stack | The parameter stack, with the name of the script to execute (string). |
- Returns
- The output value, empty.
The documentation for this class was generated from the following file:
- Documentation/Headers/NilkinsAstraeus/Scripts/nkScriptsWrap/Scripts/ScriptWrapper.h