OpenMW
|
#include <scriptmanagerimp.hpp>
Public Member Functions | |
ScriptManager (const MWWorld::ESMStore &store, bool verbose, Compiler::Context &compilerContext, int warningsMode, const std::vector< std::string > &scriptBlacklist) | |
virtual void | run (const std::string &name, Interpreter::Context &interpreterContext) |
Run the script with the given name (compile first, if not compiled yet) More... | |
virtual bool | compile (const std::string &name) |
virtual std::pair< int, int > | compileAll () |
virtual const Compiler::Locals & | getLocals (const std::string &name) |
Return locals for script name. More... | |
virtual GlobalScripts & | getGlobalScripts () |
Public Member Functions inherited from MWBase::ScriptManager | |
ScriptManager () | |
virtual | ~ScriptManager () |
Private Types | |
typedef std::pair< std::vector < Interpreter::Type_Code > , Compiler::Locals > | CompiledScript |
typedef std::map< std::string, CompiledScript > | ScriptCollection |
Private Attributes | |
Compiler::StreamErrorHandler | mErrorHandler |
const MWWorld::ESMStore & | mStore |
bool | mVerbose |
Compiler::Context & | mCompilerContext |
Compiler::FileParser | mParser |
Interpreter::Interpreter | mInterpreter |
bool | mOpcodesInstalled |
ScriptCollection | mScripts |
GlobalScripts | mGlobalScripts |
std::map< std::string, Compiler::Locals > | mOtherLocals |
std::vector< std::string > | mScriptBlacklist |
|
private |
|
private |
MWScript::ScriptManager::ScriptManager | ( | const MWWorld::ESMStore & | store, |
bool | verbose, | ||
Compiler::Context & | compilerContext, | ||
int | warningsMode, | ||
const std::vector< std::string > & | scriptBlacklist | ||
) |
|
virtual |
Compile script with the given namen
Implements MWBase::ScriptManager.
Compile all scripts
Implements MWBase::ScriptManager.
|
virtual |
Implements MWBase::ScriptManager.
|
virtual |
Return locals for script name.
Implements MWBase::ScriptManager.
|
virtual |
Run the script with the given name (compile first, if not compiled yet)
Implements MWBase::ScriptManager.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |