DXScript::runPreLoadedScript

Description
Run a pre-loaded script, loaded by DXScript::preLoadScript. int DXScript::runPreLoadedScript(const char *_identifier)

Parameters


Returns
Zero for success, nonzero for failure. For more detail of a failure, this function returns a member of the eScriptReturns enumeration.

Example
DXScript *dxscr = new DXScript; // Pre-load a script to be executed later. dxscr->preLoadScript("test_pre_load", "scripts/callToMainByFunc", "main"); // Run the pre-loaded script by providing its identifier. dxscr->runPreLoadedScript("test_pre_load");