HoverRace
2.0
|
Basic restricted environment for potentially untrusted code. More...
#include <RuntimeEnv.h>
Classes | |
class | LogStream |
class | LogStreamBuf |
Public Member Functions | |
RuntimeEnv (Script::Core &scripting) | |
virtual | ~RuntimeEnv () |
Public Member Functions inherited from HoverRace::Script::Env | |
Env (Core &scripting) | |
Constructor. More... | |
Env (const Env &)=delete | |
virtual | ~Env () |
Env & | operator= (const Env &)=delete |
bool | RunScript (const Util::OS::path_t &filename) |
Execute a script from a file. More... | |
Private Types | |
using | SUPER = Script::Env |
Private Attributes | |
Script::Core::OutHandle | outHandle |
Additional Inherited Members | |
Protected Member Functions inherited from HoverRace::Script::Env | |
void | CopyGlobals () |
Copy the global environment into the current table at the top of the stack. More... | |
template<class ReturnPolicy = Core::PrintReturn> | |
int | Execute (const Core::Chunk &chunk, ReturnPolicy rp=ReturnPolicy()) |
Execute a chunk of code in the current environment. More... | |
Core & | GetScripting () const |
lua_State * | GetState () const |
virtual void | InitEnv ()=0 |
Initialize the environment in which scripts will run in. More... | |
void | LogScriptError (const Script::ScriptExn &ex) |
void | PushEnv () |
Push the environment onto the stack. More... | |
void | SetHelpHandler (Help::HelpHandler *helpHandler) |
Static Protected Member Functions inherited from HoverRace::Script::Env | |
static Core::Chunk | LoadChunkFromFile (const Util::OS::path_t &filename) |
Load a chunk from a file. More... | |
Basic restricted environment for potentially untrusted code.
|
private |
HoverRace::Client::HoverScript::RuntimeEnv::RuntimeEnv | ( | Script::Core & | scripting | ) |
|
virtual |
|
private |