Public Member Functions | |
Lua () | |
Lua (LuaState lState) | |
void | Close () |
LuaFunction | LoadString (string chunk, string name) |
LuaFunction | LoadString (byte[] chunk, string name) |
LuaFunction | LoadFile (string fileName) |
object[] | DoString (byte[] chunk, string chunkName="chunk") |
Executes a Lua chunk and returns all the chunk's return values in an array. More... | |
object[] | DoString (string chunk, string chunkName="chunk") |
Executes a Lua chunk and returns all the chunk's return values in an array. More... | |
object[] | DoFile (string fileName) |
double | GetNumber (string fullPath) |
string | GetString (string fullPath) |
LuaTable | GetTable (string fullPath) |
object | GetTable (Type interfaceType, string fullPath) |
LuaFunction | GetFunction (string fullPath) |
void | RegisterLuaDelegateType (Type delegateType, Type luaDelegateType) |
void | RegisterLuaClassType (Type klass, Type luaClass) |
void | LoadCLRPackage () |
Delegate | GetFunction (Type delegateType, string fullPath) |
void | NewTable (string fullPath) |
Dictionary< object, object > | GetTableDict (LuaTable table) |
int | SetDebugHook (EventMasks mask, int count) |
Activates the debug hook More... | |
int | RemoveDebugHook () |
Removes the debug hook More... | |
EventMasks | GetHookMask () |
Gets the hook mask. More... | |
int | GetHookCount () |
Gets the hook count More... | |
string | GetLocal (LuaDebug luaDebug, int n) |
Gets the stack entry on a given level More... | |
string | SetLocal (LuaDebug luaDebug, int n) |
Sets local (see lua docs) More... | |
string | GetUpValue (int funcindex, int n) |
Gets up value (see lua docs) More... | |
string | SetUpValue (int funcindex, int n) |
Sets up value (see lua docs) More... | |
object | Pop () |
Pops a value from the lua stack. More... | |
void | Push (object value) |
Pushes a value onto the lua stack. More... | |
LuaFunction | RegisterFunction (string path, MethodBase function) |
LuaFunction | RegisterFunction (string path, object target, MethodBase function) |
virtual void | Dispose () |
Properties | |
bool | IsExecuting [get] |
True while a script is being executed More... | |
IEnumerable< string > | Globals [get] |
An alphabetically sorted list of all globals (objects, methods, etc.) externally added to this Lua instance More... | |
object | this[string fullPath] [get, set] |
Events | |
EventHandler< HookExceptionEventArgs > | HookException |
Event that is raised when an exception occures during a hook call. More... | |
EventHandler< DebugHookEventArgs > | DebugHook |
Event when lua hook callback is called More... | |
NLua.Lua.Lua | ( | ) |
NLua.Lua.Lua | ( | LuaState | lState | ) |
void NLua.Lua.Close | ( | ) |
|
virtual |
object [] NLua.Lua.DoFile | ( | string | fileName | ) |
object [] NLua.Lua.DoString | ( | byte[] | chunk, |
string | chunkName = "chunk" |
||
) |
Executes a Lua chunk and returns all the chunk's return values in an array.
chunk | Chunk to execute |
chunkName | Name to associate with the chunk. Defaults to "chunk". |
object [] NLua.Lua.DoString | ( | string | chunk, |
string | chunkName = "chunk" |
||
) |
Executes a Lua chunk and returns all the chunk's return values in an array.
chunk | Chunk to execute |
chunkName | Name to associate with the chunk. Defaults to "chunk". |
LuaFunction NLua.Lua.GetFunction | ( | string | fullPath | ) |
Delegate NLua.Lua.GetFunction | ( | Type | delegateType, |
string | fullPath | ||
) |
int NLua.Lua.GetHookCount | ( | ) |
Gets the hook count
<author>Reinhard Ostermeier</author>
EventMasks NLua.Lua.GetHookMask | ( | ) |
Gets the hook mask.
<author>Reinhard Ostermeier</author>
string NLua.Lua.GetLocal | ( | LuaDebug | luaDebug, |
int | n | ||
) |
Gets the stack entry on a given level
level | level |
luaDebug | lua debug structure |
<author>Reinhard Ostermeier</author>
Gets info (see lua docs)
what | what (see lua docs) |
luaDebug | lua debug structure |
<author>Reinhard Ostermeier</author>
Gets local (see lua docs)
luaDebug | lua debug structure |
n | see lua docs |
<author>Reinhard Ostermeier</author>
double NLua.Lua.GetNumber | ( | string | fullPath | ) |
string NLua.Lua.GetString | ( | string | fullPath | ) |
LuaTable NLua.Lua.GetTable | ( | string | fullPath | ) |
object NLua.Lua.GetTable | ( | Type | interfaceType, |
string | fullPath | ||
) |
Dictionary<object, object> NLua.Lua.GetTableDict | ( | LuaTable | table | ) |
string NLua.Lua.GetUpValue | ( | int | funcindex, |
int | n | ||
) |
Gets up value (see lua docs)
funcindex | see lua docs |
n | see lua docs |
<author>Reinhard Ostermeier</author>
void NLua.Lua.LoadCLRPackage | ( | ) |
LuaFunction NLua.Lua.LoadFile | ( | string | fileName | ) |
fileName |
LuaFunction NLua.Lua.LoadString | ( | byte[] | chunk, |
string | name | ||
) |
chunk | |
name |
LuaFunction NLua.Lua.LoadString | ( | string | chunk, |
string | name | ||
) |
chunk | |
name |
void NLua.Lua.NewTable | ( | string | fullPath | ) |
object NLua.Lua.Pop | ( | ) |
Pops a value from the lua stack.
<author>Reinhard Ostermeier</author>
void NLua.Lua.Push | ( | object | value | ) |
Pushes a value onto the lua stack.
value | Value to push. |
<author>Reinhard Ostermeier</author>
LuaFunction NLua.Lua.RegisterFunction | ( | string | path, |
MethodBase | function | ||
) |
LuaFunction NLua.Lua.RegisterFunction | ( | string | path, |
object | target, | ||
MethodBase | function | ||
) |
void NLua.Lua.RegisterLuaClassType | ( | Type | klass, |
Type | luaClass | ||
) |
void NLua.Lua.RegisterLuaDelegateType | ( | Type | delegateType, |
Type | luaDelegateType | ||
) |
int NLua.Lua.RemoveDebugHook | ( | ) |
Removes the debug hook
<author>Reinhard Ostermeier</author>
int NLua.Lua.SetDebugHook | ( | EventMasks | mask, |
int | count | ||
) |
Activates the debug hook
mask | Mask |
count | Count |
<author>Reinhard Ostermeier</author>
string NLua.Lua.SetLocal | ( | LuaDebug | luaDebug, |
int | n | ||
) |
Sets local (see lua docs)
luaDebug | lua debug structure |
n | see lua docs |
<author>Reinhard Ostermeier</author>
string NLua.Lua.SetUpValue | ( | int | funcindex, |
int | n | ||
) |
Sets up value (see lua docs)
funcindex | see lua docs |
n | see lua docs |
<author>Reinhard Ostermeier</author>
|
get |
An alphabetically sorted list of all globals (objects, methods, etc.) externally added to this Lua instance
Members of globals are also listed. The formatting is optimized for text input auto-completion.
|
get |
True while a script is being executed
|
getset |
EventHandler<DebugHookEventArgs> NLua.Lua.DebugHook |
Event when lua hook callback is called
Is only raised if SetDebugHook is called before.
<author>Reinhard Ostermeier</author>
EventHandler<HookExceptionEventArgs> NLua.Lua.HookException |
Event that is raised when an exception occures during a hook call.
<author>Reinhard Ostermeier</author>