Show / Hide Table of Contents

Class LoadModule

Class implementing loading Lua functions like 'require', 'load', etc.

Inheritance
System.Object
LoadModule
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: System.Dynamic.ExpandoObject
Assembly: cs.temp.dll.dll
Syntax
public class LoadModule

Fields

require

Declaration
public const string require = "\r\nfunction(modulename)\r\n\tif (package == nil) then package = { }; end\r\n\tif (package.loaded == nil) then package.loaded = { }; end\r\n\r\n\tlocal m = package.loaded[modulename];\r\n\r\n\tif (m ~= nil) then\r\n\t\treturn m;\r\n\tend\r\n\r\n\tlocal func = __require_clr_impl(modulename);\r\n\r\n\tlocal res = func(modulename);\r\n\r\n\tif (res == nil) then\r\n\t\tres = true;\r\n\tend\r\n\r\n\tpackage.loaded[modulename] = res;\r\n\r\n\treturn res;\r\nend"
Field Value
System.String

Methods

__require_clr_impl(ScriptExecutionContext, CallbackArguments)

Declaration
public static DynValue __require_clr_impl(ScriptExecutionContext executionContext, CallbackArguments args)
Parameters
ScriptExecutionContext executionContext

CallbackArguments args

Returns
DynValue

load(ScriptExecutionContext, CallbackArguments)

Declaration
public static DynValue load(ScriptExecutionContext executionContext, CallbackArguments args)
Parameters
ScriptExecutionContext executionContext

CallbackArguments args

Returns
DynValue

load_impl(ScriptExecutionContext, CallbackArguments, Table)

Declaration
public static DynValue load_impl(ScriptExecutionContext executionContext, CallbackArguments args, Table defaultEnv)
Parameters
ScriptExecutionContext executionContext

CallbackArguments args

Table defaultEnv

Returns
DynValue

loadsafe(ScriptExecutionContext, CallbackArguments)

Declaration
public static DynValue loadsafe(ScriptExecutionContext executionContext, CallbackArguments args)
Parameters
ScriptExecutionContext executionContext

CallbackArguments args

Returns
DynValue

MoonSharpInit(Table, Table)

Declaration
public static void MoonSharpInit(Table globalTable, Table ioTable)
Parameters
Table globalTable

Table ioTable

Back to top Built by Itinero, MIT licensed.