LuaScript

Implements an interface to the lua_State* variable with automatic garbage management and some basic functionality.

Constructors

this
this(string source, const(char*) name)

Initializes a Lua script from the provided source code.

Destructor

~this
~this()

Automatically deallocates the lua_State variable.

Members

Functions

getState
lua_State* getState()

Returns the lua_State variable for any manual use.

runMain
LuaVar runMain()

Executes the main function of the scipt.

Variables

isLoaded
bool isLoaded;
Undocumented in source.
source
string source;
Undocumented in source.
state
lua_State* state;
Undocumented in source.

Meta