◆ init()
bool Sword25::LuaScriptEngine::init |
( |
| ) |
|
|
overridevirtual |
Initializes the scripting engine
- Returns
- Returns true if successful, otherwise false.
Implements Sword25::ScriptEngine.
◆ executeFile()
bool Sword25::LuaScriptEngine::executeFile |
( |
const Common::String & |
fileName | ) |
|
|
overridevirtual |
Loads a script file and executes it
- Parameters
-
FileName | The filename of the script |
- Returns
- Returns true if successful, otherwise false.
Implements Sword25::ScriptEngine.
◆ executeString()
bool Sword25::LuaScriptEngine::executeString |
( |
const Common::String & |
code | ) |
|
|
overridevirtual |
Execute a string of script code
- Parameters
-
Code | A string of script code |
- Returns
- Returns true if successful, otherwise false.
Implements Sword25::ScriptEngine.
◆ getScriptObject()
void* Sword25::LuaScriptEngine::getScriptObject |
( |
| ) |
|
|
inlineoverridevirtual |
◆ setCommandLine()
void Sword25::LuaScriptEngine::setCommandLine |
( |
const Common::StringArray & |
commandLineParameters | ) |
|
|
override |
Makes the command line parameters for the scripting environment available
- Parameters
-
CommandLineParameters | An array containing all the command line parameters |
◆ persist()
◆ unpersist()
The documentation for this class was generated from the following file: