From ed5e2f1dc7e4c8a519409c760bcef025a0c45748 Mon Sep 17 00:00:00 2001 From: xiekaidong Date: Mon, 28 Aug 2023 15:07:57 +0800 Subject: [PATCH] xlua --- Assets/XLua/Gen/AndroidAgentWrap.cs | 1536 ----------------- Assets/XLua/Gen/DelegatesGensBridge.cs | 192 +-- .../Gen/ISAdQualityAndroidInitHandlerWrap.cs | 212 --- .../XLua/Gen/IronSourceBannerAndroidWrap.cs | 294 ---- Assets/XLua/Gen/IronSourceBannerEventsWrap.cs | 148 +- .../IronSourceBannerLevelPlayAndroidWrap.cs | 294 ---- Assets/XLua/Gen/IronSourceEventsWrap.cs | 60 +- .../IronSourceImpressionDataAndroidWrap.cs | 212 --- .../IronSourceInitializationAndroidWrap.cs | 119 -- .../Gen/IronSourceInterstitialAndroidWrap.cs | 574 ------ ...nSourceInterstitialLevelPlayAndroidWrap.cs | 329 ---- .../Gen/IronSourceOfferwallAndroidWrap.cs | 466 ----- .../Gen/IronSourceRewardedVideoAndroidWrap.cs | 609 ------- ...SourceRewardedVideoLevelPlayAndroidWrap.cs | 329 ---- ...RewardedVideoLevelPlayManualAndroidWrap.cs | 154 -- ...ronSourceRewardedVideoManualAndroidWrap.cs | 154 -- Assets/XLua/Gen/XLuaGenAutoRegister.cs | 83 +- .../Gen/com_adjust_sdk_AdjustUtilsWrap.cs | 31 +- Assets/XLua/Gen/link.xml | 13 - 19 files changed, 206 insertions(+), 5603 deletions(-) delete mode 100644 Assets/XLua/Gen/AndroidAgentWrap.cs delete mode 100644 Assets/XLua/Gen/ISAdQualityAndroidInitHandlerWrap.cs delete mode 100644 Assets/XLua/Gen/IronSourceBannerAndroidWrap.cs delete mode 100644 Assets/XLua/Gen/IronSourceBannerLevelPlayAndroidWrap.cs delete mode 100644 Assets/XLua/Gen/IronSourceImpressionDataAndroidWrap.cs delete mode 100644 Assets/XLua/Gen/IronSourceInitializationAndroidWrap.cs delete mode 100644 Assets/XLua/Gen/IronSourceInterstitialAndroidWrap.cs delete mode 100644 Assets/XLua/Gen/IronSourceInterstitialLevelPlayAndroidWrap.cs delete mode 100644 Assets/XLua/Gen/IronSourceOfferwallAndroidWrap.cs delete mode 100644 Assets/XLua/Gen/IronSourceRewardedVideoAndroidWrap.cs delete mode 100644 Assets/XLua/Gen/IronSourceRewardedVideoLevelPlayAndroidWrap.cs delete mode 100644 Assets/XLua/Gen/IronSourceRewardedVideoLevelPlayManualAndroidWrap.cs delete mode 100644 Assets/XLua/Gen/IronSourceRewardedVideoManualAndroidWrap.cs diff --git a/Assets/XLua/Gen/AndroidAgentWrap.cs b/Assets/XLua/Gen/AndroidAgentWrap.cs deleted file mode 100644 index 0ef548ce7..000000000 --- a/Assets/XLua/Gen/AndroidAgentWrap.cs +++ /dev/null @@ -1,1536 +0,0 @@ -#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 AndroidAgentWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(AndroidAgent); - Utils.BeginObjectRegister(type, L, translator, 0, 47, 0, 0); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "getBridge", _m_getBridge); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetWaterfallConfiguration", _m_SetWaterfallConfiguration); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "onApplicationPause", _m_onApplicationPause); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "getAdvertiserId", _m_getAdvertiserId); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "validateIntegration", _m_validateIntegration); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "shouldTrackNetworkState", _m_shouldTrackNetworkState); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "setDynamicUserId", _m_setDynamicUserId); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "setAdaptersDebug", _m_setAdaptersDebug); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "setMetaData", _m_setMetaData); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "getConversionValue", _m_getConversionValue); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "setManualLoadRewardedVideo", _m_setManualLoadRewardedVideo); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "setNetworkData", _m_setNetworkData); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetPauseGame", _m_SetPauseGame); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "setUserId", _m_setUserId); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "init", _m_init); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "initISDemandOnly", _m_initISDemandOnly); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "loadRewardedVideo", _m_loadRewardedVideo); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "showRewardedVideo", _m_showRewardedVideo); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "isRewardedVideoAvailable", _m_isRewardedVideoAvailable); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "isRewardedVideoPlacementCapped", _m_isRewardedVideoPlacementCapped); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "getPlacementInfo", _m_getPlacementInfo); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "setRewardedVideoServerParams", _m_setRewardedVideoServerParams); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "clearRewardedVideoServerParams", _m_clearRewardedVideoServerParams); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "showISDemandOnlyRewardedVideo", _m_showISDemandOnlyRewardedVideo); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "loadISDemandOnlyRewardedVideo", _m_loadISDemandOnlyRewardedVideo); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "isISDemandOnlyRewardedVideoAvailable", _m_isISDemandOnlyRewardedVideoAvailable); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "loadInterstitial", _m_loadInterstitial); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "showInterstitial", _m_showInterstitial); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "isInterstitialReady", _m_isInterstitialReady); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "isInterstitialPlacementCapped", _m_isInterstitialPlacementCapped); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "loadISDemandOnlyInterstitial", _m_loadISDemandOnlyInterstitial); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "showISDemandOnlyInterstitial", _m_showISDemandOnlyInterstitial); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "isISDemandOnlyInterstitialReady", _m_isISDemandOnlyInterstitialReady); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "showOfferwall", _m_showOfferwall); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "getOfferwallCredits", _m_getOfferwallCredits); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "isOfferwallAvailable", _m_isOfferwallAvailable); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "loadBanner", _m_loadBanner); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "destroyBanner", _m_destroyBanner); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "displayBanner", _m_displayBanner); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "hideBanner", _m_hideBanner); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "isBannerPlacementCapped", _m_isBannerPlacementCapped); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "setSegment", _m_setSegment); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "setConsent", _m_setConsent); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "loadConsentViewWithType", _m_loadConsentViewWithType); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "showConsentViewWithType", _m_showConsentViewWithType); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "setAdRevenueData", _m_setAdRevenueData); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "launchTestSuite", _m_launchTestSuite); - - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - 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 AndroidAgent(); - 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 AndroidAgent constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_getBridge(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - AndroidAgent gen_to_be_invoked = (AndroidAgent)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.getBridge( ); - translator.Push(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_SetWaterfallConfiguration(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - AndroidAgent gen_to_be_invoked = (AndroidAgent)translator.FastGetCSObj(L, 1); - - - - { - WaterfallConfiguration _waterfallConfiguration = (WaterfallConfiguration)translator.GetObject(L, 2, typeof(WaterfallConfiguration)); - AdFormat _adFormat;translator.Get(L, 3, out _adFormat); - - gen_to_be_invoked.SetWaterfallConfiguration( _waterfallConfiguration, _adFormat ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_onApplicationPause(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - AndroidAgent gen_to_be_invoked = (AndroidAgent)translator.FastGetCSObj(L, 1); - - - - { - bool _pause = LuaAPI.lua_toboolean(L, 2); - - gen_to_be_invoked.onApplicationPause( _pause ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_getAdvertiserId(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - AndroidAgent gen_to_be_invoked = (AndroidAgent)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.getAdvertiserId( ); - LuaAPI.lua_pushstring(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_validateIntegration(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - AndroidAgent gen_to_be_invoked = (AndroidAgent)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.validateIntegration( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_shouldTrackNetworkState(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - AndroidAgent gen_to_be_invoked = (AndroidAgent)translator.FastGetCSObj(L, 1); - - - - { - bool _track = LuaAPI.lua_toboolean(L, 2); - - gen_to_be_invoked.shouldTrackNetworkState( _track ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_setDynamicUserId(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - AndroidAgent gen_to_be_invoked = (AndroidAgent)translator.FastGetCSObj(L, 1); - - - - { - string _dynamicUserId = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.setDynamicUserId( _dynamicUserId ); - 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_setAdaptersDebug(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - AndroidAgent gen_to_be_invoked = (AndroidAgent)translator.FastGetCSObj(L, 1); - - - - { - bool _enabled = LuaAPI.lua_toboolean(L, 2); - - gen_to_be_invoked.setAdaptersDebug( _enabled ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_setMetaData(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - AndroidAgent gen_to_be_invoked = (AndroidAgent)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)&& (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING)) - { - string _key = LuaAPI.lua_tostring(L, 2); - string _value = LuaAPI.lua_tostring(L, 3); - - gen_to_be_invoked.setMetaData( _key, _value ); - - - - return 0; - } - if(gen_param_count >= 2&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& (LuaTypes.LUA_TNONE == LuaAPI.lua_type(L, 3) || (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING))) - { - string _key = LuaAPI.lua_tostring(L, 2); - string[] _values = translator.GetParams(L, 3); - - gen_to_be_invoked.setMetaData( _key, _values ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to AndroidAgent.setMetaData!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_getConversionValue(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - AndroidAgent gen_to_be_invoked = (AndroidAgent)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.getConversionValue( ); - translator.PushAny(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_setManualLoadRewardedVideo(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - AndroidAgent gen_to_be_invoked = (AndroidAgent)translator.FastGetCSObj(L, 1); - - - - { - bool _isOn = LuaAPI.lua_toboolean(L, 2); - - gen_to_be_invoked.setManualLoadRewardedVideo( _isOn ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_setNetworkData(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - AndroidAgent gen_to_be_invoked = (AndroidAgent)translator.FastGetCSObj(L, 1); - - - - { - string _networkKey = LuaAPI.lua_tostring(L, 2); - string _networkData = LuaAPI.lua_tostring(L, 3); - - gen_to_be_invoked.setNetworkData( _networkKey, _networkData ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_SetPauseGame(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - AndroidAgent gen_to_be_invoked = (AndroidAgent)translator.FastGetCSObj(L, 1); - - - - { - bool _pause = LuaAPI.lua_toboolean(L, 2); - - gen_to_be_invoked.SetPauseGame( _pause ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_setUserId(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - AndroidAgent gen_to_be_invoked = (AndroidAgent)translator.FastGetCSObj(L, 1); - - - - { - string _userId = LuaAPI.lua_tostring(L, 2); - - gen_to_be_invoked.setUserId( _userId ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_init(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - AndroidAgent gen_to_be_invoked = (AndroidAgent)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _appKey = LuaAPI.lua_tostring(L, 2); - - gen_to_be_invoked.init( _appKey ); - - - - return 0; - } - if(gen_param_count >= 2&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& (LuaTypes.LUA_TNONE == LuaAPI.lua_type(L, 3) || (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING))) - { - string _appKey = LuaAPI.lua_tostring(L, 2); - string[] _adUnits = translator.GetParams(L, 3); - - gen_to_be_invoked.init( _appKey, _adUnits ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to AndroidAgent.init!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_initISDemandOnly(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - AndroidAgent gen_to_be_invoked = (AndroidAgent)translator.FastGetCSObj(L, 1); - - - - { - string _appKey = LuaAPI.lua_tostring(L, 2); - string[] _adUnits = translator.GetParams(L, 3); - - gen_to_be_invoked.initISDemandOnly( _appKey, _adUnits ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_loadRewardedVideo(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - AndroidAgent gen_to_be_invoked = (AndroidAgent)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.loadRewardedVideo( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_showRewardedVideo(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - AndroidAgent gen_to_be_invoked = (AndroidAgent)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1) - { - - gen_to_be_invoked.showRewardedVideo( ); - - - - return 0; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _placementName = LuaAPI.lua_tostring(L, 2); - - gen_to_be_invoked.showRewardedVideo( _placementName ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to AndroidAgent.showRewardedVideo!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_isRewardedVideoAvailable(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - AndroidAgent gen_to_be_invoked = (AndroidAgent)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.isRewardedVideoAvailable( ); - 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_isRewardedVideoPlacementCapped(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - AndroidAgent gen_to_be_invoked = (AndroidAgent)translator.FastGetCSObj(L, 1); - - - - { - string _placementName = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.isRewardedVideoPlacementCapped( _placementName ); - 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_getPlacementInfo(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - AndroidAgent gen_to_be_invoked = (AndroidAgent)translator.FastGetCSObj(L, 1); - - - - { - string _placementName = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.getPlacementInfo( _placementName ); - translator.Push(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_setRewardedVideoServerParams(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - AndroidAgent gen_to_be_invoked = (AndroidAgent)translator.FastGetCSObj(L, 1); - - - - { - System.Collections.Generic.Dictionary _parameters = (System.Collections.Generic.Dictionary)translator.GetObject(L, 2, typeof(System.Collections.Generic.Dictionary)); - - gen_to_be_invoked.setRewardedVideoServerParams( _parameters ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_clearRewardedVideoServerParams(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - AndroidAgent gen_to_be_invoked = (AndroidAgent)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.clearRewardedVideoServerParams( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_showISDemandOnlyRewardedVideo(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - AndroidAgent gen_to_be_invoked = (AndroidAgent)translator.FastGetCSObj(L, 1); - - - - { - string _instanceId = LuaAPI.lua_tostring(L, 2); - - gen_to_be_invoked.showISDemandOnlyRewardedVideo( _instanceId ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_loadISDemandOnlyRewardedVideo(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - AndroidAgent gen_to_be_invoked = (AndroidAgent)translator.FastGetCSObj(L, 1); - - - - { - string _instanceId = LuaAPI.lua_tostring(L, 2); - - gen_to_be_invoked.loadISDemandOnlyRewardedVideo( _instanceId ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_isISDemandOnlyRewardedVideoAvailable(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - AndroidAgent gen_to_be_invoked = (AndroidAgent)translator.FastGetCSObj(L, 1); - - - - { - string _instanceId = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.isISDemandOnlyRewardedVideoAvailable( _instanceId ); - 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_loadInterstitial(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - AndroidAgent gen_to_be_invoked = (AndroidAgent)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.loadInterstitial( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_showInterstitial(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - AndroidAgent gen_to_be_invoked = (AndroidAgent)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1) - { - - gen_to_be_invoked.showInterstitial( ); - - - - return 0; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _placementName = LuaAPI.lua_tostring(L, 2); - - gen_to_be_invoked.showInterstitial( _placementName ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to AndroidAgent.showInterstitial!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_isInterstitialReady(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - AndroidAgent gen_to_be_invoked = (AndroidAgent)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.isInterstitialReady( ); - 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_isInterstitialPlacementCapped(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - AndroidAgent gen_to_be_invoked = (AndroidAgent)translator.FastGetCSObj(L, 1); - - - - { - string _placementName = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.isInterstitialPlacementCapped( _placementName ); - 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_loadISDemandOnlyInterstitial(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - AndroidAgent gen_to_be_invoked = (AndroidAgent)translator.FastGetCSObj(L, 1); - - - - { - string _instanceId = LuaAPI.lua_tostring(L, 2); - - gen_to_be_invoked.loadISDemandOnlyInterstitial( _instanceId ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_showISDemandOnlyInterstitial(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - AndroidAgent gen_to_be_invoked = (AndroidAgent)translator.FastGetCSObj(L, 1); - - - - { - string _instanceId = LuaAPI.lua_tostring(L, 2); - - gen_to_be_invoked.showISDemandOnlyInterstitial( _instanceId ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_isISDemandOnlyInterstitialReady(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - AndroidAgent gen_to_be_invoked = (AndroidAgent)translator.FastGetCSObj(L, 1); - - - - { - string _instanceId = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.isISDemandOnlyInterstitialReady( _instanceId ); - 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_showOfferwall(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - AndroidAgent gen_to_be_invoked = (AndroidAgent)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 1) - { - - gen_to_be_invoked.showOfferwall( ); - - - - return 0; - } - if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) - { - string _placementName = LuaAPI.lua_tostring(L, 2); - - gen_to_be_invoked.showOfferwall( _placementName ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to AndroidAgent.showOfferwall!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_getOfferwallCredits(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - AndroidAgent gen_to_be_invoked = (AndroidAgent)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.getOfferwallCredits( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_isOfferwallAvailable(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - AndroidAgent gen_to_be_invoked = (AndroidAgent)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.isOfferwallAvailable( ); - 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_loadBanner(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - AndroidAgent gen_to_be_invoked = (AndroidAgent)translator.FastGetCSObj(L, 1); - - - int gen_param_count = LuaAPI.lua_gettop(L); - - if(gen_param_count == 3&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)) - { - IronSourceBannerSize _size = (IronSourceBannerSize)translator.GetObject(L, 2, typeof(IronSourceBannerSize)); - IronSourceBannerPosition _position;translator.Get(L, 3, out _position); - - gen_to_be_invoked.loadBanner( _size, _position ); - - - - return 0; - } - if(gen_param_count == 4&& translator.Assignable(L, 2)&& translator.Assignable(L, 3)&& (LuaAPI.lua_isnil(L, 4) || LuaAPI.lua_type(L, 4) == LuaTypes.LUA_TSTRING)) - { - IronSourceBannerSize _size = (IronSourceBannerSize)translator.GetObject(L, 2, typeof(IronSourceBannerSize)); - IronSourceBannerPosition _position;translator.Get(L, 3, out _position); - string _placementName = LuaAPI.lua_tostring(L, 4); - - gen_to_be_invoked.loadBanner( _size, _position, _placementName ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - return LuaAPI.luaL_error(L, "invalid arguments to AndroidAgent.loadBanner!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_destroyBanner(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - AndroidAgent gen_to_be_invoked = (AndroidAgent)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.destroyBanner( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_displayBanner(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - AndroidAgent gen_to_be_invoked = (AndroidAgent)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.displayBanner( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_hideBanner(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - AndroidAgent gen_to_be_invoked = (AndroidAgent)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.hideBanner( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_isBannerPlacementCapped(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - AndroidAgent gen_to_be_invoked = (AndroidAgent)translator.FastGetCSObj(L, 1); - - - - { - string _placementName = LuaAPI.lua_tostring(L, 2); - - var gen_ret = gen_to_be_invoked.isBannerPlacementCapped( _placementName ); - 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_setSegment(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - AndroidAgent gen_to_be_invoked = (AndroidAgent)translator.FastGetCSObj(L, 1); - - - - { - IronSourceSegment _segment = (IronSourceSegment)translator.GetObject(L, 2, typeof(IronSourceSegment)); - - gen_to_be_invoked.setSegment( _segment ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_setConsent(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - AndroidAgent gen_to_be_invoked = (AndroidAgent)translator.FastGetCSObj(L, 1); - - - - { - bool _consent = LuaAPI.lua_toboolean(L, 2); - - gen_to_be_invoked.setConsent( _consent ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_loadConsentViewWithType(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - AndroidAgent gen_to_be_invoked = (AndroidAgent)translator.FastGetCSObj(L, 1); - - - - { - string _consentViewType = LuaAPI.lua_tostring(L, 2); - - gen_to_be_invoked.loadConsentViewWithType( _consentViewType ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_showConsentViewWithType(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - AndroidAgent gen_to_be_invoked = (AndroidAgent)translator.FastGetCSObj(L, 1); - - - - { - string _consentViewType = LuaAPI.lua_tostring(L, 2); - - gen_to_be_invoked.showConsentViewWithType( _consentViewType ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_setAdRevenueData(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - AndroidAgent gen_to_be_invoked = (AndroidAgent)translator.FastGetCSObj(L, 1); - - - - { - string _dataSource = LuaAPI.lua_tostring(L, 2); - System.Collections.Generic.Dictionary _impressionData = (System.Collections.Generic.Dictionary)translator.GetObject(L, 3, typeof(System.Collections.Generic.Dictionary)); - - gen_to_be_invoked.setAdRevenueData( _dataSource, _impressionData ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_launchTestSuite(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - AndroidAgent gen_to_be_invoked = (AndroidAgent)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.launchTestSuite( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - - - - - - - } -} diff --git a/Assets/XLua/Gen/DelegatesGensBridge.cs b/Assets/XLua/Gen/DelegatesGensBridge.cs index e45320bd3..5dde8af8f 100644 --- a/Assets/XLua/Gen/DelegatesGensBridge.cs +++ b/Assets/XLua/Gen/DelegatesGensBridge.cs @@ -2007,30 +2007,7 @@ namespace XLua #endif } - public void __Gen_Delegate_Imp89(ISAdQualityInitError p0, string p1) - { -#if THREAD_SAFE || HOTFIX_ENABLE - lock (luaEnv.luaEnvLock) - { -#endif - RealStatePtr L = luaEnv.rawL; - int errFunc = LuaAPI.pcall_prepare(L, errorFuncRef, luaReference); - ObjectTranslator translator = luaEnv.translator; - translator.PushISAdQualityInitError(L, p0); - LuaAPI.lua_pushstring(L, p1); - - PCall(L, 2, 0, errFunc); - - - - LuaAPI.lua_settop(L, errFunc - 1); - -#if THREAD_SAFE || HOTFIX_ENABLE - } -#endif - } - - public string __Gen_Delegate_Imp90(System.DateTime p0) + public string __Gen_Delegate_Imp89(System.DateTime p0) { #if THREAD_SAFE || HOTFIX_ENABLE lock (luaEnv.luaEnvLock) @@ -2052,7 +2029,7 @@ namespace XLua #endif } - public void __Gen_Delegate_Imp91(com.adjust.sdk.AdjustAttribution p0) + public void __Gen_Delegate_Imp90(com.adjust.sdk.AdjustAttribution p0) { #if THREAD_SAFE || HOTFIX_ENABLE lock (luaEnv.luaEnvLock) @@ -2074,7 +2051,7 @@ namespace XLua #endif } - public void __Gen_Delegate_Imp92(com.adjust.sdk.AdjustEventSuccess p0) + public void __Gen_Delegate_Imp91(com.adjust.sdk.AdjustEventSuccess p0) { #if THREAD_SAFE || HOTFIX_ENABLE lock (luaEnv.luaEnvLock) @@ -2096,7 +2073,7 @@ namespace XLua #endif } - public void __Gen_Delegate_Imp93(com.adjust.sdk.AdjustEventFailure p0) + public void __Gen_Delegate_Imp92(com.adjust.sdk.AdjustEventFailure p0) { #if THREAD_SAFE || HOTFIX_ENABLE lock (luaEnv.luaEnvLock) @@ -2118,7 +2095,7 @@ namespace XLua #endif } - public void __Gen_Delegate_Imp94(com.adjust.sdk.AdjustSessionSuccess p0) + public void __Gen_Delegate_Imp93(com.adjust.sdk.AdjustSessionSuccess p0) { #if THREAD_SAFE || HOTFIX_ENABLE lock (luaEnv.luaEnvLock) @@ -2140,7 +2117,7 @@ namespace XLua #endif } - public void __Gen_Delegate_Imp95(com.adjust.sdk.AdjustSessionFailure p0) + public void __Gen_Delegate_Imp94(com.adjust.sdk.AdjustSessionFailure p0) { #if THREAD_SAFE || HOTFIX_ENABLE lock (luaEnv.luaEnvLock) @@ -2162,7 +2139,7 @@ namespace XLua #endif } - public void __Gen_Delegate_Imp96(int p0, string p1, bool p2) + public void __Gen_Delegate_Imp95(int p0, string p1, bool p2) { #if THREAD_SAFE || HOTFIX_ENABLE lock (luaEnv.luaEnvLock) @@ -2186,7 +2163,7 @@ namespace XLua #endif } - public void __Gen_Delegate_Imp97(Http.ResultInfo p0) + public void __Gen_Delegate_Imp96(Http.ResultInfo p0) { #if THREAD_SAFE || HOTFIX_ENABLE lock (luaEnv.luaEnvLock) @@ -2208,7 +2185,7 @@ namespace XLua #endif } - public void __Gen_Delegate_Imp98(System.IAsyncResult p0) + public void __Gen_Delegate_Imp97(System.IAsyncResult p0) { #if THREAD_SAFE || HOTFIX_ENABLE lock (luaEnv.luaEnvLock) @@ -2230,7 +2207,7 @@ namespace XLua #endif } - public void __Gen_Delegate_Imp99(object p0, System.EventArgs p1) + public void __Gen_Delegate_Imp98(object p0, System.EventArgs p1) { #if THREAD_SAFE || HOTFIX_ENABLE lock (luaEnv.luaEnvLock) @@ -2253,7 +2230,7 @@ namespace XLua #endif } - public bool __Gen_Delegate_Imp100(int p0) + public bool __Gen_Delegate_Imp99(int p0) { #if THREAD_SAFE || HOTFIX_ENABLE lock (luaEnv.luaEnvLock) @@ -2275,7 +2252,7 @@ namespace XLua #endif } - public int __Gen_Delegate_Imp101(int p0, int p1) + public int __Gen_Delegate_Imp100(int p0, int p1) { #if THREAD_SAFE || HOTFIX_ENABLE lock (luaEnv.luaEnvLock) @@ -2298,7 +2275,7 @@ namespace XLua #endif } - public bool __Gen_Delegate_Imp102(float p0) + public bool __Gen_Delegate_Imp101(float p0) { #if THREAD_SAFE || HOTFIX_ENABLE lock (luaEnv.luaEnvLock) @@ -2320,7 +2297,7 @@ namespace XLua #endif } - public int __Gen_Delegate_Imp103(float p0, float p1) + public int __Gen_Delegate_Imp102(float p0, float p1) { #if THREAD_SAFE || HOTFIX_ENABLE lock (luaEnv.luaEnvLock) @@ -2343,7 +2320,7 @@ namespace XLua #endif } - public int __Gen_Delegate_Imp104(string p0, string p1) + public int __Gen_Delegate_Imp103(string p0, string p1) { #if THREAD_SAFE || HOTFIX_ENABLE lock (luaEnv.luaEnvLock) @@ -2366,7 +2343,7 @@ namespace XLua #endif } - public bool __Gen_Delegate_Imp105(TMPro.TMP_FontAsset p0) + public bool __Gen_Delegate_Imp104(TMPro.TMP_FontAsset p0) { #if THREAD_SAFE || HOTFIX_ENABLE lock (luaEnv.luaEnvLock) @@ -2388,7 +2365,7 @@ namespace XLua #endif } - public void __Gen_Delegate_Imp106(TMPro.TMP_FontAsset p0) + public void __Gen_Delegate_Imp105(TMPro.TMP_FontAsset p0) { #if THREAD_SAFE || HOTFIX_ENABLE lock (luaEnv.luaEnvLock) @@ -2410,7 +2387,7 @@ namespace XLua #endif } - public int __Gen_Delegate_Imp107(TMPro.TMP_FontAsset p0, TMPro.TMP_FontAsset p1) + public int __Gen_Delegate_Imp106(TMPro.TMP_FontAsset p0, TMPro.TMP_FontAsset p1) { #if THREAD_SAFE || HOTFIX_ENABLE lock (luaEnv.luaEnvLock) @@ -2433,7 +2410,7 @@ namespace XLua #endif } - public bool __Gen_Delegate_Imp108(UnityEngine.Camera p0) + public bool __Gen_Delegate_Imp107(UnityEngine.Camera p0) { #if THREAD_SAFE || HOTFIX_ENABLE lock (luaEnv.luaEnvLock) @@ -2455,7 +2432,7 @@ namespace XLua #endif } - public int __Gen_Delegate_Imp109(UnityEngine.Camera p0, UnityEngine.Camera p1) + public int __Gen_Delegate_Imp108(UnityEngine.Camera p0, UnityEngine.Camera p1) { #if THREAD_SAFE || HOTFIX_ENABLE lock (luaEnv.luaEnvLock) @@ -2478,7 +2455,7 @@ namespace XLua #endif } - public bool __Gen_Delegate_Imp110(System.Collections.Generic.List p0) + public bool __Gen_Delegate_Imp109(System.Collections.Generic.List p0) { #if THREAD_SAFE || HOTFIX_ENABLE lock (luaEnv.luaEnvLock) @@ -2500,7 +2477,7 @@ namespace XLua #endif } - public void __Gen_Delegate_Imp111(System.Collections.Generic.List p0) + public void __Gen_Delegate_Imp110(System.Collections.Generic.List p0) { #if THREAD_SAFE || HOTFIX_ENABLE lock (luaEnv.luaEnvLock) @@ -2522,7 +2499,7 @@ namespace XLua #endif } - public int __Gen_Delegate_Imp112(System.Collections.Generic.List p0, System.Collections.Generic.List p1) + public int __Gen_Delegate_Imp111(System.Collections.Generic.List p0, System.Collections.Generic.List p1) { #if THREAD_SAFE || HOTFIX_ENABLE lock (luaEnv.luaEnvLock) @@ -2545,7 +2522,7 @@ namespace XLua #endif } - public void __Gen_Delegate_Imp113(UnityEngine.Playables.PlayableDirector p0) + public void __Gen_Delegate_Imp112(UnityEngine.Playables.PlayableDirector p0) { #if THREAD_SAFE || HOTFIX_ENABLE lock (luaEnv.luaEnvLock) @@ -2567,7 +2544,7 @@ namespace XLua #endif } - public void __Gen_Delegate_Imp114(UnityEngine.SceneManagement.Scene p0, UnityEngine.SceneManagement.LoadSceneMode p1) + public void __Gen_Delegate_Imp113(UnityEngine.SceneManagement.Scene p0, UnityEngine.SceneManagement.LoadSceneMode p1) { #if THREAD_SAFE || HOTFIX_ENABLE lock (luaEnv.luaEnvLock) @@ -2590,7 +2567,7 @@ namespace XLua #endif } - public void __Gen_Delegate_Imp115(UnityEngine.SceneManagement.Scene p0) + public void __Gen_Delegate_Imp114(UnityEngine.SceneManagement.Scene p0) { #if THREAD_SAFE || HOTFIX_ENABLE lock (luaEnv.luaEnvLock) @@ -2612,7 +2589,7 @@ namespace XLua #endif } - public void __Gen_Delegate_Imp116(UnityEngine.SceneManagement.Scene p0, UnityEngine.SceneManagement.Scene p1) + public void __Gen_Delegate_Imp115(UnityEngine.SceneManagement.Scene p0, UnityEngine.SceneManagement.Scene p1) { #if THREAD_SAFE || HOTFIX_ENABLE lock (luaEnv.luaEnvLock) @@ -2635,7 +2612,7 @@ namespace XLua #endif } - public void __Gen_Delegate_Imp117(UnityEngine.Video.VideoPlayer p0) + public void __Gen_Delegate_Imp116(UnityEngine.Video.VideoPlayer p0) { #if THREAD_SAFE || HOTFIX_ENABLE lock (luaEnv.luaEnvLock) @@ -2657,7 +2634,7 @@ namespace XLua #endif } - public void __Gen_Delegate_Imp118(UnityEngine.Video.VideoPlayer p0, string p1) + public void __Gen_Delegate_Imp117(UnityEngine.Video.VideoPlayer p0, string p1) { #if THREAD_SAFE || HOTFIX_ENABLE lock (luaEnv.luaEnvLock) @@ -2680,7 +2657,7 @@ namespace XLua #endif } - public void __Gen_Delegate_Imp119(UnityEngine.Video.VideoPlayer p0, double p1) + public void __Gen_Delegate_Imp118(UnityEngine.Video.VideoPlayer p0, double p1) { #if THREAD_SAFE || HOTFIX_ENABLE lock (luaEnv.luaEnvLock) @@ -2703,7 +2680,7 @@ namespace XLua #endif } - public void __Gen_Delegate_Imp120(UnityEngine.Video.VideoPlayer p0, long p1) + public void __Gen_Delegate_Imp119(UnityEngine.Video.VideoPlayer p0, long p1) { #if THREAD_SAFE || HOTFIX_ENABLE lock (luaEnv.luaEnvLock) @@ -2726,7 +2703,7 @@ namespace XLua #endif } - public void __Gen_Delegate_Imp121(Spine.TrackEntry p0) + public void __Gen_Delegate_Imp120(Spine.TrackEntry p0) { #if THREAD_SAFE || HOTFIX_ENABLE lock (luaEnv.luaEnvLock) @@ -2748,7 +2725,7 @@ namespace XLua #endif } - public void __Gen_Delegate_Imp122(Spine.TrackEntry p0, Spine.Event p1) + public void __Gen_Delegate_Imp121(Spine.TrackEntry p0, Spine.Event p1) { #if THREAD_SAFE || HOTFIX_ENABLE lock (luaEnv.luaEnvLock) @@ -2771,7 +2748,7 @@ namespace XLua #endif } - public void __Gen_Delegate_Imp123(UnityEngine.Mesh p0, UnityEngine.Material p1, UnityEngine.Texture p2) + public void __Gen_Delegate_Imp122(UnityEngine.Mesh p0, UnityEngine.Material p1, UnityEngine.Texture p2) { #if THREAD_SAFE || HOTFIX_ENABLE lock (luaEnv.luaEnvLock) @@ -2795,7 +2772,7 @@ namespace XLua #endif } - public void __Gen_Delegate_Imp124(int p0, UnityEngine.Mesh[] p1, UnityEngine.Material[] p2, UnityEngine.Texture[] p3) + public void __Gen_Delegate_Imp123(int p0, UnityEngine.Mesh[] p1, UnityEngine.Material[] p2, UnityEngine.Texture[] p3) { #if THREAD_SAFE || HOTFIX_ENABLE lock (luaEnv.luaEnvLock) @@ -2820,7 +2797,7 @@ namespace XLua #endif } - public void __Gen_Delegate_Imp125(Spine.Unity.SkeletonGraphic p0) + public void __Gen_Delegate_Imp124(Spine.Unity.SkeletonGraphic p0) { #if THREAD_SAFE || HOTFIX_ENABLE lock (luaEnv.luaEnvLock) @@ -2842,7 +2819,7 @@ namespace XLua #endif } - public void __Gen_Delegate_Imp126(Spine.Unity.SkeletonRendererInstruction p0) + public void __Gen_Delegate_Imp125(Spine.Unity.SkeletonRendererInstruction p0) { #if THREAD_SAFE || HOTFIX_ENABLE lock (luaEnv.luaEnvLock) @@ -2864,7 +2841,7 @@ namespace XLua #endif } - public void __Gen_Delegate_Imp127(Spine.Unity.ISkeletonAnimation p0) + public void __Gen_Delegate_Imp126(Spine.Unity.ISkeletonAnimation p0) { #if THREAD_SAFE || HOTFIX_ENABLE lock (luaEnv.luaEnvLock) @@ -2886,7 +2863,7 @@ namespace XLua #endif } - public void __Gen_Delegate_Imp128(Spine.Unity.MeshGeneratorBuffers p0) + public void __Gen_Delegate_Imp127(Spine.Unity.MeshGeneratorBuffers p0) { #if THREAD_SAFE || HOTFIX_ENABLE lock (luaEnv.luaEnvLock) @@ -2908,7 +2885,7 @@ namespace XLua #endif } - public void __Gen_Delegate_Imp129(Spine.Unity.SkeletonRenderer p0) + public void __Gen_Delegate_Imp128(Spine.Unity.SkeletonRenderer p0) { #if THREAD_SAFE || HOTFIX_ENABLE lock (luaEnv.luaEnvLock) @@ -3504,219 +3481,214 @@ namespace XLua return new System.Action(__Gen_Delegate_Imp88); } - if (type == typeof(System.Action)) - { - return new System.Action(__Gen_Delegate_Imp89); - } - if (type == typeof(System.Func)) { - return new System.Func(__Gen_Delegate_Imp90); + return new System.Func(__Gen_Delegate_Imp89); } if (type == typeof(System.Action)) { - return new System.Action(__Gen_Delegate_Imp91); + return new System.Action(__Gen_Delegate_Imp90); } if (type == typeof(System.Action)) { - return new System.Action(__Gen_Delegate_Imp92); + return new System.Action(__Gen_Delegate_Imp91); } if (type == typeof(System.Action)) { - return new System.Action(__Gen_Delegate_Imp93); + return new System.Action(__Gen_Delegate_Imp92); } if (type == typeof(System.Action)) { - return new System.Action(__Gen_Delegate_Imp94); + return new System.Action(__Gen_Delegate_Imp93); } if (type == typeof(System.Action)) { - return new System.Action(__Gen_Delegate_Imp95); + return new System.Action(__Gen_Delegate_Imp94); } if (type == typeof(System.Action)) { - return new System.Action(__Gen_Delegate_Imp96); + return new System.Action(__Gen_Delegate_Imp95); } if (type == typeof(System.Action)) { - return new System.Action(__Gen_Delegate_Imp97); + return new System.Action(__Gen_Delegate_Imp96); } if (type == typeof(System.AsyncCallback)) { - return new System.AsyncCallback(__Gen_Delegate_Imp98); + return new System.AsyncCallback(__Gen_Delegate_Imp97); } if (type == typeof(System.EventHandler)) { - return new System.EventHandler(__Gen_Delegate_Imp99); + return new System.EventHandler(__Gen_Delegate_Imp98); } if (type == typeof(System.Predicate)) { - return new System.Predicate(__Gen_Delegate_Imp100); + return new System.Predicate(__Gen_Delegate_Imp99); } if (type == typeof(System.Comparison)) { - return new System.Comparison(__Gen_Delegate_Imp101); + return new System.Comparison(__Gen_Delegate_Imp100); } if (type == typeof(System.Predicate)) { - return new System.Predicate(__Gen_Delegate_Imp102); + return new System.Predicate(__Gen_Delegate_Imp101); } if (type == typeof(System.Comparison)) { - return new System.Comparison(__Gen_Delegate_Imp103); + return new System.Comparison(__Gen_Delegate_Imp102); } if (type == typeof(System.Comparison)) { - return new System.Comparison(__Gen_Delegate_Imp104); + return new System.Comparison(__Gen_Delegate_Imp103); } if (type == typeof(System.Predicate)) { - return new System.Predicate(__Gen_Delegate_Imp105); + return new System.Predicate(__Gen_Delegate_Imp104); } if (type == typeof(System.Action)) { - return new System.Action(__Gen_Delegate_Imp106); + return new System.Action(__Gen_Delegate_Imp105); } if (type == typeof(System.Comparison)) { - return new System.Comparison(__Gen_Delegate_Imp107); + return new System.Comparison(__Gen_Delegate_Imp106); } if (type == typeof(System.Predicate)) { - return new System.Predicate(__Gen_Delegate_Imp108); + return new System.Predicate(__Gen_Delegate_Imp107); } if (type == typeof(System.Comparison)) { - return new System.Comparison(__Gen_Delegate_Imp109); + return new System.Comparison(__Gen_Delegate_Imp108); } if (type == typeof(System.Predicate>)) { - return new System.Predicate>(__Gen_Delegate_Imp110); + return new System.Predicate>(__Gen_Delegate_Imp109); } if (type == typeof(System.Action>)) { - return new System.Action>(__Gen_Delegate_Imp111); + return new System.Action>(__Gen_Delegate_Imp110); } if (type == typeof(System.Comparison>)) { - return new System.Comparison>(__Gen_Delegate_Imp112); + return new System.Comparison>(__Gen_Delegate_Imp111); } if (type == typeof(System.Action)) { - return new System.Action(__Gen_Delegate_Imp113); + return new System.Action(__Gen_Delegate_Imp112); } if (type == typeof(UnityEngine.Events.UnityAction)) { - return new UnityEngine.Events.UnityAction(__Gen_Delegate_Imp114); + return new UnityEngine.Events.UnityAction(__Gen_Delegate_Imp113); } if (type == typeof(UnityEngine.Events.UnityAction)) { - return new UnityEngine.Events.UnityAction(__Gen_Delegate_Imp115); + return new UnityEngine.Events.UnityAction(__Gen_Delegate_Imp114); } if (type == typeof(UnityEngine.Events.UnityAction)) { - return new UnityEngine.Events.UnityAction(__Gen_Delegate_Imp116); + return new UnityEngine.Events.UnityAction(__Gen_Delegate_Imp115); } if (type == typeof(UnityEngine.Video.VideoPlayer.EventHandler)) { - return new UnityEngine.Video.VideoPlayer.EventHandler(__Gen_Delegate_Imp117); + return new UnityEngine.Video.VideoPlayer.EventHandler(__Gen_Delegate_Imp116); } if (type == typeof(UnityEngine.Video.VideoPlayer.ErrorEventHandler)) { - return new UnityEngine.Video.VideoPlayer.ErrorEventHandler(__Gen_Delegate_Imp118); + return new UnityEngine.Video.VideoPlayer.ErrorEventHandler(__Gen_Delegate_Imp117); } if (type == typeof(UnityEngine.Video.VideoPlayer.TimeEventHandler)) { - return new UnityEngine.Video.VideoPlayer.TimeEventHandler(__Gen_Delegate_Imp119); + return new UnityEngine.Video.VideoPlayer.TimeEventHandler(__Gen_Delegate_Imp118); } if (type == typeof(UnityEngine.Video.VideoPlayer.FrameReadyEventHandler)) { - return new UnityEngine.Video.VideoPlayer.FrameReadyEventHandler(__Gen_Delegate_Imp120); + return new UnityEngine.Video.VideoPlayer.FrameReadyEventHandler(__Gen_Delegate_Imp119); } if (type == typeof(Spine.AnimationState.TrackEntryDelegate)) { - return new Spine.AnimationState.TrackEntryDelegate(__Gen_Delegate_Imp121); + return new Spine.AnimationState.TrackEntryDelegate(__Gen_Delegate_Imp120); } if (type == typeof(Spine.AnimationState.TrackEntryEventDelegate)) { - return new Spine.AnimationState.TrackEntryEventDelegate(__Gen_Delegate_Imp122); + return new Spine.AnimationState.TrackEntryEventDelegate(__Gen_Delegate_Imp121); } if (type == typeof(Spine.Unity.SkeletonGraphic.MeshAssignmentDelegateSingle)) { - return new Spine.Unity.SkeletonGraphic.MeshAssignmentDelegateSingle(__Gen_Delegate_Imp123); + return new Spine.Unity.SkeletonGraphic.MeshAssignmentDelegateSingle(__Gen_Delegate_Imp122); } if (type == typeof(Spine.Unity.SkeletonGraphic.MeshAssignmentDelegateMultiple)) { - return new Spine.Unity.SkeletonGraphic.MeshAssignmentDelegateMultiple(__Gen_Delegate_Imp124); + return new Spine.Unity.SkeletonGraphic.MeshAssignmentDelegateMultiple(__Gen_Delegate_Imp123); } if (type == typeof(Spine.Unity.SkeletonGraphic.SkeletonRendererDelegate)) { - return new Spine.Unity.SkeletonGraphic.SkeletonRendererDelegate(__Gen_Delegate_Imp125); + return new Spine.Unity.SkeletonGraphic.SkeletonRendererDelegate(__Gen_Delegate_Imp124); } if (type == typeof(Spine.Unity.SkeletonGraphic.InstructionDelegate)) { - return new Spine.Unity.SkeletonGraphic.InstructionDelegate(__Gen_Delegate_Imp126); + return new Spine.Unity.SkeletonGraphic.InstructionDelegate(__Gen_Delegate_Imp125); } if (type == typeof(Spine.Unity.SkeletonRenderer.InstructionDelegate)) { - return new Spine.Unity.SkeletonRenderer.InstructionDelegate(__Gen_Delegate_Imp126); + return new Spine.Unity.SkeletonRenderer.InstructionDelegate(__Gen_Delegate_Imp125); } if (type == typeof(Spine.Unity.ISkeletonAnimationDelegate)) { - return new Spine.Unity.ISkeletonAnimationDelegate(__Gen_Delegate_Imp127); + return new Spine.Unity.ISkeletonAnimationDelegate(__Gen_Delegate_Imp126); } if (type == typeof(Spine.Unity.UpdateBonesDelegate)) { - return new Spine.Unity.UpdateBonesDelegate(__Gen_Delegate_Imp127); + return new Spine.Unity.UpdateBonesDelegate(__Gen_Delegate_Imp126); } if (type == typeof(Spine.Unity.MeshGeneratorDelegate)) { - return new Spine.Unity.MeshGeneratorDelegate(__Gen_Delegate_Imp128); + return new Spine.Unity.MeshGeneratorDelegate(__Gen_Delegate_Imp127); } if (type == typeof(Spine.Unity.SkeletonRenderer.SkeletonRendererDelegate)) { - return new Spine.Unity.SkeletonRenderer.SkeletonRendererDelegate(__Gen_Delegate_Imp129); + return new Spine.Unity.SkeletonRenderer.SkeletonRendererDelegate(__Gen_Delegate_Imp128); } return null; diff --git a/Assets/XLua/Gen/ISAdQualityAndroidInitHandlerWrap.cs b/Assets/XLua/Gen/ISAdQualityAndroidInitHandlerWrap.cs deleted file mode 100644 index 112212fea..000000000 --- a/Assets/XLua/Gen/ISAdQualityAndroidInitHandlerWrap.cs +++ /dev/null @@ -1,212 +0,0 @@ -#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 ISAdQualityAndroidInitHandlerWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(ISAdQualityAndroidInitHandler); - Utils.BeginObjectRegister(type, L, translator, 0, 4, 0, 0); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "adQualitySdkInitSuccess", _m_adQualitySdkInitSuccess); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "adQualitySdkInitFailed", _m_adQualitySdkInitFailed); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnAdQualitySdkInitSuccess", _e_OnAdQualitySdkInitSuccess); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnAdQualitySdkInitFailed", _e_OnAdQualitySdkInitFailed); - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - 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 ISAdQualityAndroidInitHandler(); - 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 ISAdQualityAndroidInitHandler constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_adQualitySdkInitSuccess(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - ISAdQualityAndroidInitHandler gen_to_be_invoked = (ISAdQualityAndroidInitHandler)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.adQualitySdkInitSuccess( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_adQualitySdkInitFailed(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - ISAdQualityAndroidInitHandler gen_to_be_invoked = (ISAdQualityAndroidInitHandler)translator.FastGetCSObj(L, 1); - - - - { - int _adQualitySdkInitError = LuaAPI.xlua_tointeger(L, 2); - string _errorMessage = LuaAPI.lua_tostring(L, 3); - - gen_to_be_invoked.adQualitySdkInitFailed( _adQualitySdkInitError, _errorMessage ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_OnAdQualitySdkInitSuccess(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - ISAdQualityAndroidInitHandler gen_to_be_invoked = (ISAdQualityAndroidInitHandler)translator.FastGetCSObj(L, 1); - System.Action gen_delegate = translator.GetDelegate(L, 3); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#3 need System.Action!"); - } - - if (gen_param_count == 3) - { - - if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { - gen_to_be_invoked.OnAdQualitySdkInitSuccess += gen_delegate; - return 0; - } - - - if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { - gen_to_be_invoked.OnAdQualitySdkInitSuccess -= gen_delegate; - return 0; - } - - } - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - LuaAPI.luaL_error(L, "invalid arguments to ISAdQualityAndroidInitHandler.OnAdQualitySdkInitSuccess!"); - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_OnAdQualitySdkInitFailed(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - ISAdQualityAndroidInitHandler gen_to_be_invoked = (ISAdQualityAndroidInitHandler)translator.FastGetCSObj(L, 1); - System.Action gen_delegate = translator.GetDelegate>(L, 3); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#3 need System.Action!"); - } - - if (gen_param_count == 3) - { - - if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { - gen_to_be_invoked.OnAdQualitySdkInitFailed += gen_delegate; - return 0; - } - - - if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { - gen_to_be_invoked.OnAdQualitySdkInitFailed -= gen_delegate; - return 0; - } - - } - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - LuaAPI.luaL_error(L, "invalid arguments to ISAdQualityAndroidInitHandler.OnAdQualitySdkInitFailed!"); - return 0; - } - - - - } -} diff --git a/Assets/XLua/Gen/IronSourceBannerAndroidWrap.cs b/Assets/XLua/Gen/IronSourceBannerAndroidWrap.cs deleted file mode 100644 index ba4a315cf..000000000 --- a/Assets/XLua/Gen/IronSourceBannerAndroidWrap.cs +++ /dev/null @@ -1,294 +0,0 @@ -#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 IronSourceBannerAndroidWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(IronSourceBannerAndroid); - Utils.BeginObjectRegister(type, L, translator, 0, 6, 0, 0); - - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnBannerAdLoaded", _e_OnBannerAdLoaded); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnBannerAdLeftApplication", _e_OnBannerAdLeftApplication); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnBannerAdScreenDismissed", _e_OnBannerAdScreenDismissed); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnBannerAdScreenPresented", _e_OnBannerAdScreenPresented); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnBannerAdClicked", _e_OnBannerAdClicked); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnBannerAdLoadFailed", _e_OnBannerAdLoadFailed); - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - 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 IronSourceBannerAndroid(); - 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 IronSourceBannerAndroid constructor!"); - - } - - - - - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_OnBannerAdLoaded(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - IronSourceBannerAndroid gen_to_be_invoked = (IronSourceBannerAndroid)translator.FastGetCSObj(L, 1); - System.Action gen_delegate = translator.GetDelegate(L, 3); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#3 need System.Action!"); - } - - if (gen_param_count == 3) - { - - if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { - gen_to_be_invoked.OnBannerAdLoaded += gen_delegate; - return 0; - } - - - if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { - gen_to_be_invoked.OnBannerAdLoaded -= gen_delegate; - return 0; - } - - } - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - LuaAPI.luaL_error(L, "invalid arguments to IronSourceBannerAndroid.OnBannerAdLoaded!"); - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_OnBannerAdLeftApplication(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - IronSourceBannerAndroid gen_to_be_invoked = (IronSourceBannerAndroid)translator.FastGetCSObj(L, 1); - System.Action gen_delegate = translator.GetDelegate(L, 3); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#3 need System.Action!"); - } - - if (gen_param_count == 3) - { - - if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { - gen_to_be_invoked.OnBannerAdLeftApplication += gen_delegate; - return 0; - } - - - if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { - gen_to_be_invoked.OnBannerAdLeftApplication -= gen_delegate; - return 0; - } - - } - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - LuaAPI.luaL_error(L, "invalid arguments to IronSourceBannerAndroid.OnBannerAdLeftApplication!"); - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_OnBannerAdScreenDismissed(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - IronSourceBannerAndroid gen_to_be_invoked = (IronSourceBannerAndroid)translator.FastGetCSObj(L, 1); - System.Action gen_delegate = translator.GetDelegate(L, 3); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#3 need System.Action!"); - } - - if (gen_param_count == 3) - { - - if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { - gen_to_be_invoked.OnBannerAdScreenDismissed += gen_delegate; - return 0; - } - - - if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { - gen_to_be_invoked.OnBannerAdScreenDismissed -= gen_delegate; - return 0; - } - - } - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - LuaAPI.luaL_error(L, "invalid arguments to IronSourceBannerAndroid.OnBannerAdScreenDismissed!"); - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_OnBannerAdScreenPresented(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - IronSourceBannerAndroid gen_to_be_invoked = (IronSourceBannerAndroid)translator.FastGetCSObj(L, 1); - System.Action gen_delegate = translator.GetDelegate(L, 3); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#3 need System.Action!"); - } - - if (gen_param_count == 3) - { - - if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { - gen_to_be_invoked.OnBannerAdScreenPresented += gen_delegate; - return 0; - } - - - if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { - gen_to_be_invoked.OnBannerAdScreenPresented -= gen_delegate; - return 0; - } - - } - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - LuaAPI.luaL_error(L, "invalid arguments to IronSourceBannerAndroid.OnBannerAdScreenPresented!"); - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_OnBannerAdClicked(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - IronSourceBannerAndroid gen_to_be_invoked = (IronSourceBannerAndroid)translator.FastGetCSObj(L, 1); - System.Action gen_delegate = translator.GetDelegate(L, 3); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#3 need System.Action!"); - } - - if (gen_param_count == 3) - { - - if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { - gen_to_be_invoked.OnBannerAdClicked += gen_delegate; - return 0; - } - - - if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { - gen_to_be_invoked.OnBannerAdClicked -= gen_delegate; - return 0; - } - - } - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - LuaAPI.luaL_error(L, "invalid arguments to IronSourceBannerAndroid.OnBannerAdClicked!"); - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_OnBannerAdLoadFailed(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - IronSourceBannerAndroid gen_to_be_invoked = (IronSourceBannerAndroid)translator.FastGetCSObj(L, 1); - System.Action gen_delegate = translator.GetDelegate>(L, 3); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#3 need System.Action!"); - } - - if (gen_param_count == 3) - { - - if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { - gen_to_be_invoked.OnBannerAdLoadFailed += gen_delegate; - return 0; - } - - - if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { - gen_to_be_invoked.OnBannerAdLoadFailed -= gen_delegate; - return 0; - } - - } - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - LuaAPI.luaL_error(L, "invalid arguments to IronSourceBannerAndroid.OnBannerAdLoadFailed!"); - return 0; - } - - - - } -} diff --git a/Assets/XLua/Gen/IronSourceBannerEventsWrap.cs b/Assets/XLua/Gen/IronSourceBannerEventsWrap.cs index 4b4414ef3..6cfcd73f3 100644 --- a/Assets/XLua/Gen/IronSourceBannerEventsWrap.cs +++ b/Assets/XLua/Gen/IronSourceBannerEventsWrap.cs @@ -34,11 +34,11 @@ namespace XLua.CSObjectWrap Utils.BeginClassRegister(type, L, __CreateInstance, 7, 0, 0); Utils.RegisterFunc(L, Utils.CLS_IDX, "onAdLoadedEvent", _e_onAdLoadedEvent); - Utils.RegisterFunc(L, Utils.CLS_IDX, "onAdLeftApplicationEvent", _e_onAdLeftApplicationEvent); - Utils.RegisterFunc(L, Utils.CLS_IDX, "onAdScreenDismissedEvent", _e_onAdScreenDismissedEvent); - Utils.RegisterFunc(L, Utils.CLS_IDX, "onAdScreenPresentedEvent", _e_onAdScreenPresentedEvent); - Utils.RegisterFunc(L, Utils.CLS_IDX, "onAdClickedEvent", _e_onAdClickedEvent); Utils.RegisterFunc(L, Utils.CLS_IDX, "onAdLoadFailedEvent", _e_onAdLoadFailedEvent); + Utils.RegisterFunc(L, Utils.CLS_IDX, "onAdClickedEvent", _e_onAdClickedEvent); + Utils.RegisterFunc(L, Utils.CLS_IDX, "onAdScreenPresentedEvent", _e_onAdScreenPresentedEvent); + Utils.RegisterFunc(L, Utils.CLS_IDX, "onAdScreenDismissedEvent", _e_onAdScreenDismissedEvent); + Utils.RegisterFunc(L, Utils.CLS_IDX, "onAdLeftApplicationEvent", _e_onAdLeftApplicationEvent); @@ -116,90 +116,32 @@ namespace XLua.CSObjectWrap } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_onAdLeftApplicationEvent(RealStatePtr L) + static int _e_onAdLoadFailedEvent(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); int gen_param_count = LuaAPI.lua_gettop(L); - System.Action gen_delegate = translator.GetDelegate>(L, 2); + System.Action gen_delegate = translator.GetDelegate>(L, 2); if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#2 need System.Action!"); + return LuaAPI.luaL_error(L, "#2 need System.Action!"); } if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "+")) { - IronSourceBannerEvents.onAdLeftApplicationEvent += gen_delegate; + IronSourceBannerEvents.onAdLoadFailedEvent += gen_delegate; return 0; } if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "-")) { - IronSourceBannerEvents.onAdLeftApplicationEvent -= gen_delegate; + IronSourceBannerEvents.onAdLoadFailedEvent -= 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 IronSourceBannerEvents.onAdLeftApplicationEvent!"); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_onAdScreenDismissedEvent(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - System.Action gen_delegate = translator.GetDelegate>(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, "+")) { - IronSourceBannerEvents.onAdScreenDismissedEvent += gen_delegate; - return 0; - } - - - if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "-")) { - IronSourceBannerEvents.onAdScreenDismissedEvent -= 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 IronSourceBannerEvents.onAdScreenDismissedEvent!"); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_onAdScreenPresentedEvent(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - System.Action gen_delegate = translator.GetDelegate>(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, "+")) { - IronSourceBannerEvents.onAdScreenPresentedEvent += gen_delegate; - return 0; - } - - - if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "-")) { - IronSourceBannerEvents.onAdScreenPresentedEvent -= 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 IronSourceBannerEvents.onAdScreenPresentedEvent!"); + return LuaAPI.luaL_error(L, "invalid arguments to IronSourceBannerEvents.onAdLoadFailedEvent!"); } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] @@ -232,32 +174,90 @@ namespace XLua.CSObjectWrap } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_onAdLoadFailedEvent(RealStatePtr L) + static int _e_onAdScreenPresentedEvent(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); int gen_param_count = LuaAPI.lua_gettop(L); - System.Action gen_delegate = translator.GetDelegate>(L, 2); + System.Action gen_delegate = translator.GetDelegate>(L, 2); if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#2 need System.Action!"); + return LuaAPI.luaL_error(L, "#2 need System.Action!"); } if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "+")) { - IronSourceBannerEvents.onAdLoadFailedEvent += gen_delegate; + IronSourceBannerEvents.onAdScreenPresentedEvent += gen_delegate; return 0; } if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "-")) { - IronSourceBannerEvents.onAdLoadFailedEvent -= gen_delegate; + IronSourceBannerEvents.onAdScreenPresentedEvent -= 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 IronSourceBannerEvents.onAdLoadFailedEvent!"); + return LuaAPI.luaL_error(L, "invalid arguments to IronSourceBannerEvents.onAdScreenPresentedEvent!"); + } + + [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] + static int _e_onAdScreenDismissedEvent(RealStatePtr L) + { + try { + ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); + int gen_param_count = LuaAPI.lua_gettop(L); + System.Action gen_delegate = translator.GetDelegate>(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, "+")) { + IronSourceBannerEvents.onAdScreenDismissedEvent += gen_delegate; + return 0; + } + + + if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "-")) { + IronSourceBannerEvents.onAdScreenDismissedEvent -= 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 IronSourceBannerEvents.onAdScreenDismissedEvent!"); + } + + [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] + static int _e_onAdLeftApplicationEvent(RealStatePtr L) + { + try { + ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); + int gen_param_count = LuaAPI.lua_gettop(L); + System.Action gen_delegate = translator.GetDelegate>(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, "+")) { + IronSourceBannerEvents.onAdLeftApplicationEvent += gen_delegate; + return 0; + } + + + if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "-")) { + IronSourceBannerEvents.onAdLeftApplicationEvent -= 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 IronSourceBannerEvents.onAdLeftApplicationEvent!"); } } diff --git a/Assets/XLua/Gen/IronSourceBannerLevelPlayAndroidWrap.cs b/Assets/XLua/Gen/IronSourceBannerLevelPlayAndroidWrap.cs deleted file mode 100644 index cefff2e5f..000000000 --- a/Assets/XLua/Gen/IronSourceBannerLevelPlayAndroidWrap.cs +++ /dev/null @@ -1,294 +0,0 @@ -#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 IronSourceBannerLevelPlayAndroidWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(IronSourceBannerLevelPlayAndroid); - Utils.BeginObjectRegister(type, L, translator, 0, 6, 0, 0); - - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnAdLoaded", _e_OnAdLoaded); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnAdLeftApplication", _e_OnAdLeftApplication); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnAdScreenDismissed", _e_OnAdScreenDismissed); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnAdScreenPresented", _e_OnAdScreenPresented); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnAdClicked", _e_OnAdClicked); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnAdLoadFailed", _e_OnAdLoadFailed); - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - 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 IronSourceBannerLevelPlayAndroid(); - 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 IronSourceBannerLevelPlayAndroid constructor!"); - - } - - - - - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_OnAdLoaded(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - IronSourceBannerLevelPlayAndroid gen_to_be_invoked = (IronSourceBannerLevelPlayAndroid)translator.FastGetCSObj(L, 1); - System.Action gen_delegate = translator.GetDelegate>(L, 3); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#3 need System.Action!"); - } - - if (gen_param_count == 3) - { - - if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { - gen_to_be_invoked.OnAdLoaded += gen_delegate; - return 0; - } - - - if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { - gen_to_be_invoked.OnAdLoaded -= gen_delegate; - return 0; - } - - } - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - LuaAPI.luaL_error(L, "invalid arguments to IronSourceBannerLevelPlayAndroid.OnAdLoaded!"); - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_OnAdLeftApplication(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - IronSourceBannerLevelPlayAndroid gen_to_be_invoked = (IronSourceBannerLevelPlayAndroid)translator.FastGetCSObj(L, 1); - System.Action gen_delegate = translator.GetDelegate>(L, 3); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#3 need System.Action!"); - } - - if (gen_param_count == 3) - { - - if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { - gen_to_be_invoked.OnAdLeftApplication += gen_delegate; - return 0; - } - - - if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { - gen_to_be_invoked.OnAdLeftApplication -= gen_delegate; - return 0; - } - - } - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - LuaAPI.luaL_error(L, "invalid arguments to IronSourceBannerLevelPlayAndroid.OnAdLeftApplication!"); - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_OnAdScreenDismissed(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - IronSourceBannerLevelPlayAndroid gen_to_be_invoked = (IronSourceBannerLevelPlayAndroid)translator.FastGetCSObj(L, 1); - System.Action gen_delegate = translator.GetDelegate>(L, 3); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#3 need System.Action!"); - } - - if (gen_param_count == 3) - { - - if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { - gen_to_be_invoked.OnAdScreenDismissed += gen_delegate; - return 0; - } - - - if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { - gen_to_be_invoked.OnAdScreenDismissed -= gen_delegate; - return 0; - } - - } - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - LuaAPI.luaL_error(L, "invalid arguments to IronSourceBannerLevelPlayAndroid.OnAdScreenDismissed!"); - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_OnAdScreenPresented(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - IronSourceBannerLevelPlayAndroid gen_to_be_invoked = (IronSourceBannerLevelPlayAndroid)translator.FastGetCSObj(L, 1); - System.Action gen_delegate = translator.GetDelegate>(L, 3); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#3 need System.Action!"); - } - - if (gen_param_count == 3) - { - - if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { - gen_to_be_invoked.OnAdScreenPresented += gen_delegate; - return 0; - } - - - if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { - gen_to_be_invoked.OnAdScreenPresented -= gen_delegate; - return 0; - } - - } - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - LuaAPI.luaL_error(L, "invalid arguments to IronSourceBannerLevelPlayAndroid.OnAdScreenPresented!"); - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_OnAdClicked(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - IronSourceBannerLevelPlayAndroid gen_to_be_invoked = (IronSourceBannerLevelPlayAndroid)translator.FastGetCSObj(L, 1); - System.Action gen_delegate = translator.GetDelegate>(L, 3); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#3 need System.Action!"); - } - - if (gen_param_count == 3) - { - - if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { - gen_to_be_invoked.OnAdClicked += gen_delegate; - return 0; - } - - - if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { - gen_to_be_invoked.OnAdClicked -= gen_delegate; - return 0; - } - - } - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - LuaAPI.luaL_error(L, "invalid arguments to IronSourceBannerLevelPlayAndroid.OnAdClicked!"); - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_OnAdLoadFailed(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - IronSourceBannerLevelPlayAndroid gen_to_be_invoked = (IronSourceBannerLevelPlayAndroid)translator.FastGetCSObj(L, 1); - System.Action gen_delegate = translator.GetDelegate>(L, 3); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#3 need System.Action!"); - } - - if (gen_param_count == 3) - { - - if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { - gen_to_be_invoked.OnAdLoadFailed += gen_delegate; - return 0; - } - - - if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { - gen_to_be_invoked.OnAdLoadFailed -= gen_delegate; - return 0; - } - - } - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - LuaAPI.luaL_error(L, "invalid arguments to IronSourceBannerLevelPlayAndroid.OnAdLoadFailed!"); - return 0; - } - - - - } -} diff --git a/Assets/XLua/Gen/IronSourceEventsWrap.cs b/Assets/XLua/Gen/IronSourceEventsWrap.cs index 8ac08f259..f1e393d3c 100644 --- a/Assets/XLua/Gen/IronSourceEventsWrap.cs +++ b/Assets/XLua/Gen/IronSourceEventsWrap.cs @@ -39,9 +39,9 @@ namespace XLua.CSObjectWrap 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, "onImpressionDataReadyEvent", _e_onImpressionDataReadyEvent); 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); @@ -263,6 +263,35 @@ namespace XLua.CSObjectWrap + [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 gen_delegate = translator.GetDelegate>(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.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) { @@ -321,35 +350,6 @@ namespace XLua.CSObjectWrap return LuaAPI.luaL_error(L, "invalid arguments to IronSourceEvents.onSegmentReceivedEvent!"); } - [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 gen_delegate = translator.GetDelegate>(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.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_onConsentViewDidFailToLoadWithErrorEvent(RealStatePtr L) { diff --git a/Assets/XLua/Gen/IronSourceImpressionDataAndroidWrap.cs b/Assets/XLua/Gen/IronSourceImpressionDataAndroidWrap.cs deleted file mode 100644 index 813130e35..000000000 --- a/Assets/XLua/Gen/IronSourceImpressionDataAndroidWrap.cs +++ /dev/null @@ -1,212 +0,0 @@ -#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 IronSourceImpressionDataAndroidWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(IronSourceImpressionDataAndroid); - Utils.BeginObjectRegister(type, L, translator, 0, 4, 0, 0); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "onImpressionSuccess", _m_onImpressionSuccess); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "onImpressionDataReady", _m_onImpressionDataReady); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnImpressionSuccess", _e_OnImpressionSuccess); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnImpressionDataReady", _e_OnImpressionDataReady); - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - 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 IronSourceImpressionDataAndroid(); - 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 IronSourceImpressionDataAndroid constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_onImpressionSuccess(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - IronSourceImpressionDataAndroid gen_to_be_invoked = (IronSourceImpressionDataAndroid)translator.FastGetCSObj(L, 1); - - - - { - string _data = LuaAPI.lua_tostring(L, 2); - - gen_to_be_invoked.onImpressionSuccess( _data ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_onImpressionDataReady(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - IronSourceImpressionDataAndroid gen_to_be_invoked = (IronSourceImpressionDataAndroid)translator.FastGetCSObj(L, 1); - - - - { - string _data = LuaAPI.lua_tostring(L, 2); - - gen_to_be_invoked.onImpressionDataReady( _data ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_OnImpressionSuccess(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - IronSourceImpressionDataAndroid gen_to_be_invoked = (IronSourceImpressionDataAndroid)translator.FastGetCSObj(L, 1); - System.Action gen_delegate = translator.GetDelegate>(L, 3); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#3 need System.Action!"); - } - - if (gen_param_count == 3) - { - - if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { - gen_to_be_invoked.OnImpressionSuccess += gen_delegate; - return 0; - } - - - if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { - gen_to_be_invoked.OnImpressionSuccess -= gen_delegate; - return 0; - } - - } - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - LuaAPI.luaL_error(L, "invalid arguments to IronSourceImpressionDataAndroid.OnImpressionSuccess!"); - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_OnImpressionDataReady(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - IronSourceImpressionDataAndroid gen_to_be_invoked = (IronSourceImpressionDataAndroid)translator.FastGetCSObj(L, 1); - System.Action gen_delegate = translator.GetDelegate>(L, 3); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#3 need System.Action!"); - } - - if (gen_param_count == 3) - { - - if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { - gen_to_be_invoked.OnImpressionDataReady += gen_delegate; - return 0; - } - - - if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { - gen_to_be_invoked.OnImpressionDataReady -= gen_delegate; - return 0; - } - - } - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - LuaAPI.luaL_error(L, "invalid arguments to IronSourceImpressionDataAndroid.OnImpressionDataReady!"); - return 0; - } - - - - } -} diff --git a/Assets/XLua/Gen/IronSourceInitializationAndroidWrap.cs b/Assets/XLua/Gen/IronSourceInitializationAndroidWrap.cs deleted file mode 100644 index 0bbf264e2..000000000 --- a/Assets/XLua/Gen/IronSourceInitializationAndroidWrap.cs +++ /dev/null @@ -1,119 +0,0 @@ -#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 IronSourceInitializationAndroidWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(IronSourceInitializationAndroid); - Utils.BeginObjectRegister(type, L, translator, 0, 1, 0, 0); - - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnSdkInitializationCompletedEvent", _e_OnSdkInitializationCompletedEvent); - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - 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 IronSourceInitializationAndroid(); - 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 IronSourceInitializationAndroid constructor!"); - - } - - - - - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_OnSdkInitializationCompletedEvent(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - IronSourceInitializationAndroid gen_to_be_invoked = (IronSourceInitializationAndroid)translator.FastGetCSObj(L, 1); - System.Action gen_delegate = translator.GetDelegate(L, 3); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#3 need System.Action!"); - } - - if (gen_param_count == 3) - { - - if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { - gen_to_be_invoked.OnSdkInitializationCompletedEvent += gen_delegate; - return 0; - } - - - if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { - gen_to_be_invoked.OnSdkInitializationCompletedEvent -= gen_delegate; - return 0; - } - - } - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - LuaAPI.luaL_error(L, "invalid arguments to IronSourceInitializationAndroid.OnSdkInitializationCompletedEvent!"); - return 0; - } - - - - } -} diff --git a/Assets/XLua/Gen/IronSourceInterstitialAndroidWrap.cs b/Assets/XLua/Gen/IronSourceInterstitialAndroidWrap.cs deleted file mode 100644 index eae9c5a39..000000000 --- a/Assets/XLua/Gen/IronSourceInterstitialAndroidWrap.cs +++ /dev/null @@ -1,574 +0,0 @@ -#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 IronSourceInterstitialAndroidWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(IronSourceInterstitialAndroid); - Utils.BeginObjectRegister(type, L, translator, 0, 14, 0, 0); - - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnInterstitialAdShowFailed", _e_OnInterstitialAdShowFailed); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnInterstitialAdLoadFailed", _e_OnInterstitialAdLoadFailed); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnInterstitialAdReady", _e_OnInterstitialAdReady); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnInterstitialAdOpened", _e_OnInterstitialAdOpened); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnInterstitialAdClosed", _e_OnInterstitialAdClosed); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnInterstitialAdShowSucceeded", _e_OnInterstitialAdShowSucceeded); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnInterstitialAdClicked", _e_OnInterstitialAdClicked); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnInterstitialAdRewarded", _e_OnInterstitialAdRewarded); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnInterstitialAdReadyDemandOnly", _e_OnInterstitialAdReadyDemandOnly); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnInterstitialAdOpenedDemandOnly", _e_OnInterstitialAdOpenedDemandOnly); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnInterstitialAdClosedDemandOnly", _e_OnInterstitialAdClosedDemandOnly); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnInterstitialAdLoadFailedDemandOnly", _e_OnInterstitialAdLoadFailedDemandOnly); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnInterstitialAdClickedDemandOnly", _e_OnInterstitialAdClickedDemandOnly); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnInterstitialAdShowFailedDemandOnly", _e_OnInterstitialAdShowFailedDemandOnly); - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - 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 IronSourceInterstitialAndroid(); - 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 IronSourceInterstitialAndroid constructor!"); - - } - - - - - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_OnInterstitialAdShowFailed(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - IronSourceInterstitialAndroid gen_to_be_invoked = (IronSourceInterstitialAndroid)translator.FastGetCSObj(L, 1); - System.Action gen_delegate = translator.GetDelegate>(L, 3); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#3 need System.Action!"); - } - - if (gen_param_count == 3) - { - - if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { - gen_to_be_invoked.OnInterstitialAdShowFailed += gen_delegate; - return 0; - } - - - if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { - gen_to_be_invoked.OnInterstitialAdShowFailed -= gen_delegate; - return 0; - } - - } - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - LuaAPI.luaL_error(L, "invalid arguments to IronSourceInterstitialAndroid.OnInterstitialAdShowFailed!"); - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_OnInterstitialAdLoadFailed(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - IronSourceInterstitialAndroid gen_to_be_invoked = (IronSourceInterstitialAndroid)translator.FastGetCSObj(L, 1); - System.Action gen_delegate = translator.GetDelegate>(L, 3); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#3 need System.Action!"); - } - - if (gen_param_count == 3) - { - - if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { - gen_to_be_invoked.OnInterstitialAdLoadFailed += gen_delegate; - return 0; - } - - - if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { - gen_to_be_invoked.OnInterstitialAdLoadFailed -= gen_delegate; - return 0; - } - - } - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - LuaAPI.luaL_error(L, "invalid arguments to IronSourceInterstitialAndroid.OnInterstitialAdLoadFailed!"); - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_OnInterstitialAdReady(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - IronSourceInterstitialAndroid gen_to_be_invoked = (IronSourceInterstitialAndroid)translator.FastGetCSObj(L, 1); - System.Action gen_delegate = translator.GetDelegate(L, 3); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#3 need System.Action!"); - } - - if (gen_param_count == 3) - { - - if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { - gen_to_be_invoked.OnInterstitialAdReady += gen_delegate; - return 0; - } - - - if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { - gen_to_be_invoked.OnInterstitialAdReady -= gen_delegate; - return 0; - } - - } - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - LuaAPI.luaL_error(L, "invalid arguments to IronSourceInterstitialAndroid.OnInterstitialAdReady!"); - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_OnInterstitialAdOpened(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - IronSourceInterstitialAndroid gen_to_be_invoked = (IronSourceInterstitialAndroid)translator.FastGetCSObj(L, 1); - System.Action gen_delegate = translator.GetDelegate(L, 3); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#3 need System.Action!"); - } - - if (gen_param_count == 3) - { - - if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { - gen_to_be_invoked.OnInterstitialAdOpened += gen_delegate; - return 0; - } - - - if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { - gen_to_be_invoked.OnInterstitialAdOpened -= gen_delegate; - return 0; - } - - } - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - LuaAPI.luaL_error(L, "invalid arguments to IronSourceInterstitialAndroid.OnInterstitialAdOpened!"); - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_OnInterstitialAdClosed(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - IronSourceInterstitialAndroid gen_to_be_invoked = (IronSourceInterstitialAndroid)translator.FastGetCSObj(L, 1); - System.Action gen_delegate = translator.GetDelegate(L, 3); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#3 need System.Action!"); - } - - if (gen_param_count == 3) - { - - if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { - gen_to_be_invoked.OnInterstitialAdClosed += gen_delegate; - return 0; - } - - - if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { - gen_to_be_invoked.OnInterstitialAdClosed -= gen_delegate; - return 0; - } - - } - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - LuaAPI.luaL_error(L, "invalid arguments to IronSourceInterstitialAndroid.OnInterstitialAdClosed!"); - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_OnInterstitialAdShowSucceeded(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - IronSourceInterstitialAndroid gen_to_be_invoked = (IronSourceInterstitialAndroid)translator.FastGetCSObj(L, 1); - System.Action gen_delegate = translator.GetDelegate(L, 3); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#3 need System.Action!"); - } - - if (gen_param_count == 3) - { - - if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { - gen_to_be_invoked.OnInterstitialAdShowSucceeded += gen_delegate; - return 0; - } - - - if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { - gen_to_be_invoked.OnInterstitialAdShowSucceeded -= gen_delegate; - return 0; - } - - } - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - LuaAPI.luaL_error(L, "invalid arguments to IronSourceInterstitialAndroid.OnInterstitialAdShowSucceeded!"); - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_OnInterstitialAdClicked(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - IronSourceInterstitialAndroid gen_to_be_invoked = (IronSourceInterstitialAndroid)translator.FastGetCSObj(L, 1); - System.Action gen_delegate = translator.GetDelegate(L, 3); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#3 need System.Action!"); - } - - if (gen_param_count == 3) - { - - if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { - gen_to_be_invoked.OnInterstitialAdClicked += gen_delegate; - return 0; - } - - - if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { - gen_to_be_invoked.OnInterstitialAdClicked -= gen_delegate; - return 0; - } - - } - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - LuaAPI.luaL_error(L, "invalid arguments to IronSourceInterstitialAndroid.OnInterstitialAdClicked!"); - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_OnInterstitialAdRewarded(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - IronSourceInterstitialAndroid gen_to_be_invoked = (IronSourceInterstitialAndroid)translator.FastGetCSObj(L, 1); - System.Action gen_delegate = translator.GetDelegate(L, 3); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#3 need System.Action!"); - } - - if (gen_param_count == 3) - { - - if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { - gen_to_be_invoked.OnInterstitialAdRewarded += gen_delegate; - return 0; - } - - - if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { - gen_to_be_invoked.OnInterstitialAdRewarded -= gen_delegate; - return 0; - } - - } - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - LuaAPI.luaL_error(L, "invalid arguments to IronSourceInterstitialAndroid.OnInterstitialAdRewarded!"); - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_OnInterstitialAdReadyDemandOnly(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - IronSourceInterstitialAndroid gen_to_be_invoked = (IronSourceInterstitialAndroid)translator.FastGetCSObj(L, 1); - System.Action gen_delegate = translator.GetDelegate>(L, 3); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#3 need System.Action!"); - } - - if (gen_param_count == 3) - { - - if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { - gen_to_be_invoked.OnInterstitialAdReadyDemandOnly += gen_delegate; - return 0; - } - - - if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { - gen_to_be_invoked.OnInterstitialAdReadyDemandOnly -= gen_delegate; - return 0; - } - - } - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - LuaAPI.luaL_error(L, "invalid arguments to IronSourceInterstitialAndroid.OnInterstitialAdReadyDemandOnly!"); - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_OnInterstitialAdOpenedDemandOnly(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - IronSourceInterstitialAndroid gen_to_be_invoked = (IronSourceInterstitialAndroid)translator.FastGetCSObj(L, 1); - System.Action gen_delegate = translator.GetDelegate>(L, 3); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#3 need System.Action!"); - } - - if (gen_param_count == 3) - { - - if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { - gen_to_be_invoked.OnInterstitialAdOpenedDemandOnly += gen_delegate; - return 0; - } - - - if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { - gen_to_be_invoked.OnInterstitialAdOpenedDemandOnly -= gen_delegate; - return 0; - } - - } - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - LuaAPI.luaL_error(L, "invalid arguments to IronSourceInterstitialAndroid.OnInterstitialAdOpenedDemandOnly!"); - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_OnInterstitialAdClosedDemandOnly(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - IronSourceInterstitialAndroid gen_to_be_invoked = (IronSourceInterstitialAndroid)translator.FastGetCSObj(L, 1); - System.Action gen_delegate = translator.GetDelegate>(L, 3); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#3 need System.Action!"); - } - - if (gen_param_count == 3) - { - - if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { - gen_to_be_invoked.OnInterstitialAdClosedDemandOnly += gen_delegate; - return 0; - } - - - if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { - gen_to_be_invoked.OnInterstitialAdClosedDemandOnly -= gen_delegate; - return 0; - } - - } - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - LuaAPI.luaL_error(L, "invalid arguments to IronSourceInterstitialAndroid.OnInterstitialAdClosedDemandOnly!"); - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_OnInterstitialAdLoadFailedDemandOnly(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - IronSourceInterstitialAndroid gen_to_be_invoked = (IronSourceInterstitialAndroid)translator.FastGetCSObj(L, 1); - System.Action gen_delegate = translator.GetDelegate>(L, 3); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#3 need System.Action!"); - } - - if (gen_param_count == 3) - { - - if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { - gen_to_be_invoked.OnInterstitialAdLoadFailedDemandOnly += gen_delegate; - return 0; - } - - - if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { - gen_to_be_invoked.OnInterstitialAdLoadFailedDemandOnly -= gen_delegate; - return 0; - } - - } - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - LuaAPI.luaL_error(L, "invalid arguments to IronSourceInterstitialAndroid.OnInterstitialAdLoadFailedDemandOnly!"); - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_OnInterstitialAdClickedDemandOnly(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - IronSourceInterstitialAndroid gen_to_be_invoked = (IronSourceInterstitialAndroid)translator.FastGetCSObj(L, 1); - System.Action gen_delegate = translator.GetDelegate>(L, 3); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#3 need System.Action!"); - } - - if (gen_param_count == 3) - { - - if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { - gen_to_be_invoked.OnInterstitialAdClickedDemandOnly += gen_delegate; - return 0; - } - - - if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { - gen_to_be_invoked.OnInterstitialAdClickedDemandOnly -= gen_delegate; - return 0; - } - - } - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - LuaAPI.luaL_error(L, "invalid arguments to IronSourceInterstitialAndroid.OnInterstitialAdClickedDemandOnly!"); - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_OnInterstitialAdShowFailedDemandOnly(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - IronSourceInterstitialAndroid gen_to_be_invoked = (IronSourceInterstitialAndroid)translator.FastGetCSObj(L, 1); - System.Action gen_delegate = translator.GetDelegate>(L, 3); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#3 need System.Action!"); - } - - if (gen_param_count == 3) - { - - if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { - gen_to_be_invoked.OnInterstitialAdShowFailedDemandOnly += gen_delegate; - return 0; - } - - - if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { - gen_to_be_invoked.OnInterstitialAdShowFailedDemandOnly -= gen_delegate; - return 0; - } - - } - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - LuaAPI.luaL_error(L, "invalid arguments to IronSourceInterstitialAndroid.OnInterstitialAdShowFailedDemandOnly!"); - return 0; - } - - - - } -} diff --git a/Assets/XLua/Gen/IronSourceInterstitialLevelPlayAndroidWrap.cs b/Assets/XLua/Gen/IronSourceInterstitialLevelPlayAndroidWrap.cs deleted file mode 100644 index 23ac0e36a..000000000 --- a/Assets/XLua/Gen/IronSourceInterstitialLevelPlayAndroidWrap.cs +++ /dev/null @@ -1,329 +0,0 @@ -#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 IronSourceInterstitialLevelPlayAndroidWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(IronSourceInterstitialLevelPlayAndroid); - Utils.BeginObjectRegister(type, L, translator, 0, 7, 0, 0); - - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnAdShowFailed", _e_OnAdShowFailed); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnAdLoadFailed", _e_OnAdLoadFailed); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnAdReady", _e_OnAdReady); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnAdOpened", _e_OnAdOpened); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnAdClosed", _e_OnAdClosed); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnAdShowSucceeded", _e_OnAdShowSucceeded); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnAdClicked", _e_OnAdClicked); - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - 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 IronSourceInterstitialLevelPlayAndroid(); - 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 IronSourceInterstitialLevelPlayAndroid constructor!"); - - } - - - - - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_OnAdShowFailed(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - IronSourceInterstitialLevelPlayAndroid gen_to_be_invoked = (IronSourceInterstitialLevelPlayAndroid)translator.FastGetCSObj(L, 1); - System.Action gen_delegate = translator.GetDelegate>(L, 3); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#3 need System.Action!"); - } - - if (gen_param_count == 3) - { - - if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { - gen_to_be_invoked.OnAdShowFailed += gen_delegate; - return 0; - } - - - if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { - gen_to_be_invoked.OnAdShowFailed -= gen_delegate; - return 0; - } - - } - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - LuaAPI.luaL_error(L, "invalid arguments to IronSourceInterstitialLevelPlayAndroid.OnAdShowFailed!"); - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_OnAdLoadFailed(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - IronSourceInterstitialLevelPlayAndroid gen_to_be_invoked = (IronSourceInterstitialLevelPlayAndroid)translator.FastGetCSObj(L, 1); - System.Action gen_delegate = translator.GetDelegate>(L, 3); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#3 need System.Action!"); - } - - if (gen_param_count == 3) - { - - if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { - gen_to_be_invoked.OnAdLoadFailed += gen_delegate; - return 0; - } - - - if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { - gen_to_be_invoked.OnAdLoadFailed -= gen_delegate; - return 0; - } - - } - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - LuaAPI.luaL_error(L, "invalid arguments to IronSourceInterstitialLevelPlayAndroid.OnAdLoadFailed!"); - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_OnAdReady(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - IronSourceInterstitialLevelPlayAndroid gen_to_be_invoked = (IronSourceInterstitialLevelPlayAndroid)translator.FastGetCSObj(L, 1); - System.Action gen_delegate = translator.GetDelegate>(L, 3); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#3 need System.Action!"); - } - - if (gen_param_count == 3) - { - - if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { - gen_to_be_invoked.OnAdReady += gen_delegate; - return 0; - } - - - if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { - gen_to_be_invoked.OnAdReady -= gen_delegate; - return 0; - } - - } - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - LuaAPI.luaL_error(L, "invalid arguments to IronSourceInterstitialLevelPlayAndroid.OnAdReady!"); - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_OnAdOpened(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - IronSourceInterstitialLevelPlayAndroid gen_to_be_invoked = (IronSourceInterstitialLevelPlayAndroid)translator.FastGetCSObj(L, 1); - System.Action gen_delegate = translator.GetDelegate>(L, 3); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#3 need System.Action!"); - } - - if (gen_param_count == 3) - { - - if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { - gen_to_be_invoked.OnAdOpened += gen_delegate; - return 0; - } - - - if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { - gen_to_be_invoked.OnAdOpened -= gen_delegate; - return 0; - } - - } - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - LuaAPI.luaL_error(L, "invalid arguments to IronSourceInterstitialLevelPlayAndroid.OnAdOpened!"); - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_OnAdClosed(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - IronSourceInterstitialLevelPlayAndroid gen_to_be_invoked = (IronSourceInterstitialLevelPlayAndroid)translator.FastGetCSObj(L, 1); - System.Action gen_delegate = translator.GetDelegate>(L, 3); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#3 need System.Action!"); - } - - if (gen_param_count == 3) - { - - if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { - gen_to_be_invoked.OnAdClosed += gen_delegate; - return 0; - } - - - if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { - gen_to_be_invoked.OnAdClosed -= gen_delegate; - return 0; - } - - } - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - LuaAPI.luaL_error(L, "invalid arguments to IronSourceInterstitialLevelPlayAndroid.OnAdClosed!"); - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_OnAdShowSucceeded(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - IronSourceInterstitialLevelPlayAndroid gen_to_be_invoked = (IronSourceInterstitialLevelPlayAndroid)translator.FastGetCSObj(L, 1); - System.Action gen_delegate = translator.GetDelegate>(L, 3); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#3 need System.Action!"); - } - - if (gen_param_count == 3) - { - - if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { - gen_to_be_invoked.OnAdShowSucceeded += gen_delegate; - return 0; - } - - - if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { - gen_to_be_invoked.OnAdShowSucceeded -= gen_delegate; - return 0; - } - - } - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - LuaAPI.luaL_error(L, "invalid arguments to IronSourceInterstitialLevelPlayAndroid.OnAdShowSucceeded!"); - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_OnAdClicked(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - IronSourceInterstitialLevelPlayAndroid gen_to_be_invoked = (IronSourceInterstitialLevelPlayAndroid)translator.FastGetCSObj(L, 1); - System.Action gen_delegate = translator.GetDelegate>(L, 3); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#3 need System.Action!"); - } - - if (gen_param_count == 3) - { - - if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { - gen_to_be_invoked.OnAdClicked += gen_delegate; - return 0; - } - - - if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { - gen_to_be_invoked.OnAdClicked -= gen_delegate; - return 0; - } - - } - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - LuaAPI.luaL_error(L, "invalid arguments to IronSourceInterstitialLevelPlayAndroid.OnAdClicked!"); - return 0; - } - - - - } -} diff --git a/Assets/XLua/Gen/IronSourceOfferwallAndroidWrap.cs b/Assets/XLua/Gen/IronSourceOfferwallAndroidWrap.cs deleted file mode 100644 index bf4e1a258..000000000 --- a/Assets/XLua/Gen/IronSourceOfferwallAndroidWrap.cs +++ /dev/null @@ -1,466 +0,0 @@ -#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 IronSourceOfferwallAndroidWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(IronSourceOfferwallAndroid); - Utils.BeginObjectRegister(type, L, translator, 0, 12, 0, 0); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "onOfferwallOpened", _m_onOfferwallOpened); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "onOfferwallShowFailed", _m_onOfferwallShowFailed); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "onOfferwallClosed", _m_onOfferwallClosed); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "onGetOfferwallCreditsFailed", _m_onGetOfferwallCreditsFailed); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "onOfferwallAdCredited", _m_onOfferwallAdCredited); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "onOfferwallAvailable", _m_onOfferwallAvailable); - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnOfferwallShowFailed", _e_OnOfferwallShowFailed); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnOfferwallOpened", _e_OnOfferwallOpened); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnOfferwallClosed", _e_OnOfferwallClosed); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnGetOfferwallCreditsFailed", _e_OnGetOfferwallCreditsFailed); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnOfferwallAdCredited", _e_OnOfferwallAdCredited); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnOfferwallAvailable", _e_OnOfferwallAvailable); - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - 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 IronSourceOfferwallAndroid(); - 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 IronSourceOfferwallAndroid constructor!"); - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_onOfferwallOpened(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - IronSourceOfferwallAndroid gen_to_be_invoked = (IronSourceOfferwallAndroid)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.onOfferwallOpened( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_onOfferwallShowFailed(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - IronSourceOfferwallAndroid gen_to_be_invoked = (IronSourceOfferwallAndroid)translator.FastGetCSObj(L, 1); - - - - { - string _description = LuaAPI.lua_tostring(L, 2); - - gen_to_be_invoked.onOfferwallShowFailed( _description ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_onOfferwallClosed(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - IronSourceOfferwallAndroid gen_to_be_invoked = (IronSourceOfferwallAndroid)translator.FastGetCSObj(L, 1); - - - - { - - gen_to_be_invoked.onOfferwallClosed( ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_onGetOfferwallCreditsFailed(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - IronSourceOfferwallAndroid gen_to_be_invoked = (IronSourceOfferwallAndroid)translator.FastGetCSObj(L, 1); - - - - { - string _description = LuaAPI.lua_tostring(L, 2); - - gen_to_be_invoked.onGetOfferwallCreditsFailed( _description ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_onOfferwallAdCredited(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - IronSourceOfferwallAndroid gen_to_be_invoked = (IronSourceOfferwallAndroid)translator.FastGetCSObj(L, 1); - - - - { - string _json = LuaAPI.lua_tostring(L, 2); - - gen_to_be_invoked.onOfferwallAdCredited( _json ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_onOfferwallAvailable(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - IronSourceOfferwallAndroid gen_to_be_invoked = (IronSourceOfferwallAndroid)translator.FastGetCSObj(L, 1); - - - - { - string _stringAvailable = LuaAPI.lua_tostring(L, 2); - - gen_to_be_invoked.onOfferwallAvailable( _stringAvailable ); - - - - return 0; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_OnOfferwallShowFailed(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - IronSourceOfferwallAndroid gen_to_be_invoked = (IronSourceOfferwallAndroid)translator.FastGetCSObj(L, 1); - System.Action gen_delegate = translator.GetDelegate>(L, 3); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#3 need System.Action!"); - } - - if (gen_param_count == 3) - { - - if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { - gen_to_be_invoked.OnOfferwallShowFailed += gen_delegate; - return 0; - } - - - if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { - gen_to_be_invoked.OnOfferwallShowFailed -= gen_delegate; - return 0; - } - - } - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - LuaAPI.luaL_error(L, "invalid arguments to IronSourceOfferwallAndroid.OnOfferwallShowFailed!"); - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_OnOfferwallOpened(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - IronSourceOfferwallAndroid gen_to_be_invoked = (IronSourceOfferwallAndroid)translator.FastGetCSObj(L, 1); - System.Action gen_delegate = translator.GetDelegate(L, 3); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#3 need System.Action!"); - } - - if (gen_param_count == 3) - { - - if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { - gen_to_be_invoked.OnOfferwallOpened += gen_delegate; - return 0; - } - - - if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { - gen_to_be_invoked.OnOfferwallOpened -= gen_delegate; - return 0; - } - - } - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - LuaAPI.luaL_error(L, "invalid arguments to IronSourceOfferwallAndroid.OnOfferwallOpened!"); - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_OnOfferwallClosed(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - IronSourceOfferwallAndroid gen_to_be_invoked = (IronSourceOfferwallAndroid)translator.FastGetCSObj(L, 1); - System.Action gen_delegate = translator.GetDelegate(L, 3); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#3 need System.Action!"); - } - - if (gen_param_count == 3) - { - - if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { - gen_to_be_invoked.OnOfferwallClosed += gen_delegate; - return 0; - } - - - if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { - gen_to_be_invoked.OnOfferwallClosed -= gen_delegate; - return 0; - } - - } - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - LuaAPI.luaL_error(L, "invalid arguments to IronSourceOfferwallAndroid.OnOfferwallClosed!"); - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_OnGetOfferwallCreditsFailed(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - IronSourceOfferwallAndroid gen_to_be_invoked = (IronSourceOfferwallAndroid)translator.FastGetCSObj(L, 1); - System.Action gen_delegate = translator.GetDelegate>(L, 3); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#3 need System.Action!"); - } - - if (gen_param_count == 3) - { - - if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { - gen_to_be_invoked.OnGetOfferwallCreditsFailed += gen_delegate; - return 0; - } - - - if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { - gen_to_be_invoked.OnGetOfferwallCreditsFailed -= gen_delegate; - return 0; - } - - } - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - LuaAPI.luaL_error(L, "invalid arguments to IronSourceOfferwallAndroid.OnGetOfferwallCreditsFailed!"); - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_OnOfferwallAdCredited(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - IronSourceOfferwallAndroid gen_to_be_invoked = (IronSourceOfferwallAndroid)translator.FastGetCSObj(L, 1); - System.Action> gen_delegate = translator.GetDelegate>>(L, 3); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#3 need System.Action>!"); - } - - if (gen_param_count == 3) - { - - if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { - gen_to_be_invoked.OnOfferwallAdCredited += gen_delegate; - return 0; - } - - - if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { - gen_to_be_invoked.OnOfferwallAdCredited -= gen_delegate; - return 0; - } - - } - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - LuaAPI.luaL_error(L, "invalid arguments to IronSourceOfferwallAndroid.OnOfferwallAdCredited!"); - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_OnOfferwallAvailable(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - IronSourceOfferwallAndroid gen_to_be_invoked = (IronSourceOfferwallAndroid)translator.FastGetCSObj(L, 1); - System.Action gen_delegate = translator.GetDelegate>(L, 3); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#3 need System.Action!"); - } - - if (gen_param_count == 3) - { - - if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { - gen_to_be_invoked.OnOfferwallAvailable += gen_delegate; - return 0; - } - - - if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { - gen_to_be_invoked.OnOfferwallAvailable -= gen_delegate; - return 0; - } - - } - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - LuaAPI.luaL_error(L, "invalid arguments to IronSourceOfferwallAndroid.OnOfferwallAvailable!"); - return 0; - } - - - - } -} diff --git a/Assets/XLua/Gen/IronSourceRewardedVideoAndroidWrap.cs b/Assets/XLua/Gen/IronSourceRewardedVideoAndroidWrap.cs deleted file mode 100644 index 008c5187b..000000000 --- a/Assets/XLua/Gen/IronSourceRewardedVideoAndroidWrap.cs +++ /dev/null @@ -1,609 +0,0 @@ -#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 IronSourceRewardedVideoAndroidWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(IronSourceRewardedVideoAndroid); - Utils.BeginObjectRegister(type, L, translator, 0, 15, 0, 0); - - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnRewardedVideoAdShowFailed", _e_OnRewardedVideoAdShowFailed); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnRewardedVideoAdOpened", _e_OnRewardedVideoAdOpened); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnRewardedVideoAdClosed", _e_OnRewardedVideoAdClosed); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnRewardedVideoAdStarted", _e_OnRewardedVideoAdStarted); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnRewardedVideoAdEnded", _e_OnRewardedVideoAdEnded); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnRewardedVideoAdRewarded", _e_OnRewardedVideoAdRewarded); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnRewardedVideoAdClicked", _e_OnRewardedVideoAdClicked); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnRewardedVideoAvailabilityChanged", _e_OnRewardedVideoAvailabilityChanged); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnRewardedVideoAdOpenedDemandOnlyEvent", _e_OnRewardedVideoAdOpenedDemandOnlyEvent); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnRewardedVideoAdClosedDemandOnlyEvent", _e_OnRewardedVideoAdClosedDemandOnlyEvent); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnRewardedVideoAdLoadedDemandOnlyEvent", _e_OnRewardedVideoAdLoadedDemandOnlyEvent); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnRewardedVideoAdRewardedDemandOnlyEvent", _e_OnRewardedVideoAdRewardedDemandOnlyEvent); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnRewardedVideoAdShowFailedDemandOnlyEvent", _e_OnRewardedVideoAdShowFailedDemandOnlyEvent); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnRewardedVideoAdClickedDemandOnlyEvent", _e_OnRewardedVideoAdClickedDemandOnlyEvent); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnRewardedVideoAdLoadFailedDemandOnlyEvent", _e_OnRewardedVideoAdLoadFailedDemandOnlyEvent); - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - 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 IronSourceRewardedVideoAndroid(); - 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 IronSourceRewardedVideoAndroid constructor!"); - - } - - - - - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_OnRewardedVideoAdShowFailed(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - IronSourceRewardedVideoAndroid gen_to_be_invoked = (IronSourceRewardedVideoAndroid)translator.FastGetCSObj(L, 1); - System.Action gen_delegate = translator.GetDelegate>(L, 3); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#3 need System.Action!"); - } - - if (gen_param_count == 3) - { - - if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { - gen_to_be_invoked.OnRewardedVideoAdShowFailed += gen_delegate; - return 0; - } - - - if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { - gen_to_be_invoked.OnRewardedVideoAdShowFailed -= gen_delegate; - return 0; - } - - } - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - LuaAPI.luaL_error(L, "invalid arguments to IronSourceRewardedVideoAndroid.OnRewardedVideoAdShowFailed!"); - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_OnRewardedVideoAdOpened(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - IronSourceRewardedVideoAndroid gen_to_be_invoked = (IronSourceRewardedVideoAndroid)translator.FastGetCSObj(L, 1); - System.Action gen_delegate = translator.GetDelegate(L, 3); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#3 need System.Action!"); - } - - if (gen_param_count == 3) - { - - if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { - gen_to_be_invoked.OnRewardedVideoAdOpened += gen_delegate; - return 0; - } - - - if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { - gen_to_be_invoked.OnRewardedVideoAdOpened -= gen_delegate; - return 0; - } - - } - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - LuaAPI.luaL_error(L, "invalid arguments to IronSourceRewardedVideoAndroid.OnRewardedVideoAdOpened!"); - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_OnRewardedVideoAdClosed(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - IronSourceRewardedVideoAndroid gen_to_be_invoked = (IronSourceRewardedVideoAndroid)translator.FastGetCSObj(L, 1); - System.Action gen_delegate = translator.GetDelegate(L, 3); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#3 need System.Action!"); - } - - if (gen_param_count == 3) - { - - if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { - gen_to_be_invoked.OnRewardedVideoAdClosed += gen_delegate; - return 0; - } - - - if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { - gen_to_be_invoked.OnRewardedVideoAdClosed -= gen_delegate; - return 0; - } - - } - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - LuaAPI.luaL_error(L, "invalid arguments to IronSourceRewardedVideoAndroid.OnRewardedVideoAdClosed!"); - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_OnRewardedVideoAdStarted(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - IronSourceRewardedVideoAndroid gen_to_be_invoked = (IronSourceRewardedVideoAndroid)translator.FastGetCSObj(L, 1); - System.Action gen_delegate = translator.GetDelegate(L, 3); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#3 need System.Action!"); - } - - if (gen_param_count == 3) - { - - if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { - gen_to_be_invoked.OnRewardedVideoAdStarted += gen_delegate; - return 0; - } - - - if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { - gen_to_be_invoked.OnRewardedVideoAdStarted -= gen_delegate; - return 0; - } - - } - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - LuaAPI.luaL_error(L, "invalid arguments to IronSourceRewardedVideoAndroid.OnRewardedVideoAdStarted!"); - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_OnRewardedVideoAdEnded(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - IronSourceRewardedVideoAndroid gen_to_be_invoked = (IronSourceRewardedVideoAndroid)translator.FastGetCSObj(L, 1); - System.Action gen_delegate = translator.GetDelegate(L, 3); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#3 need System.Action!"); - } - - if (gen_param_count == 3) - { - - if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { - gen_to_be_invoked.OnRewardedVideoAdEnded += gen_delegate; - return 0; - } - - - if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { - gen_to_be_invoked.OnRewardedVideoAdEnded -= gen_delegate; - return 0; - } - - } - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - LuaAPI.luaL_error(L, "invalid arguments to IronSourceRewardedVideoAndroid.OnRewardedVideoAdEnded!"); - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_OnRewardedVideoAdRewarded(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - IronSourceRewardedVideoAndroid gen_to_be_invoked = (IronSourceRewardedVideoAndroid)translator.FastGetCSObj(L, 1); - System.Action gen_delegate = translator.GetDelegate>(L, 3); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#3 need System.Action!"); - } - - if (gen_param_count == 3) - { - - if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { - gen_to_be_invoked.OnRewardedVideoAdRewarded += gen_delegate; - return 0; - } - - - if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { - gen_to_be_invoked.OnRewardedVideoAdRewarded -= gen_delegate; - return 0; - } - - } - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - LuaAPI.luaL_error(L, "invalid arguments to IronSourceRewardedVideoAndroid.OnRewardedVideoAdRewarded!"); - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_OnRewardedVideoAdClicked(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - IronSourceRewardedVideoAndroid gen_to_be_invoked = (IronSourceRewardedVideoAndroid)translator.FastGetCSObj(L, 1); - System.Action gen_delegate = translator.GetDelegate>(L, 3); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#3 need System.Action!"); - } - - if (gen_param_count == 3) - { - - if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { - gen_to_be_invoked.OnRewardedVideoAdClicked += gen_delegate; - return 0; - } - - - if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { - gen_to_be_invoked.OnRewardedVideoAdClicked -= gen_delegate; - return 0; - } - - } - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - LuaAPI.luaL_error(L, "invalid arguments to IronSourceRewardedVideoAndroid.OnRewardedVideoAdClicked!"); - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_OnRewardedVideoAvailabilityChanged(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - IronSourceRewardedVideoAndroid gen_to_be_invoked = (IronSourceRewardedVideoAndroid)translator.FastGetCSObj(L, 1); - System.Action gen_delegate = translator.GetDelegate>(L, 3); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#3 need System.Action!"); - } - - if (gen_param_count == 3) - { - - if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { - gen_to_be_invoked.OnRewardedVideoAvailabilityChanged += gen_delegate; - return 0; - } - - - if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { - gen_to_be_invoked.OnRewardedVideoAvailabilityChanged -= gen_delegate; - return 0; - } - - } - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - LuaAPI.luaL_error(L, "invalid arguments to IronSourceRewardedVideoAndroid.OnRewardedVideoAvailabilityChanged!"); - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_OnRewardedVideoAdOpenedDemandOnlyEvent(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - IronSourceRewardedVideoAndroid gen_to_be_invoked = (IronSourceRewardedVideoAndroid)translator.FastGetCSObj(L, 1); - System.Action gen_delegate = translator.GetDelegate>(L, 3); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#3 need System.Action!"); - } - - if (gen_param_count == 3) - { - - if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { - gen_to_be_invoked.OnRewardedVideoAdOpenedDemandOnlyEvent += gen_delegate; - return 0; - } - - - if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { - gen_to_be_invoked.OnRewardedVideoAdOpenedDemandOnlyEvent -= gen_delegate; - return 0; - } - - } - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - LuaAPI.luaL_error(L, "invalid arguments to IronSourceRewardedVideoAndroid.OnRewardedVideoAdOpenedDemandOnlyEvent!"); - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_OnRewardedVideoAdClosedDemandOnlyEvent(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - IronSourceRewardedVideoAndroid gen_to_be_invoked = (IronSourceRewardedVideoAndroid)translator.FastGetCSObj(L, 1); - System.Action gen_delegate = translator.GetDelegate>(L, 3); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#3 need System.Action!"); - } - - if (gen_param_count == 3) - { - - if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { - gen_to_be_invoked.OnRewardedVideoAdClosedDemandOnlyEvent += gen_delegate; - return 0; - } - - - if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { - gen_to_be_invoked.OnRewardedVideoAdClosedDemandOnlyEvent -= gen_delegate; - return 0; - } - - } - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - LuaAPI.luaL_error(L, "invalid arguments to IronSourceRewardedVideoAndroid.OnRewardedVideoAdClosedDemandOnlyEvent!"); - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_OnRewardedVideoAdLoadedDemandOnlyEvent(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - IronSourceRewardedVideoAndroid gen_to_be_invoked = (IronSourceRewardedVideoAndroid)translator.FastGetCSObj(L, 1); - System.Action gen_delegate = translator.GetDelegate>(L, 3); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#3 need System.Action!"); - } - - if (gen_param_count == 3) - { - - if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { - gen_to_be_invoked.OnRewardedVideoAdLoadedDemandOnlyEvent += gen_delegate; - return 0; - } - - - if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { - gen_to_be_invoked.OnRewardedVideoAdLoadedDemandOnlyEvent -= gen_delegate; - return 0; - } - - } - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - LuaAPI.luaL_error(L, "invalid arguments to IronSourceRewardedVideoAndroid.OnRewardedVideoAdLoadedDemandOnlyEvent!"); - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_OnRewardedVideoAdRewardedDemandOnlyEvent(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - IronSourceRewardedVideoAndroid gen_to_be_invoked = (IronSourceRewardedVideoAndroid)translator.FastGetCSObj(L, 1); - System.Action gen_delegate = translator.GetDelegate>(L, 3); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#3 need System.Action!"); - } - - if (gen_param_count == 3) - { - - if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { - gen_to_be_invoked.OnRewardedVideoAdRewardedDemandOnlyEvent += gen_delegate; - return 0; - } - - - if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { - gen_to_be_invoked.OnRewardedVideoAdRewardedDemandOnlyEvent -= gen_delegate; - return 0; - } - - } - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - LuaAPI.luaL_error(L, "invalid arguments to IronSourceRewardedVideoAndroid.OnRewardedVideoAdRewardedDemandOnlyEvent!"); - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_OnRewardedVideoAdShowFailedDemandOnlyEvent(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - IronSourceRewardedVideoAndroid gen_to_be_invoked = (IronSourceRewardedVideoAndroid)translator.FastGetCSObj(L, 1); - System.Action gen_delegate = translator.GetDelegate>(L, 3); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#3 need System.Action!"); - } - - if (gen_param_count == 3) - { - - if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { - gen_to_be_invoked.OnRewardedVideoAdShowFailedDemandOnlyEvent += gen_delegate; - return 0; - } - - - if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { - gen_to_be_invoked.OnRewardedVideoAdShowFailedDemandOnlyEvent -= gen_delegate; - return 0; - } - - } - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - LuaAPI.luaL_error(L, "invalid arguments to IronSourceRewardedVideoAndroid.OnRewardedVideoAdShowFailedDemandOnlyEvent!"); - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_OnRewardedVideoAdClickedDemandOnlyEvent(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - IronSourceRewardedVideoAndroid gen_to_be_invoked = (IronSourceRewardedVideoAndroid)translator.FastGetCSObj(L, 1); - System.Action gen_delegate = translator.GetDelegate>(L, 3); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#3 need System.Action!"); - } - - if (gen_param_count == 3) - { - - if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { - gen_to_be_invoked.OnRewardedVideoAdClickedDemandOnlyEvent += gen_delegate; - return 0; - } - - - if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { - gen_to_be_invoked.OnRewardedVideoAdClickedDemandOnlyEvent -= gen_delegate; - return 0; - } - - } - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - LuaAPI.luaL_error(L, "invalid arguments to IronSourceRewardedVideoAndroid.OnRewardedVideoAdClickedDemandOnlyEvent!"); - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_OnRewardedVideoAdLoadFailedDemandOnlyEvent(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - IronSourceRewardedVideoAndroid gen_to_be_invoked = (IronSourceRewardedVideoAndroid)translator.FastGetCSObj(L, 1); - System.Action gen_delegate = translator.GetDelegate>(L, 3); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#3 need System.Action!"); - } - - if (gen_param_count == 3) - { - - if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { - gen_to_be_invoked.OnRewardedVideoAdLoadFailedDemandOnlyEvent += gen_delegate; - return 0; - } - - - if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { - gen_to_be_invoked.OnRewardedVideoAdLoadFailedDemandOnlyEvent -= gen_delegate; - return 0; - } - - } - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - LuaAPI.luaL_error(L, "invalid arguments to IronSourceRewardedVideoAndroid.OnRewardedVideoAdLoadFailedDemandOnlyEvent!"); - return 0; - } - - - - } -} diff --git a/Assets/XLua/Gen/IronSourceRewardedVideoLevelPlayAndroidWrap.cs b/Assets/XLua/Gen/IronSourceRewardedVideoLevelPlayAndroidWrap.cs deleted file mode 100644 index c51898b15..000000000 --- a/Assets/XLua/Gen/IronSourceRewardedVideoLevelPlayAndroidWrap.cs +++ /dev/null @@ -1,329 +0,0 @@ -#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 IronSourceRewardedVideoLevelPlayAndroidWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(IronSourceRewardedVideoLevelPlayAndroid); - Utils.BeginObjectRegister(type, L, translator, 0, 7, 0, 0); - - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnAdShowFailed", _e_OnAdShowFailed); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnAdOpened", _e_OnAdOpened); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnAdClosed", _e_OnAdClosed); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnAdRewarded", _e_OnAdRewarded); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnAdClicked", _e_OnAdClicked); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnAdAvailable", _e_OnAdAvailable); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnAdUnavailable", _e_OnAdUnavailable); - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - 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 IronSourceRewardedVideoLevelPlayAndroid(); - 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 IronSourceRewardedVideoLevelPlayAndroid constructor!"); - - } - - - - - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_OnAdShowFailed(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - IronSourceRewardedVideoLevelPlayAndroid gen_to_be_invoked = (IronSourceRewardedVideoLevelPlayAndroid)translator.FastGetCSObj(L, 1); - System.Action gen_delegate = translator.GetDelegate>(L, 3); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#3 need System.Action!"); - } - - if (gen_param_count == 3) - { - - if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { - gen_to_be_invoked.OnAdShowFailed += gen_delegate; - return 0; - } - - - if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { - gen_to_be_invoked.OnAdShowFailed -= gen_delegate; - return 0; - } - - } - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - LuaAPI.luaL_error(L, "invalid arguments to IronSourceRewardedVideoLevelPlayAndroid.OnAdShowFailed!"); - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_OnAdOpened(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - IronSourceRewardedVideoLevelPlayAndroid gen_to_be_invoked = (IronSourceRewardedVideoLevelPlayAndroid)translator.FastGetCSObj(L, 1); - System.Action gen_delegate = translator.GetDelegate>(L, 3); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#3 need System.Action!"); - } - - if (gen_param_count == 3) - { - - if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { - gen_to_be_invoked.OnAdOpened += gen_delegate; - return 0; - } - - - if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { - gen_to_be_invoked.OnAdOpened -= gen_delegate; - return 0; - } - - } - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - LuaAPI.luaL_error(L, "invalid arguments to IronSourceRewardedVideoLevelPlayAndroid.OnAdOpened!"); - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_OnAdClosed(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - IronSourceRewardedVideoLevelPlayAndroid gen_to_be_invoked = (IronSourceRewardedVideoLevelPlayAndroid)translator.FastGetCSObj(L, 1); - System.Action gen_delegate = translator.GetDelegate>(L, 3); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#3 need System.Action!"); - } - - if (gen_param_count == 3) - { - - if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { - gen_to_be_invoked.OnAdClosed += gen_delegate; - return 0; - } - - - if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { - gen_to_be_invoked.OnAdClosed -= gen_delegate; - return 0; - } - - } - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - LuaAPI.luaL_error(L, "invalid arguments to IronSourceRewardedVideoLevelPlayAndroid.OnAdClosed!"); - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_OnAdRewarded(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - IronSourceRewardedVideoLevelPlayAndroid gen_to_be_invoked = (IronSourceRewardedVideoLevelPlayAndroid)translator.FastGetCSObj(L, 1); - System.Action gen_delegate = translator.GetDelegate>(L, 3); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#3 need System.Action!"); - } - - if (gen_param_count == 3) - { - - if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { - gen_to_be_invoked.OnAdRewarded += gen_delegate; - return 0; - } - - - if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { - gen_to_be_invoked.OnAdRewarded -= gen_delegate; - return 0; - } - - } - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - LuaAPI.luaL_error(L, "invalid arguments to IronSourceRewardedVideoLevelPlayAndroid.OnAdRewarded!"); - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_OnAdClicked(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - IronSourceRewardedVideoLevelPlayAndroid gen_to_be_invoked = (IronSourceRewardedVideoLevelPlayAndroid)translator.FastGetCSObj(L, 1); - System.Action gen_delegate = translator.GetDelegate>(L, 3); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#3 need System.Action!"); - } - - if (gen_param_count == 3) - { - - if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { - gen_to_be_invoked.OnAdClicked += gen_delegate; - return 0; - } - - - if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { - gen_to_be_invoked.OnAdClicked -= gen_delegate; - return 0; - } - - } - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - LuaAPI.luaL_error(L, "invalid arguments to IronSourceRewardedVideoLevelPlayAndroid.OnAdClicked!"); - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_OnAdAvailable(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - IronSourceRewardedVideoLevelPlayAndroid gen_to_be_invoked = (IronSourceRewardedVideoLevelPlayAndroid)translator.FastGetCSObj(L, 1); - System.Action gen_delegate = translator.GetDelegate>(L, 3); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#3 need System.Action!"); - } - - if (gen_param_count == 3) - { - - if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { - gen_to_be_invoked.OnAdAvailable += gen_delegate; - return 0; - } - - - if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { - gen_to_be_invoked.OnAdAvailable -= gen_delegate; - return 0; - } - - } - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - LuaAPI.luaL_error(L, "invalid arguments to IronSourceRewardedVideoLevelPlayAndroid.OnAdAvailable!"); - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_OnAdUnavailable(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - IronSourceRewardedVideoLevelPlayAndroid gen_to_be_invoked = (IronSourceRewardedVideoLevelPlayAndroid)translator.FastGetCSObj(L, 1); - System.Action gen_delegate = translator.GetDelegate(L, 3); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#3 need System.Action!"); - } - - if (gen_param_count == 3) - { - - if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { - gen_to_be_invoked.OnAdUnavailable += gen_delegate; - return 0; - } - - - if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { - gen_to_be_invoked.OnAdUnavailable -= gen_delegate; - return 0; - } - - } - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - LuaAPI.luaL_error(L, "invalid arguments to IronSourceRewardedVideoLevelPlayAndroid.OnAdUnavailable!"); - return 0; - } - - - - } -} diff --git a/Assets/XLua/Gen/IronSourceRewardedVideoLevelPlayManualAndroidWrap.cs b/Assets/XLua/Gen/IronSourceRewardedVideoLevelPlayManualAndroidWrap.cs deleted file mode 100644 index ae47d2e90..000000000 --- a/Assets/XLua/Gen/IronSourceRewardedVideoLevelPlayManualAndroidWrap.cs +++ /dev/null @@ -1,154 +0,0 @@ -#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 IronSourceRewardedVideoLevelPlayManualAndroidWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(IronSourceRewardedVideoLevelPlayManualAndroid); - Utils.BeginObjectRegister(type, L, translator, 0, 2, 0, 0); - - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnAdLoadFailed", _e_OnAdLoadFailed); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnAdReady", _e_OnAdReady); - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - 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 IronSourceRewardedVideoLevelPlayManualAndroid(); - 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 IronSourceRewardedVideoLevelPlayManualAndroid constructor!"); - - } - - - - - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_OnAdLoadFailed(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - IronSourceRewardedVideoLevelPlayManualAndroid gen_to_be_invoked = (IronSourceRewardedVideoLevelPlayManualAndroid)translator.FastGetCSObj(L, 1); - System.Action gen_delegate = translator.GetDelegate>(L, 3); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#3 need System.Action!"); - } - - if (gen_param_count == 3) - { - - if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { - gen_to_be_invoked.OnAdLoadFailed += gen_delegate; - return 0; - } - - - if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { - gen_to_be_invoked.OnAdLoadFailed -= gen_delegate; - return 0; - } - - } - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - LuaAPI.luaL_error(L, "invalid arguments to IronSourceRewardedVideoLevelPlayManualAndroid.OnAdLoadFailed!"); - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_OnAdReady(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - IronSourceRewardedVideoLevelPlayManualAndroid gen_to_be_invoked = (IronSourceRewardedVideoLevelPlayManualAndroid)translator.FastGetCSObj(L, 1); - System.Action gen_delegate = translator.GetDelegate>(L, 3); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#3 need System.Action!"); - } - - if (gen_param_count == 3) - { - - if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { - gen_to_be_invoked.OnAdReady += gen_delegate; - return 0; - } - - - if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { - gen_to_be_invoked.OnAdReady -= gen_delegate; - return 0; - } - - } - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - LuaAPI.luaL_error(L, "invalid arguments to IronSourceRewardedVideoLevelPlayManualAndroid.OnAdReady!"); - return 0; - } - - - - } -} diff --git a/Assets/XLua/Gen/IronSourceRewardedVideoManualAndroidWrap.cs b/Assets/XLua/Gen/IronSourceRewardedVideoManualAndroidWrap.cs deleted file mode 100644 index 5a61a975c..000000000 --- a/Assets/XLua/Gen/IronSourceRewardedVideoManualAndroidWrap.cs +++ /dev/null @@ -1,154 +0,0 @@ -#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 IronSourceRewardedVideoManualAndroidWrap - { - public static void __Register(RealStatePtr L) - { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - System.Type type = typeof(IronSourceRewardedVideoManualAndroid); - Utils.BeginObjectRegister(type, L, translator, 0, 2, 0, 0); - - - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnRewardedVideoAdLoadFailed", _e_OnRewardedVideoAdLoadFailed); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnRewardedVideoAdReady", _e_OnRewardedVideoAdReady); - - - - - Utils.EndObjectRegister(type, L, translator, null, null, - null, null, null); - - Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); - - - - - - - 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 IronSourceRewardedVideoManualAndroid(); - 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 IronSourceRewardedVideoManualAndroid constructor!"); - - } - - - - - - - - - - - - - - - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_OnRewardedVideoAdLoadFailed(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - IronSourceRewardedVideoManualAndroid gen_to_be_invoked = (IronSourceRewardedVideoManualAndroid)translator.FastGetCSObj(L, 1); - System.Action gen_delegate = translator.GetDelegate>(L, 3); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#3 need System.Action!"); - } - - if (gen_param_count == 3) - { - - if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { - gen_to_be_invoked.OnRewardedVideoAdLoadFailed += gen_delegate; - return 0; - } - - - if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { - gen_to_be_invoked.OnRewardedVideoAdLoadFailed -= gen_delegate; - return 0; - } - - } - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - LuaAPI.luaL_error(L, "invalid arguments to IronSourceRewardedVideoManualAndroid.OnRewardedVideoAdLoadFailed!"); - return 0; - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_OnRewardedVideoAdReady(RealStatePtr L) - { - try { - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - int gen_param_count = LuaAPI.lua_gettop(L); - IronSourceRewardedVideoManualAndroid gen_to_be_invoked = (IronSourceRewardedVideoManualAndroid)translator.FastGetCSObj(L, 1); - System.Action gen_delegate = translator.GetDelegate(L, 3); - if (gen_delegate == null) { - return LuaAPI.luaL_error(L, "#3 need System.Action!"); - } - - if (gen_param_count == 3) - { - - if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { - gen_to_be_invoked.OnRewardedVideoAdReady += gen_delegate; - return 0; - } - - - if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { - gen_to_be_invoked.OnRewardedVideoAdReady -= gen_delegate; - return 0; - } - - } - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - LuaAPI.luaL_error(L, "invalid arguments to IronSourceRewardedVideoManualAndroid.OnRewardedVideoAdReady!"); - return 0; - } - - - - } -} diff --git a/Assets/XLua/Gen/XLuaGenAutoRegister.cs b/Assets/XLua/Gen/XLuaGenAutoRegister.cs index 5dae1873b..b330d7b54 100644 --- a/Assets/XLua/Gen/XLuaGenAutoRegister.cs +++ b/Assets/XLua/Gen/XLuaGenAutoRegister.cs @@ -2328,9 +2328,6 @@ namespace XLua.CSObjectWrap translator.DelayWrapLoader(typeof(AdFormat), AdFormatWrap.__Register); - translator.DelayWrapLoader(typeof(AndroidAgent), AndroidAgentWrap.__Register); - - translator.DelayWrapLoader(typeof(IUnityBanner), IUnityBannerWrap.__Register); @@ -2372,20 +2369,14 @@ namespace XLua.CSObjectWrap translator.DelayWrapLoader(typeof(IronSourceAdInfo), IronSourceAdInfoWrap.__Register); + + translator.DelayWrapLoader(typeof(IronSourceBannerEvents), IronSourceBannerEventsWrap.__Register); + } static void wrapInit15(LuaEnv luaenv, ObjectTranslator translator) { - translator.DelayWrapLoader(typeof(IronSourceBannerAndroid), IronSourceBannerAndroidWrap.__Register); - - - translator.DelayWrapLoader(typeof(IronSourceBannerEvents), IronSourceBannerEventsWrap.__Register); - - - translator.DelayWrapLoader(typeof(IronSourceBannerLevelPlayAndroid), IronSourceBannerLevelPlayAndroidWrap.__Register); - - translator.DelayWrapLoader(typeof(IronSourceConfig), IronSourceConfigWrap.__Register); @@ -2419,48 +2410,21 @@ namespace XLua.CSObjectWrap translator.DelayWrapLoader(typeof(IronSourceImpressionData), IronSourceImpressionDataWrap.__Register); - translator.DelayWrapLoader(typeof(IronSourceImpressionDataAndroid), IronSourceImpressionDataAndroidWrap.__Register); - - - translator.DelayWrapLoader(typeof(IronSourceInitializationAndroid), IronSourceInitializationAndroidWrap.__Register); - - translator.DelayWrapLoader(typeof(IronSourceInitilizer), IronSourceInitilizerWrap.__Register); - translator.DelayWrapLoader(typeof(IronSourceInterstitialAndroid), IronSourceInterstitialAndroidWrap.__Register); - - translator.DelayWrapLoader(typeof(IronSourceInterstitialEvents), IronSourceInterstitialEventsWrap.__Register); - translator.DelayWrapLoader(typeof(IronSourceInterstitialLevelPlayAndroid), IronSourceInterstitialLevelPlayAndroidWrap.__Register); - - translator.DelayWrapLoader(typeof(IronSourceMediationSettings), IronSourceMediationSettingsWrap.__Register); - translator.DelayWrapLoader(typeof(IronSourceOfferwallAndroid), IronSourceOfferwallAndroidWrap.__Register); - - translator.DelayWrapLoader(typeof(IronSourcePlacement), IronSourcePlacementWrap.__Register); - translator.DelayWrapLoader(typeof(IronSourceRewardedVideoAndroid), IronSourceRewardedVideoAndroidWrap.__Register); - - translator.DelayWrapLoader(typeof(IronSourceRewardedVideoEvents), IronSourceRewardedVideoEventsWrap.__Register); - translator.DelayWrapLoader(typeof(IronSourceRewardedVideoLevelPlayAndroid), IronSourceRewardedVideoLevelPlayAndroidWrap.__Register); - - - translator.DelayWrapLoader(typeof(IronSourceRewardedVideoLevelPlayManualAndroid), IronSourceRewardedVideoLevelPlayManualAndroidWrap.__Register); - - - translator.DelayWrapLoader(typeof(IronSourceRewardedVideoManualAndroid), IronSourceRewardedVideoManualAndroidWrap.__Register); - - translator.DelayWrapLoader(typeof(IronSourceSegment), IronSourceSegmentWrap.__Register); @@ -2482,9 +2446,6 @@ namespace XLua.CSObjectWrap translator.DelayWrapLoader(typeof(ISAdQualityAdType), ISAdQualityAdTypeWrap.__Register); - translator.DelayWrapLoader(typeof(ISAdQualityAndroidInitHandler), ISAdQualityAndroidInitHandlerWrap.__Register); - - translator.DelayWrapLoader(typeof(ISAdQualityConfig), ISAdQualityConfigWrap.__Register); @@ -2529,10 +2490,6 @@ namespace XLua.CSObjectWrap translator.DelayWrapLoader(typeof(BaseBehaviour), BaseBehaviourWrap.__Register); - } - - static void wrapInit16(LuaEnv luaenv, ObjectTranslator translator) - { translator.DelayWrapLoader(typeof(CodeGeneratedSingleton), CodeGeneratedSingletonWrap.__Register); @@ -2572,6 +2529,10 @@ namespace XLua.CSObjectWrap translator.DelayWrapLoader(typeof(ThinkingAnalytics.TDPresetProperties), ThinkingAnalyticsTDPresetPropertiesWrap.__Register); + } + + static void wrapInit16(LuaEnv luaenv, ObjectTranslator translator) + { translator.DelayWrapLoader(typeof(ThinkingAnalytics.ThinkingAnalyticsAPI), ThinkingAnalyticsThinkingAnalyticsAPIWrap.__Register); @@ -2686,10 +2647,6 @@ namespace XLua.CSObjectWrap translator.DelayWrapLoader(typeof(Facebook.MiniJSON.MiniJsonUtil), FacebookMiniJSONMiniJsonUtilWrap.__Register); - } - - static void wrapInit17(LuaEnv luaenv, ObjectTranslator translator) - { translator.DelayWrapLoader(typeof(BF.NativeCore.ThirdPlatform.AppsFlyerSdk), BFNativeCoreThirdPlatformAppsFlyerSdkWrap.__Register); @@ -2729,6 +2686,10 @@ namespace XLua.CSObjectWrap translator.DelayWrapLoader(typeof(System.Enum), SystemEnumWrap.__Register); + } + + static void wrapInit17(LuaEnv luaenv, ObjectTranslator translator) + { translator.DelayWrapLoader(typeof(System.DateTime), SystemDateTimeWrap.__Register); @@ -2843,10 +2804,6 @@ namespace XLua.CSObjectWrap translator.DelayWrapLoader(typeof(UnityEngine.Playables.PlayableAsset), UnityEnginePlayablesPlayableAssetWrap.__Register); - } - - static void wrapInit18(LuaEnv luaenv, ObjectTranslator translator) - { translator.DelayWrapLoader(typeof(UnityEngine.Playables.Playable), UnityEnginePlayablesPlayableWrap.__Register); @@ -2886,6 +2843,10 @@ namespace XLua.CSObjectWrap translator.DelayWrapLoader(typeof(UnityEngine.Video.VideoPlayer), UnityEngineVideoVideoPlayerWrap.__Register); + } + + static void wrapInit18(LuaEnv luaenv, ObjectTranslator translator) + { translator.DelayWrapLoader(typeof(UnityEngine.Camera.GateFitMode), UnityEngineCameraGateFitModeWrap.__Register); @@ -3000,10 +2961,6 @@ namespace XLua.CSObjectWrap translator.DelayWrapLoader(typeof(Spine.AnimationState), SpineAnimationStateWrap.__Register); - } - - static void wrapInit19(LuaEnv luaenv, ObjectTranslator translator) - { translator.DelayWrapLoader(typeof(Spine.AnimationStateData), SpineAnimationStateDataWrap.__Register); @@ -3043,6 +3000,10 @@ namespace XLua.CSObjectWrap translator.DelayWrapLoader(typeof(Spine.Unity.BoneFollower.AxisOrientation), SpineUnityBoneFollowerAxisOrientationWrap.__Register); + } + + static void wrapInit19(LuaEnv luaenv, ObjectTranslator translator) + { translator.DelayWrapLoader(typeof(TMPro.TextAlignmentOptions), TMProTextAlignmentOptionsWrap.__Register); @@ -3157,10 +3118,6 @@ namespace XLua.CSObjectWrap translator.DelayWrapLoader(typeof(BF.ScrollRectBaseOld.ScrollbarVisibility), BFScrollRectBaseOldScrollbarVisibilityWrap.__Register); - } - - static void wrapInit20(LuaEnv luaenv, ObjectTranslator translator) - { translator.DelayWrapLoader(typeof(BF.NetServiceType), BFNetServiceTypeWrap.__Register); @@ -3220,8 +3177,6 @@ namespace XLua.CSObjectWrap wrapInit19(luaenv, translator); - wrapInit20(luaenv, translator); - } diff --git a/Assets/XLua/Gen/com_adjust_sdk_AdjustUtilsWrap.cs b/Assets/XLua/Gen/com_adjust_sdk_AdjustUtilsWrap.cs index 092500ebe..0a27ea9b0 100644 --- a/Assets/XLua/Gen/com_adjust_sdk_AdjustUtilsWrap.cs +++ b/Assets/XLua/Gen/com_adjust_sdk_AdjustUtilsWrap.cs @@ -31,7 +31,7 @@ namespace XLua.CSObjectWrap Utils.EndObjectRegister(type, L, translator, null, null, null, null, null); - Utils.BeginClassRegister(type, L, __CreateInstance, 15, 37, 37); + Utils.BeginClassRegister(type, L, __CreateInstance, 14, 37, 37); Utils.RegisterFunc(L, Utils.CLS_IDX, "ConvertLogLevel", _m_ConvertLogLevel_xlua_st_); Utils.RegisterFunc(L, Utils.CLS_IDX, "ConvertBool", _m_ConvertBool_xlua_st_); Utils.RegisterFunc(L, Utils.CLS_IDX, "ConvertDouble", _m_ConvertDouble_xlua_st_); @@ -45,7 +45,6 @@ namespace XLua.CSObjectWrap Utils.RegisterFunc(L, Utils.CLS_IDX, "GetSkad4ConversionValue", _m_GetSkad4ConversionValue_xlua_st_); Utils.RegisterFunc(L, Utils.CLS_IDX, "GetSkad4CoarseValue", _m_GetSkad4CoarseValue_xlua_st_); Utils.RegisterFunc(L, Utils.CLS_IDX, "GetSkad4LockWindow", _m_GetSkad4LockWindow_xlua_st_); - Utils.RegisterFunc(L, Utils.CLS_IDX, "TestOptionsMap2AndroidJavaObject", _m_TestOptionsMap2AndroidJavaObject_xlua_st_); @@ -506,34 +505,6 @@ namespace XLua.CSObjectWrap } - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_TestOptionsMap2AndroidJavaObject_xlua_st_(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - - - { - System.Collections.Generic.Dictionary _testOptionsMap = (System.Collections.Generic.Dictionary)translator.GetObject(L, 1, typeof(System.Collections.Generic.Dictionary)); - UnityEngine.AndroidJavaObject _ajoCurrentActivity = (UnityEngine.AndroidJavaObject)translator.GetObject(L, 2, typeof(UnityEngine.AndroidJavaObject)); - - var gen_ret = com.adjust.sdk.AdjustUtils.TestOptionsMap2AndroidJavaObject( _testOptionsMap, _ajoCurrentActivity ); - translator.Push(L, gen_ret); - - - - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - diff --git a/Assets/XLua/Gen/link.xml b/Assets/XLua/Gen/link.xml index 0956b0e53..eaa9a0d4d 100644 --- a/Assets/XLua/Gen/link.xml +++ b/Assets/XLua/Gen/link.xml @@ -220,7 +220,6 @@ - @@ -235,9 +234,7 @@ - - @@ -249,20 +246,11 @@ - - - - - - - - - @@ -270,7 +258,6 @@ -