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

529 lines
19 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 IronSourceEventsWrap
{
public static void __Register(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
System.Type type = typeof(IronSourceEvents);
Utils.BeginObjectRegister(type, L, translator, 0, 6, 0, 0);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "onConsentViewDidFailToLoadWithError", _m_onConsentViewDidFailToLoadWithError);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "onConsentViewDidFailToShowWithError", _m_onConsentViewDidFailToShowWithError);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "onConsentViewDidAccept", _m_onConsentViewDidAccept);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "onConsentViewDidDismiss", _m_onConsentViewDidDismiss);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "onConsentViewDidLoadSuccess", _m_onConsentViewDidLoadSuccess);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "onConsentViewDidShowSuccess", _m_onConsentViewDidShowSuccess);
Utils.EndObjectRegister(type, L, translator, null, null,
null, null, null);
Utils.BeginClassRegister(type, L, __CreateInstance, 10, 0, 0);
Utils.RegisterFunc(L, Utils.CLS_IDX, "onImpressionDataReadyEvent", _e_onImpressionDataReadyEvent);
Utils.RegisterFunc(L, Utils.CLS_IDX, "onSdkInitializationCompletedEvent", _e_onSdkInitializationCompletedEvent);
Utils.RegisterFunc(L, Utils.CLS_IDX, "onSegmentReceivedEvent", _e_onSegmentReceivedEvent);
Utils.RegisterFunc(L, Utils.CLS_IDX, "onConsentViewDidFailToLoadWithErrorEvent", _e_onConsentViewDidFailToLoadWithErrorEvent);
Utils.RegisterFunc(L, Utils.CLS_IDX, "onConsentViewDidFailToShowWithErrorEvent", _e_onConsentViewDidFailToShowWithErrorEvent);
Utils.RegisterFunc(L, Utils.CLS_IDX, "onConsentViewDidAcceptEvent", _e_onConsentViewDidAcceptEvent);
Utils.RegisterFunc(L, Utils.CLS_IDX, "onConsentViewDidDismissEvent", _e_onConsentViewDidDismissEvent);
Utils.RegisterFunc(L, Utils.CLS_IDX, "onConsentViewDidLoadSuccessEvent", _e_onConsentViewDidLoadSuccessEvent);
Utils.RegisterFunc(L, Utils.CLS_IDX, "onConsentViewDidShowSuccessEvent", _e_onConsentViewDidShowSuccessEvent);
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 IronSourceEvents();
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 IronSourceEvents constructor!");
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_onConsentViewDidFailToLoadWithError(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
IronSourceEvents gen_to_be_invoked = (IronSourceEvents)translator.FastGetCSObj(L, 1);
{
string _args = LuaAPI.lua_tostring(L, 2);
gen_to_be_invoked.onConsentViewDidFailToLoadWithError( _args );
return 0;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_onConsentViewDidFailToShowWithError(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
IronSourceEvents gen_to_be_invoked = (IronSourceEvents)translator.FastGetCSObj(L, 1);
{
string _args = LuaAPI.lua_tostring(L, 2);
gen_to_be_invoked.onConsentViewDidFailToShowWithError( _args );
return 0;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_onConsentViewDidAccept(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
IronSourceEvents gen_to_be_invoked = (IronSourceEvents)translator.FastGetCSObj(L, 1);
{
string _consentViewType = LuaAPI.lua_tostring(L, 2);
gen_to_be_invoked.onConsentViewDidAccept( _consentViewType );
return 0;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_onConsentViewDidDismiss(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
IronSourceEvents gen_to_be_invoked = (IronSourceEvents)translator.FastGetCSObj(L, 1);
{
string _consentViewType = LuaAPI.lua_tostring(L, 2);
gen_to_be_invoked.onConsentViewDidDismiss( _consentViewType );
return 0;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_onConsentViewDidLoadSuccess(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
IronSourceEvents gen_to_be_invoked = (IronSourceEvents)translator.FastGetCSObj(L, 1);
{
string _consentViewType = LuaAPI.lua_tostring(L, 2);
gen_to_be_invoked.onConsentViewDidLoadSuccess( _consentViewType );
return 0;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_onConsentViewDidShowSuccess(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
IronSourceEvents gen_to_be_invoked = (IronSourceEvents)translator.FastGetCSObj(L, 1);
{
string _consentViewType = LuaAPI.lua_tostring(L, 2);
gen_to_be_invoked.onConsentViewDidShowSuccess( _consentViewType );
return 0;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _e_onImpressionDataReadyEvent(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
int gen_param_count = LuaAPI.lua_gettop(L);
System.Action<IronSourceImpressionData> gen_delegate = translator.GetDelegate<System.Action<IronSourceImpressionData>>(L, 2);
if (gen_delegate == null) {
return LuaAPI.luaL_error(L, "#2 need System.Action<IronSourceImpressionData>!");
}
if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "+")) {
IronSourceEvents.onImpressionDataReadyEvent += gen_delegate;
return 0;
}
if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "-")) {
IronSourceEvents.onImpressionDataReadyEvent -= gen_delegate;
return 0;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return LuaAPI.luaL_error(L, "invalid arguments to IronSourceEvents.onImpressionDataReadyEvent!");
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _e_onSdkInitializationCompletedEvent(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
int gen_param_count = LuaAPI.lua_gettop(L);
System.Action gen_delegate = translator.GetDelegate<System.Action>(L, 2);
if (gen_delegate == null) {
return LuaAPI.luaL_error(L, "#2 need System.Action!");
}
if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "+")) {
IronSourceEvents.onSdkInitializationCompletedEvent += gen_delegate;
return 0;
}
if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "-")) {
IronSourceEvents.onSdkInitializationCompletedEvent -= gen_delegate;
return 0;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return LuaAPI.luaL_error(L, "invalid arguments to IronSourceEvents.onSdkInitializationCompletedEvent!");
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _e_onSegmentReceivedEvent(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
int gen_param_count = LuaAPI.lua_gettop(L);
System.Action<string> gen_delegate = translator.GetDelegate<System.Action<string>>(L, 2);
if (gen_delegate == null) {
return LuaAPI.luaL_error(L, "#2 need System.Action<string>!");
}
if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "+")) {
IronSourceEvents.onSegmentReceivedEvent += gen_delegate;
return 0;
}
if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "-")) {
IronSourceEvents.onSegmentReceivedEvent -= gen_delegate;
return 0;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return LuaAPI.luaL_error(L, "invalid arguments to IronSourceEvents.onSegmentReceivedEvent!");
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _e_onConsentViewDidFailToLoadWithErrorEvent(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
int gen_param_count = LuaAPI.lua_gettop(L);
System.Action<string, IronSourceError> gen_delegate = translator.GetDelegate<System.Action<string, IronSourceError>>(L, 2);
if (gen_delegate == null) {
return LuaAPI.luaL_error(L, "#2 need System.Action<string, IronSourceError>!");
}
if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "+")) {
IronSourceEvents.onConsentViewDidFailToLoadWithErrorEvent += gen_delegate;
return 0;
}
if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "-")) {
IronSourceEvents.onConsentViewDidFailToLoadWithErrorEvent -= gen_delegate;
return 0;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return LuaAPI.luaL_error(L, "invalid arguments to IronSourceEvents.onConsentViewDidFailToLoadWithErrorEvent!");
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _e_onConsentViewDidFailToShowWithErrorEvent(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
int gen_param_count = LuaAPI.lua_gettop(L);
System.Action<string, IronSourceError> gen_delegate = translator.GetDelegate<System.Action<string, IronSourceError>>(L, 2);
if (gen_delegate == null) {
return LuaAPI.luaL_error(L, "#2 need System.Action<string, IronSourceError>!");
}
if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "+")) {
IronSourceEvents.onConsentViewDidFailToShowWithErrorEvent += gen_delegate;
return 0;
}
if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "-")) {
IronSourceEvents.onConsentViewDidFailToShowWithErrorEvent -= gen_delegate;
return 0;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return LuaAPI.luaL_error(L, "invalid arguments to IronSourceEvents.onConsentViewDidFailToShowWithErrorEvent!");
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _e_onConsentViewDidAcceptEvent(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
int gen_param_count = LuaAPI.lua_gettop(L);
System.Action<string> gen_delegate = translator.GetDelegate<System.Action<string>>(L, 2);
if (gen_delegate == null) {
return LuaAPI.luaL_error(L, "#2 need System.Action<string>!");
}
if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "+")) {
IronSourceEvents.onConsentViewDidAcceptEvent += gen_delegate;
return 0;
}
if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "-")) {
IronSourceEvents.onConsentViewDidAcceptEvent -= gen_delegate;
return 0;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return LuaAPI.luaL_error(L, "invalid arguments to IronSourceEvents.onConsentViewDidAcceptEvent!");
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _e_onConsentViewDidDismissEvent(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
int gen_param_count = LuaAPI.lua_gettop(L);
System.Action<string> gen_delegate = translator.GetDelegate<System.Action<string>>(L, 2);
if (gen_delegate == null) {
return LuaAPI.luaL_error(L, "#2 need System.Action<string>!");
}
if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "+")) {
IronSourceEvents.onConsentViewDidDismissEvent += gen_delegate;
return 0;
}
if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "-")) {
IronSourceEvents.onConsentViewDidDismissEvent -= gen_delegate;
return 0;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return LuaAPI.luaL_error(L, "invalid arguments to IronSourceEvents.onConsentViewDidDismissEvent!");
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _e_onConsentViewDidLoadSuccessEvent(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
int gen_param_count = LuaAPI.lua_gettop(L);
System.Action<string> gen_delegate = translator.GetDelegate<System.Action<string>>(L, 2);
if (gen_delegate == null) {
return LuaAPI.luaL_error(L, "#2 need System.Action<string>!");
}
if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "+")) {
IronSourceEvents.onConsentViewDidLoadSuccessEvent += gen_delegate;
return 0;
}
if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "-")) {
IronSourceEvents.onConsentViewDidLoadSuccessEvent -= gen_delegate;
return 0;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return LuaAPI.luaL_error(L, "invalid arguments to IronSourceEvents.onConsentViewDidLoadSuccessEvent!");
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _e_onConsentViewDidShowSuccessEvent(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
int gen_param_count = LuaAPI.lua_gettop(L);
System.Action<string> gen_delegate = translator.GetDelegate<System.Action<string>>(L, 2);
if (gen_delegate == null) {
return LuaAPI.luaL_error(L, "#2 need System.Action<string>!");
}
if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "+")) {
IronSourceEvents.onConsentViewDidShowSuccessEvent += gen_delegate;
return 0;
}
if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "-")) {
IronSourceEvents.onConsentViewDidShowSuccessEvent -= gen_delegate;
return 0;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return LuaAPI.luaL_error(L, "invalid arguments to IronSourceEvents.onConsentViewDidShowSuccessEvent!");
}
}
}