Table of Contents

Class MoonSharpLuaEngine

Namespace
EncDotNet.S100.Scripting.MoonSharp
Assembly
EncDotNet.S100.Scripting.MoonSharp.dll

ILuaEngine implementation backed by the MoonSharp interpreter, a pure .NET Lua 5.2 implementation with no native dependencies.

public sealed class MoonSharpLuaEngine : ILuaEngine
Inheritance
MoonSharpLuaEngine
Implements
Inherited Members

Properties

Modules

The MoonSharp.Interpreter.CoreModules loaded into each new context. Defaults to a safe subset (no OS/IO/debug access).

public CoreModules Modules { get; init; }

Property Value

CoreModules

Methods

CreateContext()

Creates a new isolated Lua execution context. Each context has its own global table and loaded scripts.

public ILuaContext CreateContext()

Returns

ILuaContext