//this source code was auto-generated by tolua#, do not modify it using System; using LuaInterface; public class DebugHelperWrap { public static void Register(LuaState L) { L.BeginClass(typeof(DebugHelper), typeof(UnityEngine.MonoBehaviour), "DebugHelper"); L.RegFunction("AddLoggerWnd", AddLoggerWnd); L.RegFunction("OpenLoger", OpenLoger); L.RegFunction("CloseLoger", CloseLoger); L.RegFunction("BeginLogs", BeginLogs); L.RegFunction("CloseLogs", CloseLogs); L.RegFunction("ClearLogs", ClearLogs); L.RegFunction("GetLoger", GetLoger); L.RegFunction("GetLogerPath", GetLogerPath); L.RegFunction("EditorAssert", EditorAssert); L.RegFunction("Assert", Assert); L.RegFunction("LogInternal", LogInternal); L.RegFunction("Log", Log); L.RegFunction("LogError", LogError); L.RegFunction("LogWarning", LogWarning); L.RegFunction("LogException", LogException); L.RegFunction("__eq", op_Equality); L.RegFunction("__tostring", ToLua.op_ToString); L.RegVar("Tag_BHY", get_Tag_BHY, set_Tag_BHY); L.RegVar("instance", get_instance, set_instance); L.RegVar("LogLevel", get_LogLevel, set_LogLevel); L.RegVar("logMode", get_logMode, set_logMode); L.RegVar("enableLog", get_enableLog, set_enableLog); L.RegVar("logRootPath", get_logRootPath, null); L.EndClass(); } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int AddLoggerWnd(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); UnityEngine.ILogger arg0 = (UnityEngine.ILogger)ToLua.CheckObject(L, 1); DebugHelper.AddLoggerWnd(arg0); return 0; } catch (Exception e) { return LuaDLL.toluaL_exception(L, e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int OpenLoger(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); SLogCategory arg0 = (SLogCategory)ToLua.CheckObject(L, 1, typeof(SLogCategory)); string arg1 = ToLua.CheckString(L, 2); DebugHelper.OpenLoger(arg0, arg1); return 0; } catch (Exception e) { return LuaDLL.toluaL_exception(L, e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int CloseLoger(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); SLogCategory arg0 = (SLogCategory)ToLua.CheckObject(L, 1, typeof(SLogCategory)); DebugHelper.CloseLoger(arg0); return 0; } catch (Exception e) { return LuaDLL.toluaL_exception(L, e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int BeginLogs(IntPtr L) { try { ToLua.CheckArgsCount(L, 0); DebugHelper.BeginLogs(); return 0; } catch (Exception e) { return LuaDLL.toluaL_exception(L, e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int CloseLogs(IntPtr L) { try { ToLua.CheckArgsCount(L, 0); DebugHelper.CloseLogs(); return 0; } catch (Exception e) { return LuaDLL.toluaL_exception(L, e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int ClearLogs(IntPtr L) { try { int count = LuaDLL.lua_gettop(L); if (count == 0) { DebugHelper.ClearLogs(); return 0; } else if (count == 1) { int arg0 = (int)LuaDLL.luaL_checknumber(L, 1); DebugHelper.ClearLogs(arg0); return 0; } else { return LuaDLL.luaL_throw(L, "invalid arguments to method: DebugHelper.ClearLogs"); } } catch (Exception e) { return LuaDLL.toluaL_exception(L, e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int GetLoger(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); SLogCategory arg0 = (SLogCategory)ToLua.CheckObject(L, 1, typeof(SLogCategory)); SLogObj o = DebugHelper.GetLoger(arg0); ToLua.PushObject(L, o); return 1; } catch (Exception e) { return LuaDLL.toluaL_exception(L, e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int GetLogerPath(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); SLogCategory arg0 = (SLogCategory)ToLua.CheckObject(L, 1, typeof(SLogCategory)); string o = DebugHelper.GetLogerPath(arg0); LuaDLL.lua_pushstring(L, o); return 1; } catch (Exception e) { return LuaDLL.toluaL_exception(L, e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int EditorAssert(IntPtr L) { try { int count = LuaDLL.lua_gettop(L); if (count == 2 && TypeChecker.CheckTypes(L, 1)) { bool arg0 = LuaDLL.lua_toboolean(L, 1); string arg1 = ToLua.ToString(L, 2); DebugHelper.EditorAssert(arg0, arg1); return 0; } else if (TypeChecker.CheckTypes(L, 1) && TypeChecker.CheckParamsType(L, 3, count - 2)) { bool arg0 = LuaDLL.lua_toboolean(L, 1); string arg1 = ToLua.ToString(L, 2); object[] arg2 = ToLua.ToParamsObject(L, 3, count - 2); DebugHelper.EditorAssert(arg0, arg1, arg2); return 0; } else { return LuaDLL.luaL_throw(L, "invalid arguments to method: DebugHelper.EditorAssert"); } } catch (Exception e) { return LuaDLL.toluaL_exception(L, e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int Assert(IntPtr L) { try { int count = LuaDLL.lua_gettop(L); if (count == 1 && TypeChecker.CheckTypes(L, 1)) { bool arg0 = LuaDLL.lua_toboolean(L, 1); DebugHelper.Assert(arg0); return 0; } else if (count == 2 && TypeChecker.CheckTypes(L, 1)) { bool arg0 = LuaDLL.lua_toboolean(L, 1); string arg1 = ToLua.ToString(L, 2); DebugHelper.Assert(arg0, arg1); return 0; } else if (TypeChecker.CheckTypes(L, 1) && TypeChecker.CheckParamsType(L, 3, count - 2)) { bool arg0 = LuaDLL.lua_toboolean(L, 1); string arg1 = ToLua.ToString(L, 2); object[] arg2 = ToLua.ToParamsObject(L, 3, count - 2); DebugHelper.Assert(arg0, arg1, arg2); return 0; } else { return LuaDLL.luaL_throw(L, "invalid arguments to method: DebugHelper.Assert"); } } catch (Exception e) { return LuaDLL.toluaL_exception(L, e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int LogInternal(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); SLogCategory arg0 = (SLogCategory)ToLua.CheckObject(L, 1, typeof(SLogCategory)); string arg1 = ToLua.CheckString(L, 2); DebugHelper.LogInternal(arg0, arg1); return 0; } catch (Exception e) { return LuaDLL.toluaL_exception(L, e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int Log(IntPtr L) { try { int count = LuaDLL.lua_gettop(L); if (count == 1 && TypeChecker.CheckTypes(L, 1)) { string arg0 = ToLua.ToString(L, 1); DebugHelper.Log(arg0); return 0; } else if (TypeChecker.CheckTypes(L, 1) && TypeChecker.CheckParamsType(L, 2, count - 1)) { object arg0 = ToLua.ToVarObject(L, 1); object[] arg1 = ToLua.ToParamsObject(L, 2, count - 1); DebugHelper.Log(arg0, arg1); return 0; } else { return LuaDLL.luaL_throw(L, "invalid arguments to method: DebugHelper.Log"); } } catch (Exception e) { return LuaDLL.toluaL_exception(L, e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int LogError(IntPtr L) { try { int count = LuaDLL.lua_gettop(L); if (count == 1 && TypeChecker.CheckTypes(L, 1)) { string arg0 = ToLua.ToString(L, 1); DebugHelper.LogError(arg0); return 0; } else if (TypeChecker.CheckTypes(L, 1) && TypeChecker.CheckParamsType(L, 2, count - 1)) { object arg0 = ToLua.ToVarObject(L, 1); object[] arg1 = ToLua.ToParamsObject(L, 2, count - 1); DebugHelper.LogError(arg0, arg1); return 0; } else { return LuaDLL.luaL_throw(L, "invalid arguments to method: DebugHelper.LogError"); } } catch (Exception e) { return LuaDLL.toluaL_exception(L, e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int LogWarning(IntPtr L) { try { int count = LuaDLL.lua_gettop(L); if (count == 1 && TypeChecker.CheckTypes(L, 1)) { string arg0 = ToLua.ToString(L, 1); DebugHelper.LogWarning(arg0); return 0; } else if (TypeChecker.CheckTypes(L, 1) && TypeChecker.CheckParamsType(L, 2, count - 1)) { object arg0 = ToLua.ToVarObject(L, 1); object[] arg1 = ToLua.ToParamsObject(L, 2, count - 1); DebugHelper.LogWarning(arg0, arg1); return 0; } else { return LuaDLL.luaL_throw(L, "invalid arguments to method: DebugHelper.LogWarning"); } } catch (Exception e) { return LuaDLL.toluaL_exception(L, e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int LogException(IntPtr L) { try { ToLua.CheckArgsCount(L, 1); System.Exception arg0 = (System.Exception)ToLua.CheckObject(L, 1); DebugHelper.LogException(arg0); return 0; } catch (Exception e) { return LuaDLL.toluaL_exception(L, e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int op_Equality(IntPtr L) { try { ToLua.CheckArgsCount(L, 2); UnityEngine.Object arg0 = (UnityEngine.Object)ToLua.ToObject(L, 1); UnityEngine.Object arg1 = (UnityEngine.Object)ToLua.ToObject(L, 2); bool o = arg0 == arg1; LuaDLL.lua_pushboolean(L, o); return 1; } catch (Exception e) { return LuaDLL.toluaL_exception(L, e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int get_Tag_BHY(IntPtr L) { try { LuaDLL.lua_pushstring(L, DebugHelper.Tag_BHY); return 1; } catch (Exception e) { return LuaDLL.toluaL_exception(L, e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int get_instance(IntPtr L) { try { ToLua.Push(L, DebugHelper.instance); return 1; } catch (Exception e) { return LuaDLL.toluaL_exception(L, e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int get_LogLevel(IntPtr L) { try { ToLua.Push(L, DebugHelper.LogLevel); return 1; } catch (Exception e) { return LuaDLL.toluaL_exception(L, e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int get_logMode(IntPtr L) { try { ToLua.Push(L, DebugHelper.logMode); return 1; } catch (Exception e) { return LuaDLL.toluaL_exception(L, e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int get_enableLog(IntPtr L) { try { LuaDLL.lua_pushboolean(L, DebugHelper.enableLog); return 1; } catch (Exception e) { return LuaDLL.toluaL_exception(L, e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int get_logRootPath(IntPtr L) { try { LuaDLL.lua_pushstring(L, DebugHelper.logRootPath); return 1; } catch (Exception e) { return LuaDLL.toluaL_exception(L, e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int set_Tag_BHY(IntPtr L) { try { string arg0 = ToLua.CheckString(L, 2); DebugHelper.Tag_BHY = arg0; return 0; } catch (Exception e) { return LuaDLL.toluaL_exception(L, e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int set_instance(IntPtr L) { try { DebugHelper arg0 = (DebugHelper)ToLua.CheckObject(L, 2); DebugHelper.instance = arg0; return 0; } catch (Exception e) { return LuaDLL.toluaL_exception(L, e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int set_LogLevel(IntPtr L) { try { LogLevel arg0 = (LogLevel)ToLua.CheckObject(L, 2, typeof(LogLevel)); DebugHelper.LogLevel = arg0; return 0; } catch (Exception e) { return LuaDLL.toluaL_exception(L, e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int set_logMode(IntPtr L) { try { SLogTypeDef arg0 = (SLogTypeDef)ToLua.CheckObject(L, 2, typeof(SLogTypeDef)); DebugHelper.logMode = arg0; return 0; } catch (Exception e) { return LuaDLL.toluaL_exception(L, e); } } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] static int set_enableLog(IntPtr L) { try { bool arg0 = LuaDLL.luaL_checkboolean(L, 2); DebugHelper.enableLog = arg0; return 0; } catch (Exception e) { return LuaDLL.toluaL_exception(L, e); } } }