Enum CoreModules
Enumeration (combinable as flags) of all the standard library modules
Namespace: System.Dynamic.ExpandoObject
Assembly: cs.temp.dll.dll
Syntax
public enum CoreModules
Basic
The basic methods. Includes "assert", "collectgarbage", "error", "print", "select", "type", "tonumber" and "tostring".
Bit32
The bit32 package
Coroutine
The coroutine package
Debug
The "debug" package (it has limited support)
Dynamic
The "dynamic" package (introduced by MoonSharp).
ErrorHandling
The error handling methods: "pcall" and "xpcall"
GlobalConsts
The global constants: "_G", "_VERSION" and "_MOONSHARP".
IO
The methods of "io" and "file" packages. These are not supported under Unity.
Itinero
The "itinero" package (added by Itinero).
Json
The "json" package (introduced by MoonSharp).
LoadMethods
The load methods: "load", "loadsafe", "loadfile", "loadfilesafe", "dofile" and "require"
Math
The math package
Metatables
The metatable methods : "setmetatable", "getmetatable", "rawset", "rawget", "rawequal" and "rawlen".
None
Value used to specify no modules to be loaded (equals 0).
OS_System
The methods of "os" package excluding those listed for OS_Time. These are not supported under Unity.
OS_Time
The time methods of the "os" package: "clock", "difftime", "date" and "time"
Preset_Complete
The complete package. Beware that using this preset allows scripts unlimited access to the system.
Preset_Default
The default preset. Includes everything except "debug" as now. Beware that using this preset allows scripts unlimited access to the system.
Preset_HardSandbox
A sort of "hard" sandbox preset, including string, math, table, bit32 packages, constants and table iterators.
Preset_SoftSandbox
A softer sandbox preset, adding metatables support, error handling, coroutine, time functions, json parsing and dynamic evaluations.
String
The string package
Table
The table package
TableIterators
The table iterators: "next", "ipairs" and "pairs".