diff --git a/Assets/Editor/LuaGenConfig.cs b/Assets/Editor/LuaGenConfig.cs index df3613bd9..ee23e5bfa 100644 --- a/Assets/Editor/LuaGenConfig.cs +++ b/Assets/Editor/LuaGenConfig.cs @@ -690,6 +690,8 @@ namespace BFEditor new List(){"Spine.Unity.SpineHandles", "DrawReferenceRect", "Spine.Unity.SkeletonGraphic", "UnityEngine.Color"}, new List(){"Spine.Unity.SkeletonGraphic", "EditReferenceRect"}, new List(){"Spine.Unity.SkeletonGraphic", "RectTransformSize"}, + new List(){"Spine.Unity.SkeletonGraphic", "GetPivotOffset"}, + new List(){"Spine.Unity.SkeletonGraphic", "GetScaledPivotOffset"}, }; static bool hasGenericParameter(Type type) 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 4479d75d3..af6ef9428 100644 --- a/Assets/XLua/Gen/DelegatesGensBridge.cs +++ b/Assets/XLua/Gen/DelegatesGensBridge.cs @@ -1075,7 +1075,7 @@ namespace XLua #endif } - public void __Gen_Delegate_Imp47(IronSourceError p0) + public void __Gen_Delegate_Imp47(IronSourceAdInfo p0) { #if THREAD_SAFE || HOTFIX_ENABLE lock (luaEnv.luaEnvLock) @@ -1097,7 +1097,7 @@ namespace XLua #endif } - public void __Gen_Delegate_Imp48(IronSourceAdInfo p0) + public void __Gen_Delegate_Imp48(IronSourceError p0) { #if THREAD_SAFE || HOTFIX_ENABLE lock (luaEnv.luaEnvLock) @@ -1119,7 +1119,7 @@ namespace XLua #endif } - public void __Gen_Delegate_Imp49(IronSourcePlacement p0) + public void __Gen_Delegate_Imp49(IronSourceImpressionData p0) { #if THREAD_SAFE || HOTFIX_ENABLE lock (luaEnv.luaEnvLock) @@ -1141,7 +1141,29 @@ namespace XLua #endif } - public void __Gen_Delegate_Imp50(string p0, IronSourceError p1) + public void __Gen_Delegate_Imp50(IronSourcePlacement p0) + { +#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.Push(L, p0); + + PCall(L, 1, 0, errFunc); + + + + LuaAPI.lua_settop(L, errFunc - 1); + +#if THREAD_SAFE || HOTFIX_ENABLE + } +#endif + } + + public void __Gen_Delegate_Imp51(string p0, IronSourceError p1) { #if THREAD_SAFE || HOTFIX_ENABLE lock (luaEnv.luaEnvLock) @@ -1164,29 +1186,7 @@ namespace XLua #endif } - public void __Gen_Delegate_Imp51(System.Collections.Generic.Dictionary p0) - { -#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.Push(L, p0); - - PCall(L, 1, 0, errFunc); - - - - LuaAPI.lua_settop(L, errFunc - 1); - -#if THREAD_SAFE || HOTFIX_ENABLE - } -#endif - } - - public void __Gen_Delegate_Imp52(IronSourceImpressionData p0) + public void __Gen_Delegate_Imp52(System.Collections.Generic.Dictionary p0) { #if THREAD_SAFE || HOTFIX_ENABLE lock (luaEnv.luaEnvLock) @@ -3381,34 +3381,34 @@ namespace XLua return new System.Func>(__Gen_Delegate_Imp46); } - if (type == typeof(System.Action)) - { - return new System.Action(__Gen_Delegate_Imp47); - } - if (type == typeof(System.Action)) { - return new System.Action(__Gen_Delegate_Imp48); + return new System.Action(__Gen_Delegate_Imp47); } - if (type == typeof(System.Action)) + if (type == typeof(System.Action)) { - return new System.Action(__Gen_Delegate_Imp49); - } - - if (type == typeof(System.Action)) - { - return new System.Action(__Gen_Delegate_Imp50); - } - - if (type == typeof(System.Action>)) - { - return new System.Action>(__Gen_Delegate_Imp51); + return new System.Action(__Gen_Delegate_Imp48); } if (type == typeof(System.Action)) { - return new System.Action(__Gen_Delegate_Imp52); + return new System.Action(__Gen_Delegate_Imp49); + } + + if (type == typeof(System.Action)) + { + return new System.Action(__Gen_Delegate_Imp50); + } + + if (type == typeof(System.Action)) + { + return new System.Action(__Gen_Delegate_Imp51); + } + + if (type == typeof(System.Action>)) + { + return new System.Action>(__Gen_Delegate_Imp52); } if (type == typeof(System.Action)) 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/Spine_Unity_SkeletonGraphicWrap.cs b/Assets/XLua/Gen/Spine_Unity_SkeletonGraphicWrap.cs index d8ac27dab..32e761f81 100644 --- a/Assets/XLua/Gen/Spine_Unity_SkeletonGraphicWrap.cs +++ b/Assets/XLua/Gen/Spine_Unity_SkeletonGraphicWrap.cs @@ -21,7 +21,7 @@ namespace XLua.CSObjectWrap { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); System.Type type = typeof(Spine.Unity.SkeletonGraphic); - Utils.BeginObjectRegister(type, L, translator, 0, 35, 44, 28); + Utils.BeginObjectRegister(type, L, translator, 0, 33, 44, 28); Utils.RegisterFunc(L, Utils.METHOD_IDX, "Rebuild", _m_Rebuild); Utils.RegisterFunc(L, Utils.METHOD_IDX, "Update", _m_Update); @@ -44,8 +44,6 @@ namespace XLua.CSObjectWrap Utils.RegisterFunc(L, Utils.METHOD_IDX, "UpdateMesh", _m_UpdateMesh); Utils.RegisterFunc(L, Utils.METHOD_IDX, "UpdateMeshToInstructions", _m_UpdateMeshToInstructions); Utils.RegisterFunc(L, Utils.METHOD_IDX, "HasMultipleSubmeshInstructions", _m_HasMultipleSubmeshInstructions); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetPivotOffset", _m_GetPivotOffset); - Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetScaledPivotOffset", _m_GetScaledPivotOffset); Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetScaledPivotOffset", _m_SetScaledPivotOffset); Utils.RegisterFunc(L, Utils.METHOD_IDX, "AssignMeshOverrideSingleRenderer", _e_AssignMeshOverrideSingleRenderer); @@ -873,62 +871,6 @@ namespace XLua.CSObjectWrap - return 1; - } - - } catch(System.Exception gen_e) { - return LuaAPI.luaL_error(L, "c# exception:" + gen_e); - } - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_GetPivotOffset(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - Spine.Unity.SkeletonGraphic gen_to_be_invoked = (Spine.Unity.SkeletonGraphic)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.GetPivotOffset( ); - translator.PushUnityEngineVector2(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_GetScaledPivotOffset(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - Spine.Unity.SkeletonGraphic gen_to_be_invoked = (Spine.Unity.SkeletonGraphic)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.GetScaledPivotOffset( ); - translator.PushUnityEngineVector2(L, gen_ret); - - - return 1; } diff --git a/Assets/XLua/Gen/XLuaGenAutoRegister.cs b/Assets/XLua/Gen/XLuaGenAutoRegister.cs index a111023ea..3f134f480 100644 --- a/Assets/XLua/Gen/XLuaGenAutoRegister.cs +++ b/Assets/XLua/Gen/XLuaGenAutoRegister.cs @@ -650,24 +650,15 @@ namespace XLua.CSObjectWrap static void wrapInit4(LuaEnv luaenv, ObjectTranslator translator) { - translator.DelayWrapLoader(typeof(AndroidAgent), AndroidAgentWrap.__Register); - - translator.DelayWrapLoader(typeof(IronSource), IronSourceWrap.__Register); translator.DelayWrapLoader(typeof(IronSourceAdInfo), IronSourceAdInfoWrap.__Register); - translator.DelayWrapLoader(typeof(IronSourceBannerAndroid), IronSourceBannerAndroidWrap.__Register); - - translator.DelayWrapLoader(typeof(IronSourceBannerEvents), IronSourceBannerEventsWrap.__Register); - translator.DelayWrapLoader(typeof(IronSourceBannerLevelPlayAndroid), IronSourceBannerLevelPlayAndroidWrap.__Register); - - translator.DelayWrapLoader(typeof(IronSourceConfig), IronSourceConfigWrap.__Register); @@ -701,48 +692,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); @@ -802,10 +766,6 @@ namespace XLua.CSObjectWrap translator.DelayWrapLoader(typeof(SignInWithAppleTest_EventSystem), SignInWithAppleTest_EventSystemWrap.__Register); - } - - static void wrapInit5(LuaEnv luaenv, ObjectTranslator translator) - { translator.DelayWrapLoader(typeof(LuaAsset), LuaAssetWrap.__Register); @@ -842,6 +802,10 @@ namespace XLua.CSObjectWrap translator.DelayWrapLoader(typeof(ThinkingAnalytics.Utils.TD_PropertiesChecker), ThinkingAnalyticsUtilsTD_PropertiesCheckerWrap.__Register); + } + + static void wrapInit5(LuaEnv luaenv, ObjectTranslator translator) + { translator.DelayWrapLoader(typeof(ThinkingAnalytics.TaException.ThinkingSDKExceptionHandler), ThinkingAnalyticsTaExceptionThinkingSDKExceptionHandlerWrap.__Register); @@ -959,10 +923,6 @@ namespace XLua.CSObjectWrap translator.DelayWrapLoader(typeof(BF.NativeCore.ThirdPlatform.AppsFlyerSdk), BFNativeCoreThirdPlatformAppsFlyerSdkWrap.__Register); - } - - static void wrapInit6(LuaEnv luaenv, ObjectTranslator translator) - { translator.DelayWrapLoader(typeof(BF.NativeCore.ThirdPlatform.FacebookSdk), BFNativeCoreThirdPlatformFacebookSdkWrap.__Register); @@ -999,6 +959,10 @@ namespace XLua.CSObjectWrap translator.DelayWrapLoader(typeof(DG.Tweening.DOTweenCYInstruction.WaitForElapsedLoops), DGTweeningDOTweenCYInstructionWaitForElapsedLoopsWrap.__Register); + } + + static void wrapInit6(LuaEnv luaenv, ObjectTranslator translator) + { translator.DelayWrapLoader(typeof(DG.Tweening.DOTweenCYInstruction.WaitForPosition), DGTweeningDOTweenCYInstructionWaitForPositionWrap.__Register); @@ -1116,10 +1080,6 @@ namespace XLua.CSObjectWrap translator.DelayWrapLoader(typeof(UnityEngine.Camera.RenderRequestOutputSpace), UnityEngineCameraRenderRequestOutputSpaceWrap.__Register); - } - - static void wrapInit7(LuaEnv luaenv, ObjectTranslator translator) - { translator.DelayWrapLoader(typeof(UnityEngine.Camera.SceneViewFilterMode), UnityEngineCameraSceneViewFilterModeWrap.__Register); @@ -1156,6 +1116,10 @@ namespace XLua.CSObjectWrap translator.DelayWrapLoader(typeof(UnityEngine.Vector3), UnityEngineVector3Wrap.__Register); + } + + static void wrapInit7(LuaEnv luaenv, ObjectTranslator translator) + { translator.DelayWrapLoader(typeof(UnityEngine.Vector4), UnityEngineVector4Wrap.__Register); @@ -1273,10 +1237,6 @@ namespace XLua.CSObjectWrap translator.DelayWrapLoader(typeof(UnityEngine.ParticleSystem.SizeBySpeedModule), UnityEngineParticleSystemSizeBySpeedModuleWrap.__Register); - } - - static void wrapInit8(LuaEnv luaenv, ObjectTranslator translator) - { translator.DelayWrapLoader(typeof(UnityEngine.ParticleSystem.RotationBySpeedModule), UnityEngineParticleSystemRotationBySpeedModuleWrap.__Register); @@ -1313,6 +1273,10 @@ namespace XLua.CSObjectWrap translator.DelayWrapLoader(typeof(UnityEngine.ParticleSystem.MinMaxCurve), UnityEngineParticleSystemMinMaxCurveWrap.__Register); + } + + static void wrapInit8(LuaEnv luaenv, ObjectTranslator translator) + { translator.DelayWrapLoader(typeof(UnityEngine.ParticleSystem.Particle), UnityEngineParticleSystemParticleWrap.__Register); @@ -1430,10 +1394,6 @@ namespace XLua.CSObjectWrap translator.DelayWrapLoader(typeof(UnityEngine.Material), UnityEngineMaterialWrap.__Register); - } - - static void wrapInit9(LuaEnv luaenv, ObjectTranslator translator) - { translator.DelayWrapLoader(typeof(UnityEngine.MaterialPropertyBlock), UnityEngineMaterialPropertyBlockWrap.__Register); @@ -1470,6 +1430,10 @@ namespace XLua.CSObjectWrap translator.DelayWrapLoader(typeof(UnityEngine.LineRenderer), UnityEngineLineRendererWrap.__Register); + } + + static void wrapInit9(LuaEnv luaenv, ObjectTranslator translator) + { translator.DelayWrapLoader(typeof(UnityEngine.Texture2D), UnityEngineTexture2DWrap.__Register); @@ -1587,10 +1551,6 @@ namespace XLua.CSObjectWrap translator.DelayWrapLoader(typeof(UnityEngine.UI.Image.OriginHorizontal), UnityEngineUIImageOriginHorizontalWrap.__Register); - } - - static void wrapInit10(LuaEnv luaenv, ObjectTranslator translator) - { translator.DelayWrapLoader(typeof(UnityEngine.UI.Image.OriginVertical), UnityEngineUIImageOriginVerticalWrap.__Register); @@ -1627,6 +1587,10 @@ namespace XLua.CSObjectWrap translator.DelayWrapLoader(typeof(UnityEngine.UI.InputField.LineType), UnityEngineUIInputFieldLineTypeWrap.__Register); + } + + static void wrapInit10(LuaEnv luaenv, ObjectTranslator translator) + { translator.DelayWrapLoader(typeof(UnityEngine.UI.InputField.SubmitEvent), UnityEngineUIInputFieldSubmitEventWrap.__Register); @@ -1744,10 +1708,6 @@ namespace XLua.CSObjectWrap translator.DelayWrapLoader(typeof(Spine.AnimationStateData.AnimationPair), SpineAnimationStateDataAnimationPairWrap.__Register); - } - - static void wrapInit11(LuaEnv luaenv, ObjectTranslator translator) - { translator.DelayWrapLoader(typeof(Spine.AnimationStateData.AnimationPairComparer), SpineAnimationStateDataAnimationPairComparerWrap.__Register); @@ -1784,6 +1744,10 @@ namespace XLua.CSObjectWrap translator.DelayWrapLoader(typeof(Spine.Unity.BoneFollower.AxisOrientation), SpineUnityBoneFollowerAxisOrientationWrap.__Register); + } + + static void wrapInit11(LuaEnv luaenv, ObjectTranslator translator) + { translator.DelayWrapLoader(typeof(Spine.Unity.SkeletonGraphic.LayoutMode), SpineUnitySkeletonGraphicLayoutModeWrap.__Register); @@ -1901,10 +1865,6 @@ namespace XLua.CSObjectWrap translator.DelayWrapLoader(typeof(DG.Tweening.Core.TweenerCore), DGTweeningCoreTweenerCore_3_UnityEngineQuaternionUnityEngineVector3DGTweeningPluginsOptionsQuaternionOptions_Wrap.__Register); - } - - static void wrapInit12(LuaEnv luaenv, ObjectTranslator translator) - { translator.DelayWrapLoader(typeof(DG.Tweening.Core.TweenerCore), DGTweeningCoreTweenerCore_3_UnityEngineVector3DGTweeningPluginsCorePathCorePathDGTweeningPluginsOptionsPathOptions_Wrap.__Register); @@ -1941,6 +1901,10 @@ namespace XLua.CSObjectWrap translator.DelayWrapLoader(typeof(DG.Tweening.TweenSettingsExtensions), DGTweeningTweenSettingsExtensionsWrap.__Register); + } + + static void wrapInit12(LuaEnv luaenv, ObjectTranslator translator) + { translator.DelayWrapLoader(typeof(DG.Tweening.ShortcutExtensions), DGTweeningShortcutExtensionsWrap.__Register); 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 f617e9d09..ac57abc97 100644 --- a/Assets/XLua/Gen/link.xml +++ b/Assets/XLua/Gen/link.xml @@ -207,12 +207,9 @@ - - - @@ -224,20 +221,11 @@ - - - - - - - - -