c1_unity/Assets/XLua/Gen/UnityEngine_CrashReportWrap.cs
2023-04-03 11:04:31 +08:00

176 lines
5.1 KiB
C#

#if USE_UNI_LUA
using LuaAPI = UniLua.Lua;
using RealStatePtr = UniLua.ILuaState;
using LuaCSFunction = UniLua.CSharpFunctionDelegate;
#else
using LuaAPI = XLua.LuaDLL.Lua;
using RealStatePtr = System.IntPtr;
using LuaCSFunction = XLua.LuaDLL.lua_CSFunction;
#endif
using XLua;
using System.Collections.Generic;
namespace XLua.CSObjectWrap
{
using Utils = XLua.Utils;
public class UnityEngineCrashReportWrap
{
public static void __Register(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
System.Type type = typeof(UnityEngine.CrashReport);
Utils.BeginObjectRegister(type, L, translator, 0, 1, 2, 0);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "Remove", _m_Remove);
Utils.RegisterFunc(L, Utils.GETTER_IDX, "time", _g_get_time);
Utils.RegisterFunc(L, Utils.GETTER_IDX, "text", _g_get_text);
Utils.EndObjectRegister(type, L, translator, null, null,
null, null, null);
Utils.BeginClassRegister(type, L, __CreateInstance, 2, 2, 0);
Utils.RegisterFunc(L, Utils.CLS_IDX, "RemoveAll", _m_RemoveAll_xlua_st_);
Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "reports", _g_get_reports);
Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "lastReport", _g_get_lastReport);
Utils.EndClassRegister(type, L, translator);
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int __CreateInstance(RealStatePtr L)
{
return LuaAPI.luaL_error(L, "UnityEngine.CrashReport does not have a constructor!");
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_RemoveAll_xlua_st_(RealStatePtr L)
{
try {
{
UnityEngine.CrashReport.RemoveAll( );
return 0;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_Remove(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
UnityEngine.CrashReport gen_to_be_invoked = (UnityEngine.CrashReport)translator.FastGetCSObj(L, 1);
{
gen_to_be_invoked.Remove( );
return 0;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _g_get_reports(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
translator.Push(L, UnityEngine.CrashReport.reports);
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return 1;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _g_get_lastReport(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
translator.Push(L, UnityEngine.CrashReport.lastReport);
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return 1;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _g_get_time(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
UnityEngine.CrashReport gen_to_be_invoked = (UnityEngine.CrashReport)translator.FastGetCSObj(L, 1);
translator.Push(L, gen_to_be_invoked.time);
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return 1;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _g_get_text(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
UnityEngine.CrashReport gen_to_be_invoked = (UnityEngine.CrashReport)translator.FastGetCSObj(L, 1);
LuaAPI.lua_pushstring(L, gen_to_be_invoked.text);
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return 1;
}
}
}