static StackObject *set_filterLogType_5(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj) { ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain; StackObject *ptr_of_this_method; StackObject *__ret = ILIntepreter.Minus(__esp, 2); ptr_of_this_method = ILIntepreter.Minus(__esp, 1); UnityEngine.LogType @value = (UnityEngine.LogType) typeof(UnityEngine.LogType).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); ptr_of_this_method = ILIntepreter.Minus(__esp, 2); UnityEngine.Logger instance_of_this_method = (UnityEngine.Logger) typeof(UnityEngine.Logger).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); instance_of_this_method.filterLogType = value; return(__ret); }
static StackObject *LogException_19(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj) { CSHotFix.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain; StackObject *ptr_of_this_method; StackObject *__ret = ILIntepreter.Minus(__esp, 2); ptr_of_this_method = ILIntepreter.Minus(__esp, 1); System.Exception @exception = (System.Exception) typeof(System.Exception).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); ptr_of_this_method = ILIntepreter.Minus(__esp, 2); UnityEngine.Logger instance_of_this_method = (UnityEngine.Logger) typeof(UnityEngine.Logger).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); instance_of_this_method.LogException(@exception); return(__ret); }
static int __CreateInstance(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); if (LuaAPI.lua_gettop(L) == 2 && translator.Assignable <UnityEngine.ILogHandler>(L, 2)) { UnityEngine.ILogHandler _logHandler = (UnityEngine.ILogHandler)translator.GetObject(L, 2, typeof(UnityEngine.ILogHandler)); var gen_ret = new UnityEngine.Logger(_logHandler); translator.Push(L, gen_ret); return(1); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Logger constructor!")); }
static int _m_LogFormat(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.Logger gen_to_be_invoked = (UnityEngine.Logger)translator.FastGetCSObj(L, 1); int gen_param_count = LuaAPI.lua_gettop(L); if (gen_param_count >= 3 && translator.Assignable <UnityEngine.LogType>(L, 2) && (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING) && (LuaTypes.LUA_TNONE == LuaAPI.lua_type(L, 4) || translator.Assignable <object>(L, 4))) { UnityEngine.LogType _logType; translator.Get(L, 2, out _logType); string _format = LuaAPI.lua_tostring(L, 3); object[] _args = translator.GetParams <object>(L, 4); gen_to_be_invoked.LogFormat(_logType, _format, _args); return(0); } if (gen_param_count >= 4 && translator.Assignable <UnityEngine.LogType>(L, 2) && translator.Assignable <UnityEngine.Object>(L, 3) && (LuaAPI.lua_isnil(L, 4) || LuaAPI.lua_type(L, 4) == LuaTypes.LUA_TSTRING) && (LuaTypes.LUA_TNONE == LuaAPI.lua_type(L, 5) || translator.Assignable <object>(L, 5))) { UnityEngine.LogType _logType; translator.Get(L, 2, out _logType); UnityEngine.Object _context = (UnityEngine.Object)translator.GetObject(L, 3, typeof(UnityEngine.Object)); string _format = LuaAPI.lua_tostring(L, 4); object[] _args = translator.GetParams <object>(L, 5); gen_to_be_invoked.LogFormat(_logType, _context, _format, _args); return(0); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Logger.LogFormat!")); }
static StackObject *IsLogTypeAllowed_6(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj) { ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain; StackObject *ptr_of_this_method; StackObject *__ret = ILIntepreter.Minus(__esp, 2); ptr_of_this_method = ILIntepreter.Minus(__esp, 1); UnityEngine.LogType @logType = (UnityEngine.LogType) typeof(UnityEngine.LogType).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); ptr_of_this_method = ILIntepreter.Minus(__esp, 2); UnityEngine.Logger instance_of_this_method = (UnityEngine.Logger) typeof(UnityEngine.Logger).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); var result_of_this_method = instance_of_this_method.IsLogTypeAllowed(@logType); __ret->ObjectType = ObjectTypes.Integer; __ret->Value = result_of_this_method ? 1 : 0; return(__ret + 1); }
static StackObject *get_logHandler_0(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj) { ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain; StackObject *ptr_of_this_method; StackObject *__ret = ILIntepreter.Minus(__esp, 1); ptr_of_this_method = ILIntepreter.Minus(__esp, 1); UnityEngine.Logger instance_of_this_method = (UnityEngine.Logger) typeof(UnityEngine.Logger).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); var result_of_this_method = instance_of_this_method.logHandler; object obj_result_of_this_method = result_of_this_method; if (obj_result_of_this_method is CrossBindingAdaptorType) { return(ILIntepreter.PushObject(__ret, __mStack, ((CrossBindingAdaptorType)obj_result_of_this_method).ILInstance)); } return(ILIntepreter.PushObject(__ret, __mStack, result_of_this_method)); }
static int _m_LogError(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.Logger gen_to_be_invoked = (UnityEngine.Logger)translator.FastGetCSObj(L, 1); int gen_param_count = LuaAPI.lua_gettop(L); if (gen_param_count == 3 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING) && translator.Assignable <object>(L, 3)) { string _tag = LuaAPI.lua_tostring(L, 2); object _message = translator.GetObject(L, 3, typeof(object)); gen_to_be_invoked.LogError(_tag, _message); return(0); } if (gen_param_count == 4 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING) && translator.Assignable <object>(L, 3) && translator.Assignable <UnityEngine.Object>(L, 4)) { string _tag = LuaAPI.lua_tostring(L, 2); object _message = translator.GetObject(L, 3, typeof(object)); UnityEngine.Object _context = (UnityEngine.Object)translator.GetObject(L, 4, typeof(UnityEngine.Object)); gen_to_be_invoked.LogError(_tag, _message, _context); return(0); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Logger.LogError!")); }
static StackObject *LogError_16(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj) { ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain; StackObject *ptr_of_this_method; StackObject *__ret = ILIntepreter.Minus(__esp, 3); ptr_of_this_method = ILIntepreter.Minus(__esp, 1); System.Object @message = (System.Object) typeof(System.Object).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); ptr_of_this_method = ILIntepreter.Minus(__esp, 2); System.String @tag = (System.String) typeof(System.String).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); ptr_of_this_method = ILIntepreter.Minus(__esp, 3); UnityEngine.Logger instance_of_this_method = (UnityEngine.Logger) typeof(UnityEngine.Logger).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); instance_of_this_method.LogError(@tag, @message); return(__ret); }
static int _m_LogException(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.Logger gen_to_be_invoked = (UnityEngine.Logger)translator.FastGetCSObj(L, 1); int gen_param_count = LuaAPI.lua_gettop(L); if (gen_param_count == 2 && translator.Assignable <System.Exception>(L, 2)) { System.Exception _exception = (System.Exception)translator.GetObject(L, 2, typeof(System.Exception)); gen_to_be_invoked.LogException(_exception); return(0); } if (gen_param_count == 3 && translator.Assignable <System.Exception>(L, 2) && translator.Assignable <UnityEngine.Object>(L, 3)) { System.Exception _exception = (System.Exception)translator.GetObject(L, 2, typeof(System.Exception)); UnityEngine.Object _context = (UnityEngine.Object)translator.GetObject(L, 3, typeof(UnityEngine.Object)); gen_to_be_invoked.LogException(_exception, _context); return(0); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Logger.LogException!")); }
static int _m_IsLogTypeAllowed(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.Logger __cl_gen_to_be_invoked = (UnityEngine.Logger)translator.FastGetCSObj(L, 1); try { { UnityEngine.LogType logType; translator.Get(L, 2, out logType); bool __cl_gen_ret = __cl_gen_to_be_invoked.IsLogTypeAllowed(logType); LuaAPI.lua_pushboolean(L, __cl_gen_ret); return(1); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }
public SessionResult() { _logger = new UnityEngine.Logger(new LabyrinthLogHandler()); _logger.Log(_tag, "SessionResult Create."); }
static int _m_Log(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.Logger __cl_gen_to_be_invoked = (UnityEngine.Logger)translator.FastGetCSObj(L, 1); int __gen_param_count = LuaAPI.lua_gettop(L); try { if (__gen_param_count == 2 && translator.Assignable <object>(L, 2)) { object message = translator.GetObject(L, 2, typeof(object)); __cl_gen_to_be_invoked.Log(message); return(0); } if (__gen_param_count == 3 && translator.Assignable <UnityEngine.LogType>(L, 2) && translator.Assignable <object>(L, 3)) { UnityEngine.LogType logType; translator.Get(L, 2, out logType); object message = translator.GetObject(L, 3, typeof(object)); __cl_gen_to_be_invoked.Log(logType, message); return(0); } if (__gen_param_count == 3 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING) && translator.Assignable <object>(L, 3)) { string tag = LuaAPI.lua_tostring(L, 2); object message = translator.GetObject(L, 3, typeof(object)); __cl_gen_to_be_invoked.Log(tag, message); return(0); } if (__gen_param_count == 4 && translator.Assignable <UnityEngine.LogType>(L, 2) && translator.Assignable <object>(L, 3) && translator.Assignable <UnityEngine.Object>(L, 4)) { UnityEngine.LogType logType; translator.Get(L, 2, out logType); object message = translator.GetObject(L, 3, typeof(object)); UnityEngine.Object context = (UnityEngine.Object)translator.GetObject(L, 4, typeof(UnityEngine.Object)); __cl_gen_to_be_invoked.Log(logType, message, context); return(0); } if (__gen_param_count == 4 && translator.Assignable <UnityEngine.LogType>(L, 2) && (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING) && translator.Assignable <object>(L, 4)) { UnityEngine.LogType logType; translator.Get(L, 2, out logType); string tag = LuaAPI.lua_tostring(L, 3); object message = translator.GetObject(L, 4, typeof(object)); __cl_gen_to_be_invoked.Log(logType, tag, message); return(0); } if (__gen_param_count == 4 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING) && translator.Assignable <object>(L, 3) && translator.Assignable <UnityEngine.Object>(L, 4)) { string tag = LuaAPI.lua_tostring(L, 2); object message = translator.GetObject(L, 3, typeof(object)); UnityEngine.Object context = (UnityEngine.Object)translator.GetObject(L, 4, typeof(UnityEngine.Object)); __cl_gen_to_be_invoked.Log(tag, message, context); return(0); } if (__gen_param_count == 5 && translator.Assignable <UnityEngine.LogType>(L, 2) && (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING) && translator.Assignable <object>(L, 4) && translator.Assignable <UnityEngine.Object>(L, 5)) { UnityEngine.LogType logType; translator.Get(L, 2, out logType); string tag = LuaAPI.lua_tostring(L, 3); object message = translator.GetObject(L, 4, typeof(object)); UnityEngine.Object context = (UnityEngine.Object)translator.GetObject(L, 5, typeof(UnityEngine.Object)); __cl_gen_to_be_invoked.Log(logType, tag, message, context); return(0); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } return(LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Logger.Log!")); }