static int ClearLuaVM(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); UnityGameFramework.Runtime.Lua.LuaComponent obj = (UnityGameFramework.Runtime.Lua.LuaComponent)ToLua.CheckObject(L, 1, typeof(UnityGameFramework.Runtime.Lua.LuaComponent)); obj.ClearLuaVM(); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int UnloadFile(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); UnityGameFramework.Runtime.Lua.LuaComponent obj = (UnityGameFramework.Runtime.Lua.LuaComponent)ToLua.CheckObject(L, 1, typeof(UnityGameFramework.Runtime.Lua.LuaComponent)); string arg0 = ToLua.CheckString(L, 2); obj.UnloadFile(arg0); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int AddScriptContent(IntPtr L) { try { ToLua.CheckArgsCount(L, 3); UnityGameFramework.Runtime.Lua.LuaComponent obj = (UnityGameFramework.Runtime.Lua.LuaComponent)ToLua.CheckObject(L, 1, typeof(UnityGameFramework.Runtime.Lua.LuaComponent)); string arg0 = ToLua.CheckString(L, 2); byte[] arg1 = ToLua.CheckByteBuffer(L, 3); obj.AddScriptContent(arg0, arg1); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int set_EditorSearchPaths(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UnityGameFramework.Runtime.Lua.LuaComponent obj = (UnityGameFramework.Runtime.Lua.LuaComponent)o; string[] arg0 = ToLua.CheckStringArray(L, 2); obj.EditorSearchPaths = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index EditorSearchPaths on a nil value" : e.Message)); } }
static int get_LuaState(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UnityGameFramework.Runtime.Lua.LuaComponent obj = (UnityGameFramework.Runtime.Lua.LuaComponent)o; LuaInterface.LuaState ret = obj.LuaState; ToLua.PushObject(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index LuaState on a nil value" : e.Message)); } }
static int get_EditorSearchPaths(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UnityGameFramework.Runtime.Lua.LuaComponent obj = (UnityGameFramework.Runtime.Lua.LuaComponent)o; string[] ret = obj.EditorSearchPaths; ToLua.Push(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o == null ? "attempt to index EditorSearchPaths on a nil value" : e.Message)); } }
static int DoString(IntPtr L) { try { ToLua.CheckArgsCount(L, 3); UnityGameFramework.Runtime.Lua.LuaComponent obj = (UnityGameFramework.Runtime.Lua.LuaComponent)ToLua.CheckObject(L, 1, typeof(UnityGameFramework.Runtime.Lua.LuaComponent)); string arg0 = ToLua.CheckString(L, 2); string arg1 = ToLua.CheckString(L, 3); object[] o = obj.DoString(arg0, arg1); ToLua.Push(L, o); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }
static int LoadFile(IntPtr L) { try { ToLua.CheckArgsCount(L, 5); UnityGameFramework.Runtime.Lua.LuaComponent obj = (UnityGameFramework.Runtime.Lua.LuaComponent)ToLua.CheckObject(L, 1, typeof(UnityGameFramework.Runtime.Lua.LuaComponent)); string arg0 = ToLua.CheckString(L, 2); string arg1 = ToLua.CheckString(L, 3); UnityGameFramework.Runtime.Lua.LuaComponent.OnLoadScriptSuccess arg2 = null; LuaTypes funcType4 = LuaDLL.lua_type(L, 4); if (funcType4 != LuaTypes.LUA_TFUNCTION) { arg2 = (UnityGameFramework.Runtime.Lua.LuaComponent.OnLoadScriptSuccess)ToLua.CheckObject(L, 4, typeof(UnityGameFramework.Runtime.Lua.LuaComponent.OnLoadScriptSuccess)); } else { LuaFunction func = ToLua.ToLuaFunction(L, 4); arg2 = DelegateFactory.CreateDelegate(typeof(UnityGameFramework.Runtime.Lua.LuaComponent.OnLoadScriptSuccess), func) as UnityGameFramework.Runtime.Lua.LuaComponent.OnLoadScriptSuccess; } UnityGameFramework.Runtime.Lua.LuaComponent.OnLoadScriptFailure arg3 = null; LuaTypes funcType5 = LuaDLL.lua_type(L, 5); if (funcType5 != LuaTypes.LUA_TFUNCTION) { arg3 = (UnityGameFramework.Runtime.Lua.LuaComponent.OnLoadScriptFailure)ToLua.CheckObject(L, 5, typeof(UnityGameFramework.Runtime.Lua.LuaComponent.OnLoadScriptFailure)); } else { LuaFunction func = ToLua.ToLuaFunction(L, 5); arg3 = DelegateFactory.CreateDelegate(typeof(UnityGameFramework.Runtime.Lua.LuaComponent.OnLoadScriptFailure), func) as UnityGameFramework.Runtime.Lua.LuaComponent.OnLoadScriptFailure; } obj.LoadFile(arg0, arg1, arg2, arg3); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }