Beispiel #1
0
 /// <summary>
 /// Sets up a new Lua engine and environment.
 /// </summary>
 /// <returns>Returns the new Lua engine.</returns>
 public static Neo.IronLua.Lua Create()
 {
     IronLua     = new Neo.IronLua.Lua();
     Environment = IronLua.CreateEnvironment <LuaGlobal>();
     LuaCache    = new Dictionary <int, LuaChunk>();
     Ascertain(Environment);
     return(IronLua);
 }
Beispiel #2
0
 public LuaGeneral()
 {
     using var lua = new Neo.IronLua.Lua();
     var env = lua.CreateEnvironment();
 }