c1_unity/Assets/XLua/Gen/IronSourceEventsDispatcherWrap.cs
2025-11-03 15:00:43 +08:00

245 lines
6.5 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 IronSourceEventsDispatcherWrap
{
public static void __Register(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
System.Type type = typeof(IronSourceEventsDispatcher);
Utils.BeginObjectRegister(type, L, translator, 0, 3, 0, 0);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "removeFromParent", _m_removeFromParent);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "Awake", _m_Awake);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnDisable", _m_OnDisable);
Utils.EndObjectRegister(type, L, translator, null, null,
null, null, null);
Utils.BeginClassRegister(type, L, __CreateInstance, 4, 0, 0);
Utils.RegisterFunc(L, Utils.CLS_IDX, "executeAction", _m_executeAction_xlua_st_);
Utils.RegisterFunc(L, Utils.CLS_IDX, "initialize", _m_initialize_xlua_st_);
Utils.RegisterFunc(L, Utils.CLS_IDX, "isCreated", _m_isCreated_xlua_st_);
Utils.EndClassRegister(type, L, translator);
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int __CreateInstance(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
if(LuaAPI.lua_gettop(L) == 1)
{
var gen_ret = new IronSourceEventsDispatcher();
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 IronSourceEventsDispatcher constructor!");
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_executeAction_xlua_st_(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
{
System.Action _action = translator.GetDelegate<System.Action>(L, 1);
IronSourceEventsDispatcher.executeAction( _action );
return 0;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_removeFromParent(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
IronSourceEventsDispatcher gen_to_be_invoked = (IronSourceEventsDispatcher)translator.FastGetCSObj(L, 1);
{
gen_to_be_invoked.removeFromParent( );
return 0;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_initialize_xlua_st_(RealStatePtr L)
{
try {
{
IronSourceEventsDispatcher.initialize( );
return 0;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_isCreated_xlua_st_(RealStatePtr L)
{
try {
{
var gen_ret = IronSourceEventsDispatcher.isCreated( );
LuaAPI.lua_pushboolean(L, gen_ret);
return 1;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_Awake(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
IronSourceEventsDispatcher gen_to_be_invoked = (IronSourceEventsDispatcher)translator.FastGetCSObj(L, 1);
{
gen_to_be_invoked.Awake( );
return 0;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_OnDisable(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
IronSourceEventsDispatcher gen_to_be_invoked = (IronSourceEventsDispatcher)translator.FastGetCSObj(L, 1);
{
gen_to_be_invoked.OnDisable( );
return 0;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
}
}
}