#ifndef GAME_SCRIPT_SCRIPTMANAGER_H #define GAME_SCRIPT_SCRIPTMANAGER_H #include #include #include #include #include #include namespace ESMS { struct ESMStore; } namespace Compiler { class Context; } namespace Interpreter { class Context; } namespace MWScript { struct Locals; class ScriptManager { Compiler::StreamErrorHandler mErrorHandler; const ESMS::ESMStore& mStore; bool mVerbose; Compiler::Context& mCompilerContext; Compiler::FileParser mParser; std::map > mScripts; bool compile (const std::string& name); public: ScriptManager (const ESMS::ESMStore& store, bool verbose, Compiler::Context& compilerContext); void run (const std::string& name/*, Interpreter::Context& interpreterContext*/, Locals& locals); }; }; #endif