| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553 |
- //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<UnityEngine.ILogger>(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<bool, string>(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<bool, string>(L, 1) && TypeChecker.CheckParamsType<object>(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<bool>(L, 1))
- {
- bool arg0 = LuaDLL.lua_toboolean(L, 1);
- DebugHelper.Assert(arg0);
- return 0;
- }
- else if (count == 2 && TypeChecker.CheckTypes<bool, string>(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<bool, string>(L, 1) && TypeChecker.CheckParamsType<object>(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<string>(L, 1))
- {
- string arg0 = ToLua.ToString(L, 1);
- DebugHelper.Log(arg0);
- return 0;
- }
- else if (TypeChecker.CheckTypes<object>(L, 1) && TypeChecker.CheckParamsType<object>(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<string>(L, 1))
- {
- string arg0 = ToLua.ToString(L, 1);
- DebugHelper.LogError(arg0);
- return 0;
- }
- else if (TypeChecker.CheckTypes<object>(L, 1) && TypeChecker.CheckParamsType<object>(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<string>(L, 1))
- {
- string arg0 = ToLua.ToString(L, 1);
- DebugHelper.LogWarning(arg0);
- return 0;
- }
- else if (TypeChecker.CheckTypes<object>(L, 1) && TypeChecker.CheckParamsType<object>(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<System.Exception>(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<DebugHelper>(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);
- }
- }
- }
|