|
|
@@ -4,15 +4,12 @@ using MoonSharp.Interpreter;
|
|
|
public class BenchmarkCore : IDisposable
|
|
|
{
|
|
|
public NLua.Lua NLuaState => nLuaState;
|
|
|
- public Neo.IronLua.LuaGlobal NeoLuaEnvironment => neoLuaEnvironment;
|
|
|
public Script MoonSharpState => moonSharpState;
|
|
|
public LuaState LuaCSharpState => luaCSharpState;
|
|
|
public string FilePath => filePath;
|
|
|
public string SourceText => sourceText;
|
|
|
|
|
|
NLua.Lua nLuaState = default!;
|
|
|
- Neo.IronLua.Lua neoLuaState = default!;
|
|
|
- Neo.IronLua.LuaGlobal neoLuaEnvironment = default!;
|
|
|
Script moonSharpState = default!;
|
|
|
LuaState luaCSharpState = default!;
|
|
|
string filePath = default!;
|
|
|
@@ -27,10 +24,6 @@ public class BenchmarkCore : IDisposable
|
|
|
// NLua
|
|
|
nLuaState = new();
|
|
|
|
|
|
- // NeoLua
|
|
|
- neoLuaState = new();
|
|
|
- neoLuaEnvironment = neoLuaState.CreateEnvironment();
|
|
|
-
|
|
|
// Lua-CSharp
|
|
|
luaCSharpState = LuaState.Create();
|
|
|
|
|
|
@@ -41,6 +34,5 @@ public class BenchmarkCore : IDisposable
|
|
|
public void Dispose()
|
|
|
{
|
|
|
nLuaState.Dispose();
|
|
|
- neoLuaState.Dispose();
|
|
|
}
|
|
|
}
|