Module

Undocumented in source.

Constructors

this
this(ScriptEngine engine, asIScriptModule* mod)
Undocumented in source.

Destructor

~this
~this()
Undocumented in source.

Members

Functions

addScriptSection
void addScriptSection(string name, string code, int lineOffset)

Adds a script section to the module

build
void build()

Builds scripts

discard
void discard()

Discards the module, removing it from the engine

getEngine
ScriptEngine getEngine()

Gets the engine this module belongs to

getFunctionByDecl
Function getFunctionByDecl(string decl)

Gets function by declaration

getFunctionByIndex
Function getFunctionByIndex(asUINT index)

Gets a function by index

getFunctionByName
Function getFunctionByName(string name)

Gets function by name

getFunctionCount
asUINT getFunctionCount()

Gets function count

getName
string getName()

Gets the name of the module

loadByteCode
void loadByteCode(ubyte[] buffer, bool* wasDebugInfoStripped)

Loads bytecode

saveByteCode
ubyte[] saveByteCode(bool stripdebugInfo)

Saves bytecode to a ubyte array

setName
void setName(string name)

Sets the name of the module

Variables

mod
asIScriptModule* mod;
Undocumented in source.

Meta