-
Notifications
You must be signed in to change notification settings - Fork 2
LuaSettings
A LuaSettings object defines the settings on how Lua will execute code. These settings cannot be changed once they have been loaded into a Lua or LuaEnvironment constructor.
Default: null
This is the name of the object for use with debugging.
Default: LuaLibraries.UseDefault
This defines which libraries that Lua code will have access to. These are the same as defined in the Lua specification (see Changes). LuaLibraries.UseDefault will convert to LuaLibraries.All when given to Lua. To specify more than one, use the bitwise OR (|).
Default: LuaClassAccess.Registered
This defines what types a Lua defined class can derive from. Default is only from those explicitly registered to Lua. LuaClassAccess.System allows any type that is defined in a System library (as long as the assembly is referenced in AppDomain.CurrentDomain.GetAssemblies()). LuaClassAccess.All allows any type the hosting environment has access to.
Default: null
This defines the default encoding to use when writing to files using the io library. Set to null to use Encoding.UTF8.
Default: null
This defines the binder that will load modules into Lua, set to null to use the default, (see Modules).
Default: false
Defines whether to allow non-seekable streams. When chunks are loaded, they are first hashed to determine if it has already been loaded. A stream can only be hashed if it is seekable. If this is true, then any non-seekable streams will always parse, even if they have been already loaded. If this is set to false, an exception is thrown.