diff --git a/Assets/Plugins/Android/android-bridge.jar b/Assets/Plugins/Android/android-bridge.jar deleted file mode 100644 index d15783989..000000000 Binary files a/Assets/Plugins/Android/android-bridge.jar and /dev/null differ diff --git a/Assets/Plugins/Android/mainTemplate.gradle b/Assets/Plugins/Android/mainTemplate.gradle index 8ddf1fe3f..d792767dc 100644 --- a/Assets/Plugins/Android/mainTemplate.gradle +++ b/Assets/Plugins/Android/mainTemplate.gradle @@ -8,20 +8,29 @@ url "https://maven.google.com" } maven { - url "https://android-sdk.is.com/" // Assets/IronSource/Editor/IronSourceSDKDependencies.xml:9, Assets/IronSource/Editor/ISAdColonyAdapterDependencies.xml:16, Assets/IronSource/Editor/ISAdMobAdapterDependencies.xml:16, Assets/IronSource/Editor/ISAppLovinAdapterDependencies.xml:8, Assets/IronSource/Editor/ISChartboostAdapterDependencies.xml:8, Assets/IronSource/Editor/ISFacebookAdapterDependencies.xml:16, Assets/IronSource/Editor/ISFyberAdapterDependencies.xml:16, Assets/IronSource/Editor/ISLiftoffAdapterDependencies.xml:16, Assets/IronSource/Editor/ISPangleAdapterDependencies.xml:8, Assets/IronSource/Editor/ISTapJoyAdapterDependencies.xml:8, Assets/IronSource/Editor/ISUnityAdsAdapterDependencies.xml:8 + url "https://android-sdk.is.com/" // Assets/IronSource/Editor/IronSourceSDKDependencies.xml:9, Assets/IronSource/Editor/ISAdColonyAdapterDependencies.xml:16, Assets/IronSource/Editor/ISAdMobAdapterDependencies.xml:16, Assets/IronSource/Editor/ISAppLovinAdapterDependencies.xml:8, Assets/IronSource/Editor/ISChartboostAdapterDependencies.xml:8, Assets/IronSource/Editor/ISFacebookAdapterDependencies.xml:16, Assets/IronSource/Editor/ISFyberAdapterDependencies.xml:16, Assets/IronSource/Editor/ISMintegralAdapterDependencies.xml:48, Assets/IronSource/Editor/ISPangleAdapterDependencies.xml:8, Assets/IronSource/Editor/ISTapJoyAdapterDependencies.xml:8, Assets/IronSource/Editor/ISUnityAdsAdapterDependencies.xml:8, Assets/IronSource/Editor/ISVungleAdapterDependencies.xml:16, Assets/IronSourceAdQuality/Editor/IronSourceAdQualityDependencies.xml:9, Assets/IronSourceAdQuality/Editor/IronSourceAdQualityDependencies.xml:17 } maven { - url "https://maven.google.com/" // Assets/IronSource/Editor/IronSourceSDKDependencies.xml:17, Assets/IronSource/Editor/IronSourceSDKDependencies.xml:25, Assets/IronSource/Editor/ISAdColonyAdapterDependencies.xml:8, Assets/IronSource/Editor/ISAdMobAdapterDependencies.xml:8, Assets/IronSource/Editor/ISAppLovinAdapterDependencies.xml:15, Assets/IronSource/Editor/ISChartboostAdapterDependencies.xml:15, Assets/IronSource/Editor/ISFacebookAdapterDependencies.xml:8, Assets/IronSource/Editor/ISLiftoffAdapterDependencies.xml:8, Assets/IronSource/Editor/ISUnityAdsAdapterDependencies.xml:15 + url "https://maven.google.com/" // Assets/IronSource/Editor/IronSourceSDKDependencies.xml:17, Assets/IronSource/Editor/IronSourceSDKDependencies.xml:25, Assets/IronSource/Editor/ISAdColonyAdapterDependencies.xml:8, Assets/IronSource/Editor/ISAdMobAdapterDependencies.xml:8, Assets/IronSource/Editor/ISAppLovinAdapterDependencies.xml:15, Assets/IronSource/Editor/ISFacebookAdapterDependencies.xml:8, Assets/IronSource/Editor/ISMintegralAdapterDependencies.xml:40, Assets/IronSource/Editor/ISUnityAdsAdapterDependencies.xml:15 + } + maven { + url "https://cboost.jfrog.io/artifactory/chartboost-ads/" // Assets/IronSource/Editor/ISChartboostAdapterDependencies.xml:15 } maven { url "https://repo.maven.apache.org/maven2/" // Assets/IronSource/Editor/ISFyberAdapterDependencies.xml:8 } + maven { + url "https://dl-maven-android.mintegral.com/repository/mbridge_android_sdk_oversea/" // Assets/IronSource/Editor/ISMintegralAdapterDependencies.xml:8, Assets/IronSource/Editor/ISMintegralAdapterDependencies.xml:16, Assets/IronSource/Editor/ISMintegralAdapterDependencies.xml:24, Assets/IronSource/Editor/ISMintegralAdapterDependencies.xml:32 + } maven { url "https://artifact.bytedance.com/repository/pangle/" // Assets/IronSource/Editor/ISPangleAdapterDependencies.xml:15 } maven { url "https://sdk.tapjoy.com/" // Assets/IronSource/Editor/ISTapJoyAdapterDependencies.xml:15 } + maven { + url "https://jitpack.io/" // Assets/IronSource/Editor/ISVungleAdapterDependencies.xml:8 + } mavenLocal() jcenter() mavenCentral() @@ -34,42 +43,50 @@ apply plugin: 'com.android.library' dependencies { implementation fileTree(dir: 'libs', include: ['*.jar']) // Android Resolver Dependencies Start + implementation 'androidx.recyclerview:recyclerview:1.2.1' // Assets/IronSource/Editor/ISMintegralAdapterDependencies.xml:40 implementation 'com.adcolony:sdk:4.8.0' // Assets/IronSource/Editor/ISAdColonyAdapterDependencies.xml:8 implementation 'com.android.installreferrer:installreferrer:2.1' // Assets/ThirdParty/AppsFlyer/Editor/AppsFlyerDependencies.xml:10 implementation 'com.android.support:appcompat-v7:25.3.1' // Facebook.Unity.Editor.AndroidSupportLibraryResolver.addSupportLibraryDependency implementation 'com.android.support:cardview-v7:25.3.1' // Facebook.Unity.Editor.AndroidSupportLibraryResolver.addSupportLibraryDependency implementation 'com.android.support:customtabs:25.3.1' // Facebook.Unity.Editor.AndroidSupportLibraryResolver.addSupportLibraryDependency implementation 'com.android.support:support-v4:25.3.1' // Facebook.Unity.Editor.AndroidSupportLibraryResolver.addSupportLibraryDependency - implementation 'com.applovin:applovin-sdk:11.7.1' // Assets/IronSource/Editor/ISAppLovinAdapterDependencies.xml:15 + implementation 'com.applovin:applovin-sdk:11.10.1' // Assets/IronSource/Editor/ISAppLovinAdapterDependencies.xml:15 implementation 'com.appsflyer:af-android-sdk:6.4.1' // Assets/ThirdParty/AppsFlyer/Editor/AppsFlyerDependencies.xml:6 implementation 'com.appsflyer:unity-wrapper:6.4.1' // Assets/ThirdParty/AppsFlyer/Editor/AppsFlyerDependencies.xml:8 - implementation 'com.chartboost:chartboost-sdk:9.2.0' // Assets/IronSource/Editor/ISChartboostAdapterDependencies.xml:15 - implementation 'com.facebook.android:audience-network-sdk:6.12.0' // Assets/IronSource/Editor/ISFacebookAdapterDependencies.xml:8 + implementation 'com.chartboost:chartboost-sdk:9.3.1' // Assets/IronSource/Editor/ISChartboostAdapterDependencies.xml:15 + implementation 'com.facebook.android:audience-network-sdk:6.15.0' // Assets/IronSource/Editor/ISFacebookAdapterDependencies.xml:8 implementation 'com.facebook.android:facebook-applinks:[15.1,16)' // Assets/ThirdParty/FacebookSDK/Plugins/Editor/Dependencies.xml:6 implementation 'com.facebook.android:facebook-core:[15.1,16)' // Assets/ThirdParty/FacebookSDK/Plugins/Editor/Dependencies.xml:5 implementation 'com.facebook.android:facebook-gamingservices:[15.1,16)' // Assets/ThirdParty/FacebookSDK/Plugins/Editor/Dependencies.xml:9 implementation 'com.facebook.android:facebook-login:[15.1,16)' // Assets/ThirdParty/FacebookSDK/Plugins/Editor/Dependencies.xml:7 implementation 'com.facebook.android:facebook-share:[15.1,16)' // Assets/ThirdParty/FacebookSDK/Plugins/Editor/Dependencies.xml:8 - implementation 'com.fyber:marketplace-sdk:8.2.2' // Assets/IronSource/Editor/ISFyberAdapterDependencies.xml:8 - implementation 'com.google.android.gms:play-services-ads:21.5.0' // Assets/IronSource/Editor/ISAdMobAdapterDependencies.xml:8 + implementation 'com.fyber:marketplace-sdk:8.2.3' // Assets/IronSource/Editor/ISFyberAdapterDependencies.xml:8 + implementation 'com.google.android.gms:play-services-ads:22.2.0' // Assets/IronSource/Editor/ISAdMobAdapterDependencies.xml:8 implementation 'com.google.android.gms:play-services-ads-identifier:18.0.1' // Assets/IronSource/Editor/IronSourceSDKDependencies.xml:17 implementation 'com.google.android.gms:play-services-basement:18.1.0' // Assets/IronSource/Editor/IronSourceSDKDependencies.xml:25 implementation 'com.ironsource.adapters:adcolonyadapter:4.3.14' // Assets/IronSource/Editor/ISAdColonyAdapterDependencies.xml:16 - implementation 'com.ironsource.adapters:admobadapter:4.3.35' // Assets/IronSource/Editor/ISAdMobAdapterDependencies.xml:16 - implementation 'com.ironsource.adapters:applovinadapter:4.3.37' // Assets/IronSource/Editor/ISAppLovinAdapterDependencies.xml:8 - implementation 'com.ironsource.adapters:chartboostadapter:4.3.11' // Assets/IronSource/Editor/ISChartboostAdapterDependencies.xml:8 - implementation 'com.ironsource.adapters:facebookadapter:4.3.39' // Assets/IronSource/Editor/ISFacebookAdapterDependencies.xml:16 - implementation 'com.ironsource.adapters:fyberadapter:4.3.24' // Assets/IronSource/Editor/ISFyberAdapterDependencies.xml:16 - implementation 'com.ironsource.adapters:liftoffadapter:4.3.5' // Assets/IronSource/Editor/ISLiftoffAdapterDependencies.xml:16 - implementation 'com.ironsource.adapters:pangleadapter:4.3.17' // Assets/IronSource/Editor/ISPangleAdapterDependencies.xml:8 - implementation 'com.ironsource.adapters:tapjoyadapter:4.1.24' // Assets/IronSource/Editor/ISTapJoyAdapterDependencies.xml:8 - implementation 'com.ironsource.adapters:unityadsadapter:4.3.27' // Assets/IronSource/Editor/ISUnityAdsAdapterDependencies.xml:8 - implementation 'com.ironsource.sdk:mediationsdk:7.3.0.1' // Assets/IronSource/Editor/IronSourceSDKDependencies.xml:9 - implementation 'com.pangle.global:ads-sdk:5.0.0.8' // Assets/IronSource/Editor/ISPangleAdapterDependencies.xml:15 + implementation 'com.ironsource.adapters:admobadapter:4.3.39' // Assets/IronSource/Editor/ISAdMobAdapterDependencies.xml:16 + implementation 'com.ironsource.adapters:applovinadapter:4.3.39' // Assets/IronSource/Editor/ISAppLovinAdapterDependencies.xml:8 + implementation 'com.ironsource.adapters:chartboostadapter:4.3.12' // Assets/IronSource/Editor/ISChartboostAdapterDependencies.xml:8 + implementation 'com.ironsource.adapters:facebookadapter:4.3.44' // Assets/IronSource/Editor/ISFacebookAdapterDependencies.xml:16 + implementation 'com.ironsource.adapters:fyberadapter:4.3.26' // Assets/IronSource/Editor/ISFyberAdapterDependencies.xml:16 + implementation 'com.ironsource.adapters:mintegraladapter:4.3.17' // Assets/IronSource/Editor/ISMintegralAdapterDependencies.xml:48 + implementation 'com.ironsource.adapters:pangleadapter:4.3.20' // Assets/IronSource/Editor/ISPangleAdapterDependencies.xml:8 + implementation 'com.ironsource.adapters:tapjoyadapter:4.1.25' // Assets/IronSource/Editor/ISTapJoyAdapterDependencies.xml:8 + implementation 'com.ironsource.adapters:unityadsadapter:4.3.31' // Assets/IronSource/Editor/ISUnityAdsAdapterDependencies.xml:8 + implementation 'com.ironsource.adapters:vungleadapter:4.3.21' // Assets/IronSource/Editor/ISVungleAdapterDependencies.xml:16 + implementation 'com.ironsource.sdk:mediationsdk:7.3.1.1' // Assets/IronSource/Editor/IronSourceSDKDependencies.xml:9 + implementation 'com.ironsource.unity:adqualitysdk:7.13.0' // Assets/IronSourceAdQuality/Editor/IronSourceAdQualityDependencies.xml:17 + implementation 'com.ironsource:adqualitysdk:7.13.0' // Assets/IronSourceAdQuality/Editor/IronSourceAdQualityDependencies.xml:9 + implementation 'com.mbridge.msdk.oversea:mbbanner:16.4.61' // Assets/IronSource/Editor/ISMintegralAdapterDependencies.xml:24 + implementation 'com.mbridge.msdk.oversea:mbbid:16.4.61' // Assets/IronSource/Editor/ISMintegralAdapterDependencies.xml:32 + implementation 'com.mbridge.msdk.oversea:newinterstitial:16.4.61' // Assets/IronSource/Editor/ISMintegralAdapterDependencies.xml:8 + implementation 'com.mbridge.msdk.oversea:reward:16.4.61' // Assets/IronSource/Editor/ISMintegralAdapterDependencies.xml:16 + implementation 'com.pangle.global:ads-sdk:5.2.0.6' // Assets/IronSource/Editor/ISPangleAdapterDependencies.xml:15 implementation 'com.parse.bolts:bolts-android:1.4.0' // Assets/ThirdParty/FacebookSDK/Plugins/Editor/Dependencies.xml:4 - implementation 'com.tapjoy:tapjoy-android-sdk:12.11.1' // Assets/IronSource/Editor/ISTapJoyAdapterDependencies.xml:15 - implementation 'com.unity3d.ads:unity-ads:4.6.1' // Assets/IronSource/Editor/ISUnityAdsAdapterDependencies.xml:15 - implementation 'io.liftoff:liftoffads:1.9.1' // Assets/IronSource/Editor/ISLiftoffAdapterDependencies.xml:8 + implementation 'com.tapjoy:tapjoy-android-sdk:13.0.1' // Assets/IronSource/Editor/ISTapJoyAdapterDependencies.xml:15 + implementation 'com.unity3d.ads:unity-ads:4.8.0' // Assets/IronSource/Editor/ISUnityAdsAdapterDependencies.xml:15 + implementation 'com.vungle:publisher-sdk-android:6.12.1' // Assets/IronSource/Editor/ISVungleAdapterDependencies.xml:8 // Android Resolver Dependencies End **DEPS**} diff --git a/Assets/Scripts/Common/SDK/BFIronSourceSDKManager.cs b/Assets/Scripts/Common/SDK/BFIronSourceSDKManager.cs index c0af90504..04ab5e0cf 100644 --- a/Assets/Scripts/Common/SDK/BFIronSourceSDKManager.cs +++ b/Assets/Scripts/Common/SDK/BFIronSourceSDKManager.cs @@ -31,6 +31,7 @@ namespace BF // SDK init BFLog.Log("unity-script: IronSource.Agent.init"); + // IronSource.Agent.setMetaData("is_test_suite", "enable"); IronSource.Agent.init(appKey); IronSource.Agent.setManualLoadRewardedVideo(true); @@ -155,6 +156,8 @@ namespace BF void SdkInitializationCompletedEvent() { BFLog.Log("unity-script: I got SdkInitializationCompletedEvent"); + //Launch test suite + // IronSource.Agent.launchTestSuite(); } #endregion diff --git a/Assets/ThirdParty/IronSource/Editor/ISAdColonyAdapterDependencies.xml b/Assets/ThirdParty/IronSource/Editor/ISAdColonyAdapterDependencies.xml index 92430b2d4..8486dd659 100644 --- a/Assets/ThirdParty/IronSource/Editor/ISAdColonyAdapterDependencies.xml +++ b/Assets/ThirdParty/IronSource/Editor/ISAdColonyAdapterDependencies.xml @@ -1,5 +1,5 @@ - 4.3.19.0 + 4.3.19.1 @@ -17,7 +17,7 @@ + + + + + + \ No newline at end of file diff --git a/Assets/ThirdParty/IronSource/Plugins/Android/IronSource.androidlib/AndroidManifest.xml.meta b/Assets/ThirdParty/IronSource/Plugins/Android/IronSource.androidlib/AndroidManifest.xml.meta new file mode 100644 index 000000000..6fefa34f8 --- /dev/null +++ b/Assets/ThirdParty/IronSource/Plugins/Android/IronSource.androidlib/AndroidManifest.xml.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: e46e3d39a8bec48d9ae81d0008842ad4 +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/ThirdParty/IronSource/Plugins/Android/IronSource.androidlib/libs.meta b/Assets/ThirdParty/IronSource/Plugins/Android/IronSource.androidlib/libs.meta new file mode 100644 index 000000000..87878ec88 --- /dev/null +++ b/Assets/ThirdParty/IronSource/Plugins/Android/IronSource.androidlib/libs.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: a5936d92d17be4fde864e068dd13d202 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/ThirdParty/IronSource/Plugins/Android/IronSource.androidlib/libs/IronSource-bridge.jar b/Assets/ThirdParty/IronSource/Plugins/Android/IronSource.androidlib/libs/IronSource-bridge.jar new file mode 100644 index 000000000..44dcadb64 Binary files /dev/null and b/Assets/ThirdParty/IronSource/Plugins/Android/IronSource.androidlib/libs/IronSource-bridge.jar differ diff --git a/Assets/Plugins/Android/android-bridge.jar.meta b/Assets/ThirdParty/IronSource/Plugins/Android/IronSource.androidlib/libs/IronSource-bridge.jar.meta similarity index 93% rename from Assets/Plugins/Android/android-bridge.jar.meta rename to Assets/ThirdParty/IronSource/Plugins/Android/IronSource.androidlib/libs/IronSource-bridge.jar.meta index 03ad610d7..bd2869309 100644 --- a/Assets/Plugins/Android/android-bridge.jar.meta +++ b/Assets/ThirdParty/IronSource/Plugins/Android/IronSource.androidlib/libs/IronSource-bridge.jar.meta @@ -1,5 +1,5 @@ fileFormatVersion: 2 -guid: cbe75846a2b4da1459371181319ce8e3 +guid: f10a601320ff74e1e96ecfd77be278c5 PluginImporter: externalObjects: {} serializedVersion: 2 diff --git a/Assets/ThirdParty/IronSource/Plugins/Android/IronSource.androidlib/project.properties b/Assets/ThirdParty/IronSource/Plugins/Android/IronSource.androidlib/project.properties new file mode 100644 index 000000000..37b95eded --- /dev/null +++ b/Assets/ThirdParty/IronSource/Plugins/Android/IronSource.androidlib/project.properties @@ -0,0 +1,2 @@ +target=android-9 +android.library=true \ No newline at end of file diff --git a/Assets/ThirdParty/IronSource/Plugins/Android/IronSource.androidlib/project.properties.meta b/Assets/ThirdParty/IronSource/Plugins/Android/IronSource.androidlib/project.properties.meta new file mode 100644 index 000000000..3659560be --- /dev/null +++ b/Assets/ThirdParty/IronSource/Plugins/Android/IronSource.androidlib/project.properties.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: f6d91e910c9af49d7a1d0254340e9dca +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/ThirdParty/IronSource/Scripts/AdFormat.cs b/Assets/ThirdParty/IronSource/Scripts/AdFormat.cs new file mode 100644 index 000000000..87b7e2e3c --- /dev/null +++ b/Assets/ThirdParty/IronSource/Scripts/AdFormat.cs @@ -0,0 +1,22 @@ +using System; + +/// +/// Represents the available formats for displaying advertisements. +/// +public enum AdFormat +{ + /// + /// Represents a rewarded video ad format. + /// + RewardedVideo, + + /// + /// Represents an interstitial ad format. + /// + Interstitial, + + /// + /// Represents a banner ad format. + /// + Banner +} diff --git a/Assets/ThirdParty/IronSource/Scripts/AdFormat.cs.meta b/Assets/ThirdParty/IronSource/Scripts/AdFormat.cs.meta new file mode 100644 index 000000000..f7c929c45 --- /dev/null +++ b/Assets/ThirdParty/IronSource/Scripts/AdFormat.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 8124546645b9349f7858c4510ea7de78 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/ThirdParty/IronSource/Scripts/AndroidAgent.cs b/Assets/ThirdParty/IronSource/Scripts/AndroidAgent.cs index 35cddf6cb..02822cbeb 100644 --- a/Assets/ThirdParty/IronSource/Scripts/AndroidAgent.cs +++ b/Assets/ThirdParty/IronSource/Scripts/AndroidAgent.cs @@ -2,15 +2,20 @@ using UnityEngine; using System.Collections; using System.Collections.Generic; +using System.Globalization; using System; public class AndroidAgent : IronSourceIAgent { - private static AndroidJavaObject _androidBridge; - private readonly static string AndroidBridge = "com.ironsource.unity.androidbridge.AndroidBridge"; - private const string REWARD_AMOUNT = "reward_amount"; - private const string REWARD_NAME = "reward_name"; - private const string PLACEMENT_NAME = "placement_name"; + static AndroidJavaObject _androidBridge; + readonly static string AndroidBridge = "com.ironsource.unity.androidbridge.AndroidBridge"; + const string REWARD_AMOUNT = "reward_amount"; + const string REWARD_NAME = "reward_name"; + const string PLACEMENT_NAME = "placement_name"; + + const string WATERFALL_CONFIG_FLOOR = "floor"; + const string WATERFALL_CONFIG_CEILING = "ceiling"; + const string WATERFALL_CONFIG_API = "setWaterfallConfiguration"; public AndroidAgent () { @@ -34,6 +39,48 @@ public class AndroidAgent : IronSourceIAgent //******************* Base API *******************// + /// + /// Allows publishers to set configurations for a waterfall of a given ad type. + /// + /// The configuration for the given ad types waterfall. + /// The AdFormat for which to configure the waterfall. + public void SetWaterfallConfiguration(WaterfallConfiguration waterfallConfiguration, AdFormat adFormat) + { + var ceiling = waterfallConfiguration.Ceiling; + var floor = waterfallConfiguration.Floor; + var dict = new Dictionary(); + + if (ceiling.HasValue) + { + dict.Add(WATERFALL_CONFIG_CEILING, ceiling.Value.ToString(CultureInfo.InvariantCulture)); + } + + if (floor.HasValue) + { + dict.Add(WATERFALL_CONFIG_FLOOR, floor.Value.ToString(CultureInfo.InvariantCulture)); + } + + var json = IronSourceJSON.Json.Serialize(dict); + string stringAdFormat; + + switch (adFormat) + { + case AdFormat.RewardedVideo: + stringAdFormat = "REWARDED_VIDEO"; + break; + case AdFormat.Interstitial: + stringAdFormat = "INTERSTITIAL"; + break; + case AdFormat.Banner: + stringAdFormat = "BANNER"; + break; + default: + return; + } + + getBridge().Call(WATERFALL_CONFIG_API, json, stringAdFormat); + } + public void onApplicationPause (bool pause) { if (pause) diff --git a/Assets/ThirdParty/IronSource/Scripts/IronSource.cs b/Assets/ThirdParty/IronSource/Scripts/IronSource.cs index 687c79d34..fb24165d0 100644 --- a/Assets/ThirdParty/IronSource/Scripts/IronSource.cs +++ b/Assets/ThirdParty/IronSource/Scripts/IronSource.cs @@ -7,7 +7,7 @@ public class IronSource : IronSourceIAgent { private IronSourceIAgent _platformAgent; private static IronSource _instance; - public static string UNITY_PLUGIN_VERSION = "7.3.0.1-r"; + public static string UNITY_PLUGIN_VERSION = "7.3.1.1-r"; private static bool isUnsupportedPlatform; private IronSource() @@ -67,6 +67,16 @@ public class IronSource : IronSourceIAgent //******************* Base API *******************// + /// + /// Allows publishers to set configurations for a waterfall of a given ad type. + /// + /// The configuration for the given ad types waterfall. + /// The AdFormat for which to configure the waterfall. + public void SetWaterfallConfiguration(WaterfallConfiguration waterfallConfiguration, AdFormat adFormat) + { + _platformAgent.SetWaterfallConfiguration(waterfallConfiguration, adFormat); + } + public void onApplicationPause(bool pause) { _platformAgent.onApplicationPause(pause); @@ -256,22 +266,26 @@ public class IronSource : IronSourceIAgent //******************* Offerwall API *******************// + [Obsolete("This API call is for the ironSource Offerwall, which will soon be deprecated. Please migrate to the Tapjoy Offerwall using the 'Offerwall migration checklist'.", false)] public void showOfferwall() { _platformAgent.showOfferwall(); } - public void showOfferwall(string placementName) + [Obsolete("This API call is for the ironSource Offerwall, which will soon be deprecated. Please migrate to the Tapjoy Offerwall using the 'Offerwall migration checklist'.", false)] + public void showOfferwall(string placementName) { _platformAgent.showOfferwall(placementName); } - public void getOfferwallCredits() + [Obsolete("This API call is for the ironSource Offerwall, which will soon be deprecated. Please migrate to the Tapjoy Offerwall using the 'Offerwall migration checklist'.", false)] + public void getOfferwallCredits() { _platformAgent.getOfferwallCredits(); } - public bool isOfferwallAvailable() + [Obsolete("This API call is for the ironSource Offerwall, which will soon be deprecated. Please migrate to the Tapjoy Offerwall using the 'Offerwall migration checklist'.", false)] + public bool isOfferwallAvailable() { return _platformAgent.isOfferwallAvailable(); } diff --git a/Assets/ThirdParty/IronSource/Scripts/IronSourceEvents.cs b/Assets/ThirdParty/IronSource/Scripts/IronSourceEvents.cs index d779fc801..d1af2bc7d 100644 --- a/Assets/ThirdParty/IronSource/Scripts/IronSourceEvents.cs +++ b/Assets/ThirdParty/IronSource/Scripts/IronSourceEvents.cs @@ -83,11 +83,17 @@ public class IronSourceEvents : MonoBehaviour [Obsolete("This API has been deprecated as of SDK 7.3.0.1", false)] public static event Action onInterstitialAdShowFailedDemandOnlyEvent; + [Obsolete("This API call is for the ironSource Offerwall, which will soon be deprecated. Please migrate to the Tapjoy Offerwall using the 'Offerwall migration checklist'.", false)] public static event Action onOfferwallAvailableEvent; + [Obsolete("This API call is for the ironSource Offerwall, which will soon be deprecated. Please migrate to the Tapjoy Offerwall using the 'Offerwall migration checklist'.", false)] public static event Action onOfferwallOpenedEvent; + [Obsolete("This API call is for the ironSource Offerwall, which will soon be deprecated. Please migrate to the Tapjoy Offerwall using the 'Offerwall migration checklist'.", false)] public static event Action> onOfferwallAdCreditedEvent; + [Obsolete("This API call is for the ironSource Offerwall, which will soon be deprecated. Please migrate to the Tapjoy Offerwall using the 'Offerwall migration checklist'.", false)] public static event Action onGetOfferwallCreditsFailedEvent; + [Obsolete("This API call is for the ironSource Offerwall, which will soon be deprecated. Please migrate to the Tapjoy Offerwall using the 'Offerwall migration checklist'.", false)] public static event Action onOfferwallClosedEvent; + [Obsolete("This API call is for the ironSource Offerwall, which will soon be deprecated. Please migrate to the Tapjoy Offerwall using the 'Offerwall migration checklist'.", false)] public static event Action onOfferwallShowFailedEvent; [Obsolete("This API has been deprecated as of SDK 7.3.0. Please use the alternate API in IronSourceBannerEvents listener instead.", false)] @@ -1643,6 +1649,7 @@ public class IronSourceEvents : MonoBehaviour private static event Action _onOfferwallOpenedEvent; + [Obsolete("This API call is for the ironSource Offerwall, which will soon be deprecated. Please migrate to the Tapjoy Offerwall using the 'Offerwall migration checklist'.", false)] public static event Action onOfferwallOpenedEvent { add @@ -1672,6 +1679,7 @@ public class IronSourceEvents : MonoBehaviour private static event Action _onOfferwallShowFailedEvent; + [Obsolete("This API call is for the ironSource Offerwall, which will soon be deprecated. Please migrate to the Tapjoy Offerwall using the 'Offerwall migration checklist'.", false)] public static event Action onOfferwallShowFailedEvent { add @@ -1702,6 +1710,7 @@ public class IronSourceEvents : MonoBehaviour private static event Action _onOfferwallClosedEvent; + [Obsolete("This API call is for the ironSource Offerwall, which will soon be deprecated. Please migrate to the Tapjoy Offerwall using the 'Offerwall migration checklist'.", false)] public static event Action onOfferwallClosedEvent { add @@ -1731,6 +1740,7 @@ public class IronSourceEvents : MonoBehaviour private static event Action _onGetOfferwallCreditsFailedEvent; + [Obsolete("This API call is for the ironSource Offerwall, which will soon be deprecated. Please migrate to the Tapjoy Offerwall using the 'Offerwall migration checklist'.", false)] public static event Action onGetOfferwallCreditsFailedEvent { add @@ -1762,6 +1772,7 @@ public class IronSourceEvents : MonoBehaviour private static event Action> _onOfferwallAdCreditedEvent; + [Obsolete("This API call is for the ironSource Offerwall, which will soon be deprecated. Please migrate to the Tapjoy Offerwall using the 'Offerwall migration checklist'.", false)] public static event Action> onOfferwallAdCreditedEvent { add @@ -1789,6 +1800,7 @@ public class IronSourceEvents : MonoBehaviour private static event Action _onOfferwallAvailableEvent; + [Obsolete("This API call is for the ironSource Offerwall, which will soon be deprecated. Please migrate to the Tapjoy Offerwall using the 'Offerwall migration checklist'.", false)] public static event Action onOfferwallAvailableEvent { add diff --git a/Assets/ThirdParty/IronSource/Scripts/IronSourceIAgent.cs b/Assets/ThirdParty/IronSource/Scripts/IronSourceIAgent.cs index 606899da1..cf04746d4 100644 --- a/Assets/ThirdParty/IronSource/Scripts/IronSourceIAgent.cs +++ b/Assets/ThirdParty/IronSource/Scripts/IronSourceIAgent.cs @@ -4,6 +4,13 @@ public interface IronSourceIAgent { //******************* Base API *******************// + /// + /// Allows publishers to set configurations for a waterfall of a given ad type. + /// + /// The configuration for the given ad types waterfall. + /// The AdFormat for which to configure the waterfall. + void SetWaterfallConfiguration(WaterfallConfiguration waterfallConfiguration, AdFormat adFormat); + void onApplicationPause(bool pause); string getAdvertiserId(); diff --git a/Assets/ThirdParty/IronSource/Scripts/UnsupportedPlatformAgent.cs b/Assets/ThirdParty/IronSource/Scripts/UnsupportedPlatformAgent.cs index 9ded181d7..49498facc 100644 --- a/Assets/ThirdParty/IronSource/Scripts/UnsupportedPlatformAgent.cs +++ b/Assets/ThirdParty/IronSource/Scripts/UnsupportedPlatformAgent.cs @@ -10,6 +10,15 @@ public class UnsupportedPlatformAgent : IronSourceIAgent } #region IronSourceAgent implementation + + /// + /// This function is not supported on the current platform and does nothing. + /// + /// The configuration for the given ad types waterfall. + /// The AdFormat for which to configure the waterfall. + public void SetWaterfallConfiguration(WaterfallConfiguration waterfallConfiguration, AdFormat adFormat) + { + } public void start() { diff --git a/Assets/ThirdParty/IronSource/Scripts/WaterfallConfiguration.cs b/Assets/ThirdParty/IronSource/Scripts/WaterfallConfiguration.cs new file mode 100644 index 000000000..a3da4edc5 --- /dev/null +++ b/Assets/ThirdParty/IronSource/Scripts/WaterfallConfiguration.cs @@ -0,0 +1,92 @@ +using System.Collections.Generic; +using System; + +/// +/// Configuration class which allows users to customize or filter a Waterfall. +/// +public class WaterfallConfiguration +{ + readonly double? ceiling; + readonly double? floor; + + /// + /// Gets the ceiling value. + /// + public double? Ceiling { get { return ceiling; } } + + /// + /// Gets the floor value. + /// + public double? Floor { get { return floor; } } + + /// + /// Initializes a new instance of the WaterfallConfiguration class. + /// + /// The ceiling value. + /// The floor value. + private WaterfallConfiguration(double? ceiling, double? floor) + { + this.ceiling = ceiling; + this.floor = floor; + } + + /// + /// Gets a builder for creating instances of WaterfallConfiguration. + /// + /// The WaterfallConfigurationBuilder. + public static WaterfallConfigurationBuilder Builder() + { + return new WaterfallConfigurationBuilder(); + } + + /// + /// Creates an empty instance of WaterfallConfiguration. + /// + /// The empty WaterfallConfiguration. + public static WaterfallConfiguration Empty() + { + return new WaterfallConfiguration(double.NaN, double.NaN); + } + + /// + /// Builder class which to create a WaterfallConfiguration. + /// + public class WaterfallConfigurationBuilder + { + double? ceiling; + double? floor; + + internal WaterfallConfigurationBuilder() {} + + /// + /// Sets the ceiling value. + /// + /// The ceiling value. + /// The WaterfallConfigurationBuilder. + public WaterfallConfigurationBuilder SetCeiling(double ceiling) + { + this.ceiling = ceiling; + return this; + } + + /// + /// Sets the floor value. + /// + /// The floor value. + /// The WaterfallConfigurationBuilder. + public WaterfallConfigurationBuilder SetFloor(double floor) + { + this.floor = floor; + return this; + } + + /// + /// Builds an instance of WaterfallConfiguration based on the configured values. + /// + /// The created WaterfallConfiguration. + public WaterfallConfiguration Build() + { + return new WaterfallConfiguration(ceiling, floor); + } + } +} diff --git a/Assets/ThirdParty/IronSource/Scripts/WaterfallConfiguration.cs.meta b/Assets/ThirdParty/IronSource/Scripts/WaterfallConfiguration.cs.meta new file mode 100644 index 000000000..0874d8447 --- /dev/null +++ b/Assets/ThirdParty/IronSource/Scripts/WaterfallConfiguration.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 354652886a99945cba942b569effe7bb +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Assets/ThirdParty/IronSource/Scripts/iOSAgent.cs b/Assets/ThirdParty/IronSource/Scripts/iOSAgent.cs index 4c02b6bf2..ab8bde2d6 100644 --- a/Assets/ThirdParty/IronSource/Scripts/iOSAgent.cs +++ b/Assets/ThirdParty/IronSource/Scripts/iOSAgent.cs @@ -1,508 +1,533 @@ #if UNITY_IPHONE || UNITY_IOS using UnityEngine; -using System.Collections; using System.Collections.Generic; using System.Runtime.InteropServices; -using System.Linq; using System; using System.Globalization; + // public class iOSAgent : IronSourceIAgent // { - // [DllImport("__Internal")] - // private static extern void CFSetPluginData(string pluginType, string pluginVersion, string pluginFrameworkVersion); + +// struct IOSWaterfallConfiguration +// { +// public double Floor; +// public double Ceiling; +// } + +// [DllImport("__Internal")] +// private static extern void LPPSetWaterfallConfiguration(IOSWaterfallConfiguration configurationParams, AdFormat adFormat); + +// [DllImport("__Internal")] +// private static extern void CFSetPluginData(string pluginType, string pluginVersion, string pluginFrameworkVersion); - // [DllImport("__Internal")] - // private static extern string CFGetAdvertiserId(); +// [DllImport("__Internal")] +// private static extern string CFGetAdvertiserId(); - // [DllImport("__Internal")] - // private static extern void CFValidateIntegration(); +// [DllImport("__Internal")] +// private static extern void CFValidateIntegration(); - // [DllImport("__Internal")] - // private static extern void CFShouldTrackNetworkState(bool track); +// [DllImport("__Internal")] +// private static extern void CFShouldTrackNetworkState(bool track); - // [DllImport("__Internal")] - // private static extern bool CFSetDynamicUserId(string dynamicUserId); +// [DllImport("__Internal")] +// private static extern bool CFSetDynamicUserId(string dynamicUserId); - // [DllImport("__Internal")] - // private static extern void CFSetAdaptersDebug(bool enabled); +// [DllImport("__Internal")] +// private static extern void CFSetAdaptersDebug(bool enabled); - // [DllImport("__Internal")] - // private static extern void CFSetMetaData(string key, string value); +// [DllImport("__Internal")] +// private static extern void CFSetMetaData(string key, string value); - // [DllImport("__Internal")] - // private static extern void CFSetMetaDataWithValues(string key, params string[] values); +// [DllImport("__Internal")] +// private static extern void CFSetMetaDataWithValues(string key, params string[] values); - // [DllImport("__Internal")] - // private static extern string CFGetConversionValue(); +// [DllImport("__Internal")] +// private static extern string CFGetConversionValue(); - // [DllImport("__Internal")] - // private static extern void CFSetManualLoadRewardedVideo(bool isOn); +// [DllImport("__Internal")] +// private static extern void CFSetManualLoadRewardedVideo(bool isOn); - // [DllImport("__Internal")] - // private static extern void CFSetNetworkData(string networkKey, string networkData); +// [DllImport("__Internal")] +// private static extern void CFSetNetworkData(string networkKey, string networkData); - // delegate void ISUnityPauseGame(bool pause); - // [DllImport("__Internal")] - // private static extern void RegisterPauseGameFunction(bool pasue); +// delegate void ISUnityPauseGame(bool pause); +// [DllImport("__Internal")] +// private static extern void RegisterPauseGameFunction(bool pasue); - // //******************* SDK Init *******************// +// //******************* SDK Init *******************// - // [DllImport("__Internal")] - // private static extern void CFSetUserId(string userId); +// [DllImport("__Internal")] +// private static extern void CFSetUserId(string userId); - // [DllImport("__Internal")] - // private static extern void CFInit(string appKey); +// [DllImport("__Internal")] +// private static extern void CFInit(string appKey); - // [DllImport("__Internal")] - // private static extern void CFInitWithAdUnits(string appKey, params string[] adUnits); +// [DllImport("__Internal")] +// private static extern void CFInitWithAdUnits(string appKey, params string[] adUnits); - // [DllImport("__Internal")] - // private static extern void CFInitISDemandOnly(string appKey, params string[] adUnits); +// [DllImport("__Internal")] +// private static extern void CFInitISDemandOnly(string appKey, params string[] adUnits); - // //******************* RewardedVideo API *******************// +// //******************* RewardedVideo API *******************// - // [DllImport("__Internal")] - // private static extern void CFLoadRewardedVideo(); +// [DllImport("__Internal")] +// private static extern void CFLoadRewardedVideo(); - // [DllImport("__Internal")] - // private static extern void CFShowRewardedVideo(); +// [DllImport("__Internal")] +// private static extern void CFShowRewardedVideo(); - // [DllImport("__Internal")] - // private static extern void CFShowRewardedVideoWithPlacementName(string placementName); +// [DllImport("__Internal")] +// private static extern void CFShowRewardedVideoWithPlacementName(string placementName); - // [DllImport("__Internal")] - // private static extern bool CFIsRewardedVideoAvailable(); +// [DllImport("__Internal")] +// private static extern bool CFIsRewardedVideoAvailable(); - // [DllImport("__Internal")] - // private static extern bool CFIsRewardedVideoPlacementCapped(string placementName); +// [DllImport("__Internal")] +// private static extern bool CFIsRewardedVideoPlacementCapped(string placementName); - // [DllImport("__Internal")] - // private static extern string CFGetPlacementInfo(string placementName); +// [DllImport("__Internal")] +// private static extern string CFGetPlacementInfo(string placementName); - // [DllImport("__Internal")] - // private static extern void CFSetRewardedVideoServerParameters(string jsonString); +// [DllImport("__Internal")] +// private static extern void CFSetRewardedVideoServerParameters(string jsonString); - // [DllImport("__Internal")] - // private static extern void CFClearRewardedVideoServerParameters(); +// [DllImport("__Internal")] +// private static extern void CFClearRewardedVideoServerParameters(); - // //******************* RewardedVideo DemandOnly API *******************// +// //******************* RewardedVideo DemandOnly API *******************// - // [DllImport("__Internal")] - // private static extern void CFShowISDemandOnlyRewardedVideo(string instanceId); +// [DllImport("__Internal")] +// private static extern void CFShowISDemandOnlyRewardedVideo(string instanceId); - // [DllImport("__Internal")] - // private static extern void CFLoadISDemandOnlyRewardedVideo(string instanceId); +// [DllImport("__Internal")] +// private static extern void CFLoadISDemandOnlyRewardedVideo(string instanceId); - // [DllImport("__Internal")] - // private static extern bool CFIsDemandOnlyRewardedVideoAvailable(string instanceId); +// [DllImport("__Internal")] +// private static extern bool CFIsDemandOnlyRewardedVideoAvailable(string instanceId); - // //******************* Interstitial API *******************// +// //******************* Interstitial API *******************// - // [DllImport("__Internal")] - // private static extern void CFLoadInterstitial(); +// [DllImport("__Internal")] +// private static extern void CFLoadInterstitial(); - // [DllImport("__Internal")] - // private static extern void CFShowInterstitial(); +// [DllImport("__Internal")] +// private static extern void CFShowInterstitial(); - // [DllImport("__Internal")] - // private static extern void CFShowInterstitialWithPlacementName(string placementName); +// [DllImport("__Internal")] +// private static extern void CFShowInterstitialWithPlacementName(string placementName); - // [DllImport("__Internal")] - // private static extern bool CFIsInterstitialReady(); +// [DllImport("__Internal")] +// private static extern bool CFIsInterstitialReady(); - // [DllImport("__Internal")] - // private static extern bool CFIsInterstitialPlacementCapped(string placementName); +// [DllImport("__Internal")] +// private static extern bool CFIsInterstitialPlacementCapped(string placementName); - // //******************* Interstitial DemandOnly API *******************// +// //******************* Interstitial DemandOnly API *******************// - // [DllImport("__Internal")] - // private static extern void CFLoadISDemandOnlyInterstitial(string instanceId); +// [DllImport("__Internal")] +// private static extern void CFLoadISDemandOnlyInterstitial(string instanceId); - // [DllImport("__Internal")] - // private static extern void CFShowISDemandOnlyInterstitial(string instanceId); +// [DllImport("__Internal")] +// private static extern void CFShowISDemandOnlyInterstitial(string instanceId); - // [DllImport("__Internal")] - // private static extern bool CFIsDemandOnlyInterstitialReady(string instanceId); +// [DllImport("__Internal")] +// private static extern bool CFIsDemandOnlyInterstitialReady(string instanceId); - // //******************* Offerwall API *******************// +// //******************* Offerwall API *******************// - // [DllImport("__Internal")] - // private static extern void CFShowOfferwall(); +// [DllImport("__Internal")] +// private static extern void CFShowOfferwall(); - // [DllImport("__Internal")] - // private static extern void CFShowOfferwallWithPlacementName(string placementName); +// [DllImport("__Internal")] +// private static extern void CFShowOfferwallWithPlacementName(string placementName); - // [DllImport("__Internal")] - // private static extern void CFGetOfferwallCredits(); +// [DllImport("__Internal")] +// private static extern void CFGetOfferwallCredits(); - // [DllImport("__Internal")] - // private static extern bool CFIsOfferwallAvailable(); +// [DllImport("__Internal")] +// private static extern bool CFIsOfferwallAvailable(); - // //******************* Banner API *******************// +// //******************* Banner API *******************// - // [DllImport("__Internal")] - // private static extern void CFLoadBanner(string description, int width, int height, int position, string placementName, bool isAdaptive); +// [DllImport("__Internal")] +// private static extern void CFLoadBanner(string description, int width, int height, int position, string placementName, bool isAdaptive); - // [DllImport("__Internal")] - // private static extern void CFDestroyBanner(); +// [DllImport("__Internal")] +// private static extern void CFDestroyBanner(); - // [DllImport("__Internal")] - // private static extern void CFDisplayBanner(); +// [DllImport("__Internal")] +// private static extern void CFDisplayBanner(); - // [DllImport("__Internal")] - // private static extern void CFHideBanner(); +// [DllImport("__Internal")] +// private static extern void CFHideBanner(); - // [DllImport("__Internal")] - // private static extern bool CFIsBannerPlacementCapped(string placementName); +// [DllImport("__Internal")] +// private static extern bool CFIsBannerPlacementCapped(string placementName); - // [DllImport("__Internal")] - // private static extern void CFSetSegment(string json); +// [DllImport("__Internal")] +// private static extern void CFSetSegment(string json); - // [DllImport("__Internal")] - // private static extern void CFSetConsent(bool consent); +// [DllImport("__Internal")] +// private static extern void CFSetConsent(bool consent); - // //******************* ConsentView API *******************// +// //******************* ConsentView API *******************// - // [DllImport("__Internal")] - // private static extern void CFLoadConsentViewWithType(string consentViewType); +// [DllImport("__Internal")] +// private static extern void CFLoadConsentViewWithType(string consentViewType); - // [DllImport("__Internal")] - // private static extern void CFShowConsentViewWithType(string consentViewType); +// [DllImport("__Internal")] +// private static extern void CFShowConsentViewWithType(string consentViewType); - // //******************* ILRD API *******************// +// //******************* ILRD API *******************// - // [DllImport("__Internal")] - // private static extern void CFSetAdRevenueData(string dataSource, string impressionData); +// [DllImport("__Internal")] +// private static extern void CFSetAdRevenueData(string dataSource, string impressionData); - // //******************* TestSuite API *******************// +// //******************* TestSuite API *******************// - // [DllImport("__Internal")] - // private static extern void CFLaunchTestSuite(); +// [DllImport("__Internal")] +// private static extern void CFLaunchTestSuite(); - // public iOSAgent() - // { - // } +// public iOSAgent() +// { +// } - // #region IronSourceIAgent implementation +// #region IronSourceIAgent implementation - // //******************* Base API *******************// +// //******************* Base API *******************// - // public void onApplicationPause(bool pause) - // { +// /// +// /// Allows publishers to set configurations for a waterfall of a given ad type. +// /// +// /// The AdFormat for which to configure the waterfall. +// /// The configuration for the given ad types waterfall. +// public void SetWaterfallConfiguration(WaterfallConfiguration waterfallConfiguration, AdFormat adFormat) +// { +// var config = new IOSWaterfallConfiguration +// { +// Floor = waterfallConfiguration.Floor ?? 0.0, +// Ceiling = waterfallConfiguration.Ceiling ?? 0.0 +// }; + +// LPPSetWaterfallConfiguration(config, adFormat); +// } - // } +// public void onApplicationPause(bool pause) +// { - // public string getAdvertiserId() - // { - // return CFGetAdvertiserId(); - // } +// } - // public void validateIntegration() - // { - // CFValidateIntegration(); - // } - - // public void shouldTrackNetworkState(bool track) - // { - // CFShouldTrackNetworkState(track); - // } - - // public bool setDynamicUserId(string dynamicUserId) - // { - // return CFSetDynamicUserId(dynamicUserId); - // } - - // public void setAdaptersDebug(bool enabled) - // { - // CFSetAdaptersDebug(enabled); - // } - - // public void setMetaData(string key, params string[] values) - // { - // CFSetMetaDataWithValues(key, values); - // } - - // public void setMetaData(string key, string value) - // { - // CFSetMetaData(key, value); - // } - - // public int? getConversionValue() - // { - // CultureInfo invCulture = CultureInfo.InvariantCulture; - // int parsedInt; - // if (int.TryParse(string.Format(invCulture, "{0}", CFGetConversionValue()), NumberStyles.Any, invCulture, out parsedInt)) - // { - // return parsedInt; - // } - - // return null; - // } - - // public void setManualLoadRewardedVideo(bool isOn) - // { - // CFSetManualLoadRewardedVideo(isOn); - // } - - // public void setNetworkData(string networkKey, string networkData) - // { - // CFSetNetworkData(networkKey, networkData); - // } - - // [AOT.MonoPInvokeCallback(typeof(ISUnityPauseGame))] - // public void SetPauseGame(bool pause) - // { - // RegisterPauseGameFunction(pause); - // if (pause) - // { - // setMetaData("IS_PAUSE_GAME_FLAG", "true"); - // } - // else - // { - // setMetaData("IS_PAUSE_GAME_FLAG", "false"); - // } - // } - - // //******************* SDK Init *******************// - - // public void setUserId(string userId) - // { - // CFSetUserId(userId); - // } - - // public void init(string appKey) - // { - // CFSetPluginData("Unity", IronSource.pluginVersion(), IronSource.unityVersion()); - // Debug.Log("IntegrationHelper pluginVersion: " + IronSource.pluginVersion()); - // CFInit(appKey); - // } - - // public void init(string appKey, params string[] adUnits) - // { - // CFSetPluginData("Unity", IronSource.pluginVersion(), IronSource.unityVersion()); - // Debug.Log("IntegrationHelper pluginVersion: " + IronSource.pluginVersion()); - // CFInitWithAdUnits(appKey, adUnits); - // } - - // public void initISDemandOnly(string appKey, params string[] adUnits) - // { - // CFSetPluginData("Unity", IronSource.pluginVersion(), IronSource.unityVersion()); - // Debug.Log("IntegrationHelper pluginVersion: " + IronSource.pluginVersion()); - // CFInitISDemandOnly(appKey, adUnits); - // } - - // //******************* RewardedVideo API *******************// - - // public void loadRewardedVideo() - // { - // CFLoadRewardedVideo(); - // } - - // public void showRewardedVideo() - // { - // CFShowRewardedVideo(); - // } - - // public void showRewardedVideo(string placementName) - // { - // CFShowRewardedVideoWithPlacementName(placementName); - // } - - // public bool isRewardedVideoAvailable() - // { - // return CFIsRewardedVideoAvailable(); - // } - - // public bool isRewardedVideoPlacementCapped(string placementName) - // { - // return CFIsRewardedVideoPlacementCapped(placementName); - // } - - // public IronSourcePlacement getPlacementInfo(string placementName) - // { - // IronSourcePlacement sp = null; - - // string spString = CFGetPlacementInfo(placementName); - // if (spString != null) - // { - // Dictionary spDic = IronSourceJSON.Json.Deserialize(spString) as Dictionary; - // string pName = spDic["placement_name"].ToString(); - // string rewardName = spDic["reward_name"].ToString(); - // int rewardAmount = Convert.ToInt32(spDic["reward_amount"].ToString()); - // sp = new IronSourcePlacement(pName, rewardName, rewardAmount); - // } - - // return sp; - // } - - // public void setRewardedVideoServerParams(Dictionary parameters) - // { - // string json = IronSourceJSON.Json.Serialize(parameters); - // CFSetRewardedVideoServerParameters(json); - // } - - // public void clearRewardedVideoServerParams() - // { - // CFClearRewardedVideoServerParameters(); - // } - - // //******************* RewardedVideo DemandOnly API *******************// - - // public void showISDemandOnlyRewardedVideo(string instanceId) - // { - // CFShowISDemandOnlyRewardedVideo(instanceId); - // } - - // public void loadISDemandOnlyRewardedVideo(string instanceId) - // { - // CFLoadISDemandOnlyRewardedVideo(instanceId); - // } - - // public bool isISDemandOnlyRewardedVideoAvailable(string instanceId) - // { - // return CFIsDemandOnlyRewardedVideoAvailable(instanceId); - // } - - // //******************* Interstitial API *******************// - - // public void loadInterstitial() - // { - // CFLoadInterstitial(); - // } - - // public void showInterstitial() - // { - // CFShowInterstitial(); - // } - - // public void showInterstitial(string placementName) - // { - // CFShowInterstitialWithPlacementName(placementName); - // } - - // public bool isInterstitialReady() - // { - // return CFIsInterstitialReady(); - // } - - // public bool isInterstitialPlacementCapped(string placementName) - // { - // return CFIsInterstitialPlacementCapped(placementName); - // } - - // //******************* Interstitial DemandOnly API *******************// - - // public void loadISDemandOnlyInterstitial(string instanceId) - // { - // CFLoadISDemandOnlyInterstitial(instanceId); - // } - - // public void showISDemandOnlyInterstitial(string instanceId) - // { - // CFShowISDemandOnlyInterstitial(instanceId); - // } - - // public bool isISDemandOnlyInterstitialReady(string instanceId) - // { - // return CFIsDemandOnlyInterstitialReady(instanceId); - // } - - // //******************* Offerwall API *******************// - - // public void showOfferwall() - // { - // CFShowOfferwall(); - // } - - // public void showOfferwall(string placementName) - // { - // CFShowOfferwallWithPlacementName(placementName); - // } - - // public void getOfferwallCredits() - // { - // CFGetOfferwallCredits(); - // } - - // public bool isOfferwallAvailable() - // { - // return CFIsOfferwallAvailable(); - // } - - // //******************* Banner API *******************// - - // public void loadBanner(IronSourceBannerSize size, IronSourceBannerPosition position) - // { - // loadBanner(size, position, ""); - // } - - // public void loadBanner(IronSourceBannerSize size, IronSourceBannerPosition position, string placementName) - // { - // CFLoadBanner(size.Description, (int)size.Width, (int)size.Height, (int)position, placementName, (bool)size.IsAdaptiveEnabled()); - // } - - // public void destroyBanner() - // { - // CFDestroyBanner(); - // } - - // public void displayBanner() - // { - // CFDisplayBanner(); - // } - - // public void hideBanner() - // { - // CFHideBanner(); - // } - - // public bool isBannerPlacementCapped(string placementName) - // { - // return CFIsBannerPlacementCapped(placementName); - // } - - // public void setSegment(IronSourceSegment segment) - // { - // Dictionary dict = segment.getSegmentAsDict(); - // string json = IronSourceJSON.Json.Serialize(dict); - // CFSetSegment(json); - // } - - // public void setConsent(bool consent) - // { - // CFSetConsent(consent); - // } - - // public void loadConsentViewWithType(string consentViewType) - // { - // CFLoadConsentViewWithType(consentViewType); - // } - - // public void showConsentViewWithType(string consentViewType) - // { - // CFShowConsentViewWithType(consentViewType); - // } - - // //******************* ILRD API *******************// - - // public void setAdRevenueData(string dataSource, Dictionary impressionData) - // { - // string json = IronSourceJSON.Json.Serialize(impressionData); - // CFSetAdRevenueData(dataSource, json); - // } - - // //******************* TestSuite API *******************// - - // public void launchTestSuite() - // { - // Debug.Log("iOSAgent: launching TestSuite"); - // CFLaunchTestSuite(); - // } - - // #endregion +// public string getAdvertiserId() +// { +// return CFGetAdvertiserId(); +// } + +// public void validateIntegration() +// { +// CFValidateIntegration(); +// } + +// public void shouldTrackNetworkState(bool track) +// { +// CFShouldTrackNetworkState(track); +// } + +// public bool setDynamicUserId(string dynamicUserId) +// { +// return CFSetDynamicUserId(dynamicUserId); +// } + +// public void setAdaptersDebug(bool enabled) +// { +// CFSetAdaptersDebug(enabled); +// } + +// public void setMetaData(string key, params string[] values) +// { +// CFSetMetaDataWithValues(key, values); +// } + +// public void setMetaData(string key, string value) +// { +// CFSetMetaData(key, value); +// } + +// public int? getConversionValue() +// { +// CultureInfo invCulture = CultureInfo.InvariantCulture; +// int parsedInt; +// if (int.TryParse(string.Format(invCulture, "{0}", CFGetConversionValue()), NumberStyles.Any, invCulture, out parsedInt)) +// { +// return parsedInt; +// } + +// return null; +// } + +// public void setManualLoadRewardedVideo(bool isOn) +// { +// CFSetManualLoadRewardedVideo(isOn); +// } + +// public void setNetworkData(string networkKey, string networkData) +// { +// CFSetNetworkData(networkKey, networkData); +// } + +// [AOT.MonoPInvokeCallback(typeof(ISUnityPauseGame))] +// public void SetPauseGame(bool pause) +// { +// RegisterPauseGameFunction(pause); +// if (pause) +// { +// setMetaData("IS_PAUSE_GAME_FLAG", "true"); +// } +// else +// { +// setMetaData("IS_PAUSE_GAME_FLAG", "false"); +// } +// } + +// //******************* SDK Init *******************// + +// public void setUserId(string userId) +// { +// CFSetUserId(userId); +// } + +// public void init(string appKey) +// { +// CFSetPluginData("Unity", IronSource.pluginVersion(), IronSource.unityVersion()); +// Debug.Log("IntegrationHelper pluginVersion: " + IronSource.pluginVersion()); +// CFInit(appKey); +// } + +// public void init(string appKey, params string[] adUnits) +// { +// CFSetPluginData("Unity", IronSource.pluginVersion(), IronSource.unityVersion()); +// Debug.Log("IntegrationHelper pluginVersion: " + IronSource.pluginVersion()); +// CFInitWithAdUnits(appKey, adUnits); +// } + +// public void initISDemandOnly(string appKey, params string[] adUnits) +// { +// CFSetPluginData("Unity", IronSource.pluginVersion(), IronSource.unityVersion()); +// Debug.Log("IntegrationHelper pluginVersion: " + IronSource.pluginVersion()); +// CFInitISDemandOnly(appKey, adUnits); +// } + +// //******************* RewardedVideo API *******************// + +// public void loadRewardedVideo() +// { +// CFLoadRewardedVideo(); +// } + +// public void showRewardedVideo() +// { +// CFShowRewardedVideo(); +// } + +// public void showRewardedVideo(string placementName) +// { +// CFShowRewardedVideoWithPlacementName(placementName); +// } + +// public bool isRewardedVideoAvailable() +// { +// return CFIsRewardedVideoAvailable(); +// } + +// public bool isRewardedVideoPlacementCapped(string placementName) +// { +// return CFIsRewardedVideoPlacementCapped(placementName); +// } + +// public IronSourcePlacement getPlacementInfo(string placementName) +// { +// IronSourcePlacement sp = null; + +// string spString = CFGetPlacementInfo(placementName); +// if (spString != null) +// { +// Dictionary spDic = IronSourceJSON.Json.Deserialize(spString) as Dictionary; +// string pName = spDic["placement_name"].ToString(); +// string rewardName = spDic["reward_name"].ToString(); +// int rewardAmount = Convert.ToInt32(spDic["reward_amount"].ToString()); +// sp = new IronSourcePlacement(pName, rewardName, rewardAmount); +// } + +// return sp; +// } + +// public void setRewardedVideoServerParams(Dictionary parameters) +// { +// string json = IronSourceJSON.Json.Serialize(parameters); +// CFSetRewardedVideoServerParameters(json); +// } + +// public void clearRewardedVideoServerParams() +// { +// CFClearRewardedVideoServerParameters(); +// } + +// //******************* RewardedVideo DemandOnly API *******************// + +// public void showISDemandOnlyRewardedVideo(string instanceId) +// { +// CFShowISDemandOnlyRewardedVideo(instanceId); +// } + +// public void loadISDemandOnlyRewardedVideo(string instanceId) +// { +// CFLoadISDemandOnlyRewardedVideo(instanceId); +// } + +// public bool isISDemandOnlyRewardedVideoAvailable(string instanceId) +// { +// return CFIsDemandOnlyRewardedVideoAvailable(instanceId); +// } + +// //******************* Interstitial API *******************// + +// public void loadInterstitial() +// { +// CFLoadInterstitial(); +// } + +// public void showInterstitial() +// { +// CFShowInterstitial(); +// } + +// public void showInterstitial(string placementName) +// { +// CFShowInterstitialWithPlacementName(placementName); +// } + +// public bool isInterstitialReady() +// { +// return CFIsInterstitialReady(); +// } + +// public bool isInterstitialPlacementCapped(string placementName) +// { +// return CFIsInterstitialPlacementCapped(placementName); +// } + +// //******************* Interstitial DemandOnly API *******************// + +// public void loadISDemandOnlyInterstitial(string instanceId) +// { +// CFLoadISDemandOnlyInterstitial(instanceId); +// } + +// public void showISDemandOnlyInterstitial(string instanceId) +// { +// CFShowISDemandOnlyInterstitial(instanceId); +// } + +// public bool isISDemandOnlyInterstitialReady(string instanceId) +// { +// return CFIsDemandOnlyInterstitialReady(instanceId); +// } + +// //******************* Offerwall API *******************// + +// public void showOfferwall() +// { +// CFShowOfferwall(); +// } + +// public void showOfferwall(string placementName) +// { +// CFShowOfferwallWithPlacementName(placementName); +// } + +// public void getOfferwallCredits() +// { +// CFGetOfferwallCredits(); +// } + +// public bool isOfferwallAvailable() +// { +// return CFIsOfferwallAvailable(); +// } + +// //******************* Banner API *******************// + +// public void loadBanner(IronSourceBannerSize size, IronSourceBannerPosition position) +// { +// loadBanner(size, position, ""); +// } + +// public void loadBanner(IronSourceBannerSize size, IronSourceBannerPosition position, string placementName) +// { +// CFLoadBanner(size.Description, (int)size.Width, (int)size.Height, (int)position, placementName, (bool)size.IsAdaptiveEnabled()); +// } + +// public void destroyBanner() +// { +// CFDestroyBanner(); +// } + +// public void displayBanner() +// { +// CFDisplayBanner(); +// } + +// public void hideBanner() +// { +// CFHideBanner(); +// } + +// public bool isBannerPlacementCapped(string placementName) +// { +// return CFIsBannerPlacementCapped(placementName); +// } + +// public void setSegment(IronSourceSegment segment) +// { +// Dictionary dict = segment.getSegmentAsDict(); +// string json = IronSourceJSON.Json.Serialize(dict); +// CFSetSegment(json); +// } + +// public void setConsent(bool consent) +// { +// CFSetConsent(consent); +// } + +// public void loadConsentViewWithType(string consentViewType) +// { +// CFLoadConsentViewWithType(consentViewType); +// } + +// public void showConsentViewWithType(string consentViewType) +// { +// CFShowConsentViewWithType(consentViewType); +// } + +// //******************* ILRD API *******************// + +// public void setAdRevenueData(string dataSource, Dictionary impressionData) +// { +// string json = IronSourceJSON.Json.Serialize(impressionData); +// CFSetAdRevenueData(dataSource, json); +// } + +// //******************* TestSuite API *******************// + +// public void launchTestSuite() +// { +// Debug.Log("iOSAgent: launching TestSuite"); +// CFLaunchTestSuite(); +// } + +// #endregion // } #endif diff --git a/Assets/XLua/Gen/AndroidAgentWrap.cs b/Assets/XLua/Gen/AndroidAgentWrap.cs new file mode 100644 index 000000000..0ef548ce7 --- /dev/null +++ b/Assets/XLua/Gen/AndroidAgentWrap.cs @@ -0,0 +1,1536 @@ +#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 5dde8af8f..e45320bd3 100644 --- a/Assets/XLua/Gen/DelegatesGensBridge.cs +++ b/Assets/XLua/Gen/DelegatesGensBridge.cs @@ -2007,7 +2007,30 @@ namespace XLua #endif } - public string __Gen_Delegate_Imp89(System.DateTime p0) + public void __Gen_Delegate_Imp89(ISAdQualityInitError p0, string p1) + { +#if THREAD_SAFE || HOTFIX_ENABLE + lock (luaEnv.luaEnvLock) + { +#endif + RealStatePtr L = luaEnv.rawL; + int errFunc = LuaAPI.pcall_prepare(L, errorFuncRef, luaReference); + ObjectTranslator translator = luaEnv.translator; + translator.PushISAdQualityInitError(L, p0); + LuaAPI.lua_pushstring(L, p1); + + PCall(L, 2, 0, errFunc); + + + + LuaAPI.lua_settop(L, errFunc - 1); + +#if THREAD_SAFE || HOTFIX_ENABLE + } +#endif + } + + public string __Gen_Delegate_Imp90(System.DateTime p0) { #if THREAD_SAFE || HOTFIX_ENABLE lock (luaEnv.luaEnvLock) @@ -2029,7 +2052,7 @@ namespace XLua #endif } - public void __Gen_Delegate_Imp90(com.adjust.sdk.AdjustAttribution p0) + public void __Gen_Delegate_Imp91(com.adjust.sdk.AdjustAttribution p0) { #if THREAD_SAFE || HOTFIX_ENABLE lock (luaEnv.luaEnvLock) @@ -2051,7 +2074,7 @@ namespace XLua #endif } - public void __Gen_Delegate_Imp91(com.adjust.sdk.AdjustEventSuccess p0) + public void __Gen_Delegate_Imp92(com.adjust.sdk.AdjustEventSuccess p0) { #if THREAD_SAFE || HOTFIX_ENABLE lock (luaEnv.luaEnvLock) @@ -2073,7 +2096,7 @@ namespace XLua #endif } - public void __Gen_Delegate_Imp92(com.adjust.sdk.AdjustEventFailure p0) + public void __Gen_Delegate_Imp93(com.adjust.sdk.AdjustEventFailure p0) { #if THREAD_SAFE || HOTFIX_ENABLE lock (luaEnv.luaEnvLock) @@ -2095,7 +2118,7 @@ namespace XLua #endif } - public void __Gen_Delegate_Imp93(com.adjust.sdk.AdjustSessionSuccess p0) + public void __Gen_Delegate_Imp94(com.adjust.sdk.AdjustSessionSuccess p0) { #if THREAD_SAFE || HOTFIX_ENABLE lock (luaEnv.luaEnvLock) @@ -2117,7 +2140,7 @@ namespace XLua #endif } - public void __Gen_Delegate_Imp94(com.adjust.sdk.AdjustSessionFailure p0) + public void __Gen_Delegate_Imp95(com.adjust.sdk.AdjustSessionFailure p0) { #if THREAD_SAFE || HOTFIX_ENABLE lock (luaEnv.luaEnvLock) @@ -2139,7 +2162,7 @@ namespace XLua #endif } - public void __Gen_Delegate_Imp95(int p0, string p1, bool p2) + public void __Gen_Delegate_Imp96(int p0, string p1, bool p2) { #if THREAD_SAFE || HOTFIX_ENABLE lock (luaEnv.luaEnvLock) @@ -2163,7 +2186,7 @@ namespace XLua #endif } - public void __Gen_Delegate_Imp96(Http.ResultInfo p0) + public void __Gen_Delegate_Imp97(Http.ResultInfo p0) { #if THREAD_SAFE || HOTFIX_ENABLE lock (luaEnv.luaEnvLock) @@ -2185,7 +2208,7 @@ namespace XLua #endif } - public void __Gen_Delegate_Imp97(System.IAsyncResult p0) + public void __Gen_Delegate_Imp98(System.IAsyncResult p0) { #if THREAD_SAFE || HOTFIX_ENABLE lock (luaEnv.luaEnvLock) @@ -2207,7 +2230,7 @@ namespace XLua #endif } - public void __Gen_Delegate_Imp98(object p0, System.EventArgs p1) + public void __Gen_Delegate_Imp99(object p0, System.EventArgs p1) { #if THREAD_SAFE || HOTFIX_ENABLE lock (luaEnv.luaEnvLock) @@ -2230,7 +2253,7 @@ namespace XLua #endif } - public bool __Gen_Delegate_Imp99(int p0) + public bool __Gen_Delegate_Imp100(int p0) { #if THREAD_SAFE || HOTFIX_ENABLE lock (luaEnv.luaEnvLock) @@ -2252,7 +2275,7 @@ namespace XLua #endif } - public int __Gen_Delegate_Imp100(int p0, int p1) + public int __Gen_Delegate_Imp101(int p0, int p1) { #if THREAD_SAFE || HOTFIX_ENABLE lock (luaEnv.luaEnvLock) @@ -2275,7 +2298,7 @@ namespace XLua #endif } - public bool __Gen_Delegate_Imp101(float p0) + public bool __Gen_Delegate_Imp102(float p0) { #if THREAD_SAFE || HOTFIX_ENABLE lock (luaEnv.luaEnvLock) @@ -2297,7 +2320,7 @@ namespace XLua #endif } - public int __Gen_Delegate_Imp102(float p0, float p1) + public int __Gen_Delegate_Imp103(float p0, float p1) { #if THREAD_SAFE || HOTFIX_ENABLE lock (luaEnv.luaEnvLock) @@ -2320,7 +2343,7 @@ namespace XLua #endif } - public int __Gen_Delegate_Imp103(string p0, string p1) + public int __Gen_Delegate_Imp104(string p0, string p1) { #if THREAD_SAFE || HOTFIX_ENABLE lock (luaEnv.luaEnvLock) @@ -2343,7 +2366,7 @@ namespace XLua #endif } - public bool __Gen_Delegate_Imp104(TMPro.TMP_FontAsset p0) + public bool __Gen_Delegate_Imp105(TMPro.TMP_FontAsset p0) { #if THREAD_SAFE || HOTFIX_ENABLE lock (luaEnv.luaEnvLock) @@ -2365,7 +2388,7 @@ namespace XLua #endif } - public void __Gen_Delegate_Imp105(TMPro.TMP_FontAsset p0) + public void __Gen_Delegate_Imp106(TMPro.TMP_FontAsset p0) { #if THREAD_SAFE || HOTFIX_ENABLE lock (luaEnv.luaEnvLock) @@ -2387,7 +2410,7 @@ namespace XLua #endif } - public int __Gen_Delegate_Imp106(TMPro.TMP_FontAsset p0, TMPro.TMP_FontAsset p1) + public int __Gen_Delegate_Imp107(TMPro.TMP_FontAsset p0, TMPro.TMP_FontAsset p1) { #if THREAD_SAFE || HOTFIX_ENABLE lock (luaEnv.luaEnvLock) @@ -2410,7 +2433,7 @@ namespace XLua #endif } - public bool __Gen_Delegate_Imp107(UnityEngine.Camera p0) + public bool __Gen_Delegate_Imp108(UnityEngine.Camera p0) { #if THREAD_SAFE || HOTFIX_ENABLE lock (luaEnv.luaEnvLock) @@ -2432,7 +2455,7 @@ namespace XLua #endif } - public int __Gen_Delegate_Imp108(UnityEngine.Camera p0, UnityEngine.Camera p1) + public int __Gen_Delegate_Imp109(UnityEngine.Camera p0, UnityEngine.Camera p1) { #if THREAD_SAFE || HOTFIX_ENABLE lock (luaEnv.luaEnvLock) @@ -2455,7 +2478,7 @@ namespace XLua #endif } - public bool __Gen_Delegate_Imp109(System.Collections.Generic.List p0) + public bool __Gen_Delegate_Imp110(System.Collections.Generic.List p0) { #if THREAD_SAFE || HOTFIX_ENABLE lock (luaEnv.luaEnvLock) @@ -2477,7 +2500,7 @@ namespace XLua #endif } - public void __Gen_Delegate_Imp110(System.Collections.Generic.List p0) + public void __Gen_Delegate_Imp111(System.Collections.Generic.List p0) { #if THREAD_SAFE || HOTFIX_ENABLE lock (luaEnv.luaEnvLock) @@ -2499,7 +2522,7 @@ namespace XLua #endif } - public int __Gen_Delegate_Imp111(System.Collections.Generic.List p0, System.Collections.Generic.List p1) + public int __Gen_Delegate_Imp112(System.Collections.Generic.List p0, System.Collections.Generic.List p1) { #if THREAD_SAFE || HOTFIX_ENABLE lock (luaEnv.luaEnvLock) @@ -2522,7 +2545,7 @@ namespace XLua #endif } - public void __Gen_Delegate_Imp112(UnityEngine.Playables.PlayableDirector p0) + public void __Gen_Delegate_Imp113(UnityEngine.Playables.PlayableDirector p0) { #if THREAD_SAFE || HOTFIX_ENABLE lock (luaEnv.luaEnvLock) @@ -2544,7 +2567,7 @@ namespace XLua #endif } - public void __Gen_Delegate_Imp113(UnityEngine.SceneManagement.Scene p0, UnityEngine.SceneManagement.LoadSceneMode p1) + public void __Gen_Delegate_Imp114(UnityEngine.SceneManagement.Scene p0, UnityEngine.SceneManagement.LoadSceneMode p1) { #if THREAD_SAFE || HOTFIX_ENABLE lock (luaEnv.luaEnvLock) @@ -2567,7 +2590,7 @@ namespace XLua #endif } - public void __Gen_Delegate_Imp114(UnityEngine.SceneManagement.Scene p0) + public void __Gen_Delegate_Imp115(UnityEngine.SceneManagement.Scene p0) { #if THREAD_SAFE || HOTFIX_ENABLE lock (luaEnv.luaEnvLock) @@ -2589,7 +2612,7 @@ namespace XLua #endif } - public void __Gen_Delegate_Imp115(UnityEngine.SceneManagement.Scene p0, UnityEngine.SceneManagement.Scene p1) + public void __Gen_Delegate_Imp116(UnityEngine.SceneManagement.Scene p0, UnityEngine.SceneManagement.Scene p1) { #if THREAD_SAFE || HOTFIX_ENABLE lock (luaEnv.luaEnvLock) @@ -2612,7 +2635,7 @@ namespace XLua #endif } - public void __Gen_Delegate_Imp116(UnityEngine.Video.VideoPlayer p0) + public void __Gen_Delegate_Imp117(UnityEngine.Video.VideoPlayer p0) { #if THREAD_SAFE || HOTFIX_ENABLE lock (luaEnv.luaEnvLock) @@ -2634,7 +2657,7 @@ namespace XLua #endif } - public void __Gen_Delegate_Imp117(UnityEngine.Video.VideoPlayer p0, string p1) + public void __Gen_Delegate_Imp118(UnityEngine.Video.VideoPlayer p0, string p1) { #if THREAD_SAFE || HOTFIX_ENABLE lock (luaEnv.luaEnvLock) @@ -2657,7 +2680,7 @@ namespace XLua #endif } - public void __Gen_Delegate_Imp118(UnityEngine.Video.VideoPlayer p0, double p1) + public void __Gen_Delegate_Imp119(UnityEngine.Video.VideoPlayer p0, double p1) { #if THREAD_SAFE || HOTFIX_ENABLE lock (luaEnv.luaEnvLock) @@ -2680,7 +2703,7 @@ namespace XLua #endif } - public void __Gen_Delegate_Imp119(UnityEngine.Video.VideoPlayer p0, long p1) + public void __Gen_Delegate_Imp120(UnityEngine.Video.VideoPlayer p0, long p1) { #if THREAD_SAFE || HOTFIX_ENABLE lock (luaEnv.luaEnvLock) @@ -2703,7 +2726,7 @@ namespace XLua #endif } - public void __Gen_Delegate_Imp120(Spine.TrackEntry p0) + public void __Gen_Delegate_Imp121(Spine.TrackEntry p0) { #if THREAD_SAFE || HOTFIX_ENABLE lock (luaEnv.luaEnvLock) @@ -2725,7 +2748,7 @@ namespace XLua #endif } - public void __Gen_Delegate_Imp121(Spine.TrackEntry p0, Spine.Event p1) + public void __Gen_Delegate_Imp122(Spine.TrackEntry p0, Spine.Event p1) { #if THREAD_SAFE || HOTFIX_ENABLE lock (luaEnv.luaEnvLock) @@ -2748,7 +2771,7 @@ namespace XLua #endif } - public void __Gen_Delegate_Imp122(UnityEngine.Mesh p0, UnityEngine.Material p1, UnityEngine.Texture p2) + public void __Gen_Delegate_Imp123(UnityEngine.Mesh p0, UnityEngine.Material p1, UnityEngine.Texture p2) { #if THREAD_SAFE || HOTFIX_ENABLE lock (luaEnv.luaEnvLock) @@ -2772,7 +2795,7 @@ namespace XLua #endif } - public void __Gen_Delegate_Imp123(int p0, UnityEngine.Mesh[] p1, UnityEngine.Material[] p2, UnityEngine.Texture[] p3) + public void __Gen_Delegate_Imp124(int p0, UnityEngine.Mesh[] p1, UnityEngine.Material[] p2, UnityEngine.Texture[] p3) { #if THREAD_SAFE || HOTFIX_ENABLE lock (luaEnv.luaEnvLock) @@ -2797,7 +2820,7 @@ namespace XLua #endif } - public void __Gen_Delegate_Imp124(Spine.Unity.SkeletonGraphic p0) + public void __Gen_Delegate_Imp125(Spine.Unity.SkeletonGraphic p0) { #if THREAD_SAFE || HOTFIX_ENABLE lock (luaEnv.luaEnvLock) @@ -2819,7 +2842,7 @@ namespace XLua #endif } - public void __Gen_Delegate_Imp125(Spine.Unity.SkeletonRendererInstruction p0) + public void __Gen_Delegate_Imp126(Spine.Unity.SkeletonRendererInstruction p0) { #if THREAD_SAFE || HOTFIX_ENABLE lock (luaEnv.luaEnvLock) @@ -2841,7 +2864,7 @@ namespace XLua #endif } - public void __Gen_Delegate_Imp126(Spine.Unity.ISkeletonAnimation p0) + public void __Gen_Delegate_Imp127(Spine.Unity.ISkeletonAnimation p0) { #if THREAD_SAFE || HOTFIX_ENABLE lock (luaEnv.luaEnvLock) @@ -2863,7 +2886,7 @@ namespace XLua #endif } - public void __Gen_Delegate_Imp127(Spine.Unity.MeshGeneratorBuffers p0) + public void __Gen_Delegate_Imp128(Spine.Unity.MeshGeneratorBuffers p0) { #if THREAD_SAFE || HOTFIX_ENABLE lock (luaEnv.luaEnvLock) @@ -2885,7 +2908,7 @@ namespace XLua #endif } - public void __Gen_Delegate_Imp128(Spine.Unity.SkeletonRenderer p0) + public void __Gen_Delegate_Imp129(Spine.Unity.SkeletonRenderer p0) { #if THREAD_SAFE || HOTFIX_ENABLE lock (luaEnv.luaEnvLock) @@ -3481,214 +3504,219 @@ namespace XLua return new System.Action(__Gen_Delegate_Imp88); } + if (type == typeof(System.Action)) + { + return new System.Action(__Gen_Delegate_Imp89); + } + if (type == typeof(System.Func)) { - return new System.Func(__Gen_Delegate_Imp89); + return new System.Func(__Gen_Delegate_Imp90); } if (type == typeof(System.Action)) { - return new System.Action(__Gen_Delegate_Imp90); + return new System.Action(__Gen_Delegate_Imp91); } if (type == typeof(System.Action)) { - return new System.Action(__Gen_Delegate_Imp91); + return new System.Action(__Gen_Delegate_Imp92); } if (type == typeof(System.Action)) { - return new System.Action(__Gen_Delegate_Imp92); + return new System.Action(__Gen_Delegate_Imp93); } if (type == typeof(System.Action)) { - return new System.Action(__Gen_Delegate_Imp93); + return new System.Action(__Gen_Delegate_Imp94); } if (type == typeof(System.Action)) { - return new System.Action(__Gen_Delegate_Imp94); + return new System.Action(__Gen_Delegate_Imp95); } if (type == typeof(System.Action)) { - return new System.Action(__Gen_Delegate_Imp95); + return new System.Action(__Gen_Delegate_Imp96); } if (type == typeof(System.Action)) { - return new System.Action(__Gen_Delegate_Imp96); + return new System.Action(__Gen_Delegate_Imp97); } if (type == typeof(System.AsyncCallback)) { - return new System.AsyncCallback(__Gen_Delegate_Imp97); + return new System.AsyncCallback(__Gen_Delegate_Imp98); } if (type == typeof(System.EventHandler)) { - return new System.EventHandler(__Gen_Delegate_Imp98); + return new System.EventHandler(__Gen_Delegate_Imp99); } if (type == typeof(System.Predicate)) { - return new System.Predicate(__Gen_Delegate_Imp99); + return new System.Predicate(__Gen_Delegate_Imp100); } if (type == typeof(System.Comparison)) { - return new System.Comparison(__Gen_Delegate_Imp100); + return new System.Comparison(__Gen_Delegate_Imp101); } if (type == typeof(System.Predicate)) { - return new System.Predicate(__Gen_Delegate_Imp101); + return new System.Predicate(__Gen_Delegate_Imp102); } if (type == typeof(System.Comparison)) { - return new System.Comparison(__Gen_Delegate_Imp102); + return new System.Comparison(__Gen_Delegate_Imp103); } if (type == typeof(System.Comparison)) { - return new System.Comparison(__Gen_Delegate_Imp103); + return new System.Comparison(__Gen_Delegate_Imp104); } if (type == typeof(System.Predicate)) { - return new System.Predicate(__Gen_Delegate_Imp104); + return new System.Predicate(__Gen_Delegate_Imp105); } if (type == typeof(System.Action)) { - return new System.Action(__Gen_Delegate_Imp105); + return new System.Action(__Gen_Delegate_Imp106); } if (type == typeof(System.Comparison)) { - return new System.Comparison(__Gen_Delegate_Imp106); + return new System.Comparison(__Gen_Delegate_Imp107); } if (type == typeof(System.Predicate)) { - return new System.Predicate(__Gen_Delegate_Imp107); + return new System.Predicate(__Gen_Delegate_Imp108); } if (type == typeof(System.Comparison)) { - return new System.Comparison(__Gen_Delegate_Imp108); + return new System.Comparison(__Gen_Delegate_Imp109); } if (type == typeof(System.Predicate>)) { - return new System.Predicate>(__Gen_Delegate_Imp109); + return new System.Predicate>(__Gen_Delegate_Imp110); } if (type == typeof(System.Action>)) { - return new System.Action>(__Gen_Delegate_Imp110); + return new System.Action>(__Gen_Delegate_Imp111); } if (type == typeof(System.Comparison>)) { - return new System.Comparison>(__Gen_Delegate_Imp111); + return new System.Comparison>(__Gen_Delegate_Imp112); } if (type == typeof(System.Action)) { - return new System.Action(__Gen_Delegate_Imp112); + return new System.Action(__Gen_Delegate_Imp113); } if (type == typeof(UnityEngine.Events.UnityAction)) { - return new UnityEngine.Events.UnityAction(__Gen_Delegate_Imp113); + return new UnityEngine.Events.UnityAction(__Gen_Delegate_Imp114); } if (type == typeof(UnityEngine.Events.UnityAction)) { - return new UnityEngine.Events.UnityAction(__Gen_Delegate_Imp114); + return new UnityEngine.Events.UnityAction(__Gen_Delegate_Imp115); } if (type == typeof(UnityEngine.Events.UnityAction)) { - return new UnityEngine.Events.UnityAction(__Gen_Delegate_Imp115); + return new UnityEngine.Events.UnityAction(__Gen_Delegate_Imp116); } if (type == typeof(UnityEngine.Video.VideoPlayer.EventHandler)) { - return new UnityEngine.Video.VideoPlayer.EventHandler(__Gen_Delegate_Imp116); + return new UnityEngine.Video.VideoPlayer.EventHandler(__Gen_Delegate_Imp117); } if (type == typeof(UnityEngine.Video.VideoPlayer.ErrorEventHandler)) { - return new UnityEngine.Video.VideoPlayer.ErrorEventHandler(__Gen_Delegate_Imp117); + return new UnityEngine.Video.VideoPlayer.ErrorEventHandler(__Gen_Delegate_Imp118); } if (type == typeof(UnityEngine.Video.VideoPlayer.TimeEventHandler)) { - return new UnityEngine.Video.VideoPlayer.TimeEventHandler(__Gen_Delegate_Imp118); + return new UnityEngine.Video.VideoPlayer.TimeEventHandler(__Gen_Delegate_Imp119); } if (type == typeof(UnityEngine.Video.VideoPlayer.FrameReadyEventHandler)) { - return new UnityEngine.Video.VideoPlayer.FrameReadyEventHandler(__Gen_Delegate_Imp119); + return new UnityEngine.Video.VideoPlayer.FrameReadyEventHandler(__Gen_Delegate_Imp120); } if (type == typeof(Spine.AnimationState.TrackEntryDelegate)) { - return new Spine.AnimationState.TrackEntryDelegate(__Gen_Delegate_Imp120); + return new Spine.AnimationState.TrackEntryDelegate(__Gen_Delegate_Imp121); } if (type == typeof(Spine.AnimationState.TrackEntryEventDelegate)) { - return new Spine.AnimationState.TrackEntryEventDelegate(__Gen_Delegate_Imp121); + return new Spine.AnimationState.TrackEntryEventDelegate(__Gen_Delegate_Imp122); } if (type == typeof(Spine.Unity.SkeletonGraphic.MeshAssignmentDelegateSingle)) { - return new Spine.Unity.SkeletonGraphic.MeshAssignmentDelegateSingle(__Gen_Delegate_Imp122); + return new Spine.Unity.SkeletonGraphic.MeshAssignmentDelegateSingle(__Gen_Delegate_Imp123); } if (type == typeof(Spine.Unity.SkeletonGraphic.MeshAssignmentDelegateMultiple)) { - return new Spine.Unity.SkeletonGraphic.MeshAssignmentDelegateMultiple(__Gen_Delegate_Imp123); + return new Spine.Unity.SkeletonGraphic.MeshAssignmentDelegateMultiple(__Gen_Delegate_Imp124); } if (type == typeof(Spine.Unity.SkeletonGraphic.SkeletonRendererDelegate)) { - return new Spine.Unity.SkeletonGraphic.SkeletonRendererDelegate(__Gen_Delegate_Imp124); + return new Spine.Unity.SkeletonGraphic.SkeletonRendererDelegate(__Gen_Delegate_Imp125); } if (type == typeof(Spine.Unity.SkeletonGraphic.InstructionDelegate)) { - return new Spine.Unity.SkeletonGraphic.InstructionDelegate(__Gen_Delegate_Imp125); + return new Spine.Unity.SkeletonGraphic.InstructionDelegate(__Gen_Delegate_Imp126); } if (type == typeof(Spine.Unity.SkeletonRenderer.InstructionDelegate)) { - return new Spine.Unity.SkeletonRenderer.InstructionDelegate(__Gen_Delegate_Imp125); + return new Spine.Unity.SkeletonRenderer.InstructionDelegate(__Gen_Delegate_Imp126); } if (type == typeof(Spine.Unity.ISkeletonAnimationDelegate)) { - return new Spine.Unity.ISkeletonAnimationDelegate(__Gen_Delegate_Imp126); + return new Spine.Unity.ISkeletonAnimationDelegate(__Gen_Delegate_Imp127); } if (type == typeof(Spine.Unity.UpdateBonesDelegate)) { - return new Spine.Unity.UpdateBonesDelegate(__Gen_Delegate_Imp126); + return new Spine.Unity.UpdateBonesDelegate(__Gen_Delegate_Imp127); } if (type == typeof(Spine.Unity.MeshGeneratorDelegate)) { - return new Spine.Unity.MeshGeneratorDelegate(__Gen_Delegate_Imp127); + return new Spine.Unity.MeshGeneratorDelegate(__Gen_Delegate_Imp128); } if (type == typeof(Spine.Unity.SkeletonRenderer.SkeletonRendererDelegate)) { - return new Spine.Unity.SkeletonRenderer.SkeletonRendererDelegate(__Gen_Delegate_Imp128); + return new Spine.Unity.SkeletonRenderer.SkeletonRendererDelegate(__Gen_Delegate_Imp129); } return null; diff --git a/Assets/XLua/Gen/EnumWrap.cs b/Assets/XLua/Gen/EnumWrap.cs index b4fa09ef9..0f8289b3a 100644 --- a/Assets/XLua/Gen/EnumWrap.cs +++ b/Assets/XLua/Gen/EnumWrap.cs @@ -16,6 +16,70 @@ namespace XLua.CSObjectWrap { using Utils = XLua.Utils; + public class AdFormatWrap + { + public static void __Register(RealStatePtr L) + { + ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); + Utils.BeginObjectRegister(typeof(AdFormat), L, translator, 0, 0, 0, 0); + Utils.EndObjectRegister(typeof(AdFormat), L, translator, null, null, null, null, null); + + Utils.BeginClassRegister(typeof(AdFormat), L, null, 4, 0, 0); + + + Utils.RegisterObject(L, translator, Utils.CLS_IDX, "RewardedVideo", AdFormat.RewardedVideo); + + Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Interstitial", AdFormat.Interstitial); + + Utils.RegisterObject(L, translator, Utils.CLS_IDX, "Banner", AdFormat.Banner); + + + Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom); + + Utils.EndClassRegister(typeof(AdFormat), L, translator); + } + + [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] + static int __CastFrom(RealStatePtr L) + { + ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); + LuaTypes lua_type = LuaAPI.lua_type(L, 1); + if (lua_type == LuaTypes.LUA_TNUMBER) + { + translator.PushAdFormat(L, (AdFormat)LuaAPI.xlua_tointeger(L, 1)); + } + + else if(lua_type == LuaTypes.LUA_TSTRING) + { + + if (LuaAPI.xlua_is_eq_str(L, 1, "RewardedVideo")) + { + translator.PushAdFormat(L, AdFormat.RewardedVideo); + } + else if (LuaAPI.xlua_is_eq_str(L, 1, "Interstitial")) + { + translator.PushAdFormat(L, AdFormat.Interstitial); + } + else if (LuaAPI.xlua_is_eq_str(L, 1, "Banner")) + { + translator.PushAdFormat(L, AdFormat.Banner); + } + else + { + return LuaAPI.luaL_error(L, "invalid string for AdFormat!"); + } + + } + + else + { + return LuaAPI.luaL_error(L, "invalid lua type for AdFormat! Expect number or string, got + " + lua_type); + } + + return 1; + } + } + public class IronSourceBannerPositionWrap { public static void __Register(RealStatePtr L) diff --git a/Assets/XLua/Gen/ISAdQualityAndroidInitHandlerWrap.cs b/Assets/XLua/Gen/ISAdQualityAndroidInitHandlerWrap.cs new file mode 100644 index 000000000..112212fea --- /dev/null +++ b/Assets/XLua/Gen/ISAdQualityAndroidInitHandlerWrap.cs @@ -0,0 +1,212 @@ +#if USE_UNI_LUA +using LuaAPI = UniLua.Lua; +using RealStatePtr = UniLua.ILuaState; +using LuaCSFunction = UniLua.CSharpFunctionDelegate; +#else +using LuaAPI = XLua.LuaDLL.Lua; +using RealStatePtr = System.IntPtr; +using LuaCSFunction = XLua.LuaDLL.lua_CSFunction; +#endif + +using XLua; +using System.Collections.Generic; + + +namespace XLua.CSObjectWrap +{ + using Utils = XLua.Utils; + public class ISAdQualityAndroidInitHandlerWrap + { + public static void __Register(RealStatePtr L) + { + ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); + System.Type type = typeof(ISAdQualityAndroidInitHandler); + Utils.BeginObjectRegister(type, L, translator, 0, 4, 0, 0); + + Utils.RegisterFunc(L, Utils.METHOD_IDX, "adQualitySdkInitSuccess", _m_adQualitySdkInitSuccess); + Utils.RegisterFunc(L, Utils.METHOD_IDX, "adQualitySdkInitFailed", _m_adQualitySdkInitFailed); + + Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnAdQualitySdkInitSuccess", _e_OnAdQualitySdkInitSuccess); + Utils.RegisterFunc(L, Utils.METHOD_IDX, "OnAdQualitySdkInitFailed", _e_OnAdQualitySdkInitFailed); + + + + + Utils.EndObjectRegister(type, L, translator, null, null, + null, null, null); + + Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0); + + + + + + + Utils.EndClassRegister(type, L, translator); + } + + [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] + static int __CreateInstance(RealStatePtr L) + { + + try { + ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); + if(LuaAPI.lua_gettop(L) == 1) + { + + var gen_ret = new ISAdQualityAndroidInitHandler(); + translator.Push(L, gen_ret); + + return 1; + } + + } + catch(System.Exception gen_e) { + return LuaAPI.luaL_error(L, "c# exception:" + gen_e); + } + return LuaAPI.luaL_error(L, "invalid arguments to ISAdQualityAndroidInitHandler constructor!"); + + } + + + + + + + + + [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] + static int _m_adQualitySdkInitSuccess(RealStatePtr L) + { + try { + + ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); + + + ISAdQualityAndroidInitHandler gen_to_be_invoked = (ISAdQualityAndroidInitHandler)translator.FastGetCSObj(L, 1); + + + + { + + gen_to_be_invoked.adQualitySdkInitSuccess( ); + + + + return 0; + } + + } catch(System.Exception gen_e) { + return LuaAPI.luaL_error(L, "c# exception:" + gen_e); + } + + } + + [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] + static int _m_adQualitySdkInitFailed(RealStatePtr L) + { + try { + + ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); + + + ISAdQualityAndroidInitHandler gen_to_be_invoked = (ISAdQualityAndroidInitHandler)translator.FastGetCSObj(L, 1); + + + + { + int _adQualitySdkInitError = LuaAPI.xlua_tointeger(L, 2); + string _errorMessage = LuaAPI.lua_tostring(L, 3); + + gen_to_be_invoked.adQualitySdkInitFailed( _adQualitySdkInitError, _errorMessage ); + + + + return 0; + } + + } catch(System.Exception gen_e) { + return LuaAPI.luaL_error(L, "c# exception:" + gen_e); + } + + } + + + + + + + + + [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] + static int _e_OnAdQualitySdkInitSuccess(RealStatePtr L) + { + try { + ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); + int gen_param_count = LuaAPI.lua_gettop(L); + ISAdQualityAndroidInitHandler gen_to_be_invoked = (ISAdQualityAndroidInitHandler)translator.FastGetCSObj(L, 1); + System.Action gen_delegate = translator.GetDelegate(L, 3); + if (gen_delegate == null) { + return LuaAPI.luaL_error(L, "#3 need System.Action!"); + } + + if (gen_param_count == 3) + { + + if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { + gen_to_be_invoked.OnAdQualitySdkInitSuccess += gen_delegate; + return 0; + } + + + if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { + gen_to_be_invoked.OnAdQualitySdkInitSuccess -= gen_delegate; + return 0; + } + + } + } catch(System.Exception gen_e) { + return LuaAPI.luaL_error(L, "c# exception:" + gen_e); + } + LuaAPI.luaL_error(L, "invalid arguments to ISAdQualityAndroidInitHandler.OnAdQualitySdkInitSuccess!"); + return 0; + } + + [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] + static int _e_OnAdQualitySdkInitFailed(RealStatePtr L) + { + try { + ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); + int gen_param_count = LuaAPI.lua_gettop(L); + ISAdQualityAndroidInitHandler gen_to_be_invoked = (ISAdQualityAndroidInitHandler)translator.FastGetCSObj(L, 1); + System.Action gen_delegate = translator.GetDelegate>(L, 3); + if (gen_delegate == null) { + return LuaAPI.luaL_error(L, "#3 need System.Action!"); + } + + if (gen_param_count == 3) + { + + if (LuaAPI.xlua_is_eq_str(L, 2, "+")) { + gen_to_be_invoked.OnAdQualitySdkInitFailed += gen_delegate; + return 0; + } + + + if (LuaAPI.xlua_is_eq_str(L, 2, "-")) { + gen_to_be_invoked.OnAdQualitySdkInitFailed -= gen_delegate; + return 0; + } + + } + } catch(System.Exception gen_e) { + return LuaAPI.luaL_error(L, "c# exception:" + gen_e); + } + LuaAPI.luaL_error(L, "invalid arguments to ISAdQualityAndroidInitHandler.OnAdQualitySdkInitFailed!"); + return 0; + } + + + + } +} diff --git a/Assets/XLua/Gen/IronSourceBannerAndroidWrap.cs b/Assets/XLua/Gen/IronSourceBannerAndroidWrap.cs new file mode 100644 index 000000000..ba4a315cf --- /dev/null +++ b/Assets/XLua/Gen/IronSourceBannerAndroidWrap.cs @@ -0,0 +1,294 @@ +#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 6cfcd73f3..4b4414ef3 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, "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); + 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); @@ -116,36 +116,7 @@ namespace XLua.CSObjectWrap } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - 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); - 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.onAdLoadFailedEvent += gen_delegate; - return 0; - } - - - if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "-")) { - 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.onAdLoadFailedEvent!"); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_onAdClickedEvent(RealStatePtr L) + static int _e_onAdLeftApplicationEvent(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); @@ -157,49 +128,20 @@ namespace XLua.CSObjectWrap if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "+")) { - IronSourceBannerEvents.onAdClickedEvent += gen_delegate; + IronSourceBannerEvents.onAdLeftApplicationEvent += gen_delegate; return 0; } if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "-")) { - IronSourceBannerEvents.onAdClickedEvent -= gen_delegate; + 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.onAdClickedEvent!"); - } - - [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.onAdLeftApplicationEvent!"); } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] @@ -232,7 +174,7 @@ namespace XLua.CSObjectWrap } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_onAdLeftApplicationEvent(RealStatePtr L) + static int _e_onAdScreenPresentedEvent(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); @@ -244,20 +186,78 @@ namespace XLua.CSObjectWrap if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "+")) { - IronSourceBannerEvents.onAdLeftApplicationEvent += gen_delegate; + IronSourceBannerEvents.onAdScreenPresentedEvent += gen_delegate; return 0; } if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "-")) { - IronSourceBannerEvents.onAdLeftApplicationEvent -= 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.onAdLeftApplicationEvent!"); + return LuaAPI.luaL_error(L, "invalid arguments to IronSourceBannerEvents.onAdScreenPresentedEvent!"); + } + + [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] + static int _e_onAdClickedEvent(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.onAdClickedEvent += gen_delegate; + return 0; + } + + + if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "-")) { + IronSourceBannerEvents.onAdClickedEvent -= 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.onAdClickedEvent!"); + } + + [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] + 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); + 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.onAdLoadFailedEvent += gen_delegate; + return 0; + } + + + if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "-")) { + 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.onAdLoadFailedEvent!"); } } diff --git a/Assets/XLua/Gen/IronSourceBannerLevelPlayAndroidWrap.cs b/Assets/XLua/Gen/IronSourceBannerLevelPlayAndroidWrap.cs new file mode 100644 index 000000000..cefff2e5f --- /dev/null +++ b/Assets/XLua/Gen/IronSourceBannerLevelPlayAndroidWrap.cs @@ -0,0 +1,294 @@ +#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 96e65d336..8ac08f259 100644 --- a/Assets/XLua/Gen/IronSourceEventsWrap.cs +++ b/Assets/XLua/Gen/IronSourceEventsWrap.cs @@ -37,17 +37,11 @@ namespace XLua.CSObjectWrap Utils.EndObjectRegister(type, L, translator, null, null, null, null, null); - Utils.BeginClassRegister(type, L, __CreateInstance, 16, 0, 0); + 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, "onOfferwallOpenedEvent", _e_onOfferwallOpenedEvent); - Utils.RegisterFunc(L, Utils.CLS_IDX, "onOfferwallShowFailedEvent", _e_onOfferwallShowFailedEvent); - Utils.RegisterFunc(L, Utils.CLS_IDX, "onOfferwallClosedEvent", _e_onOfferwallClosedEvent); - Utils.RegisterFunc(L, Utils.CLS_IDX, "onGetOfferwallCreditsFailedEvent", _e_onGetOfferwallCreditsFailedEvent); - Utils.RegisterFunc(L, Utils.CLS_IDX, "onOfferwallAdCreditedEvent", _e_onOfferwallAdCreditedEvent); - Utils.RegisterFunc(L, Utils.CLS_IDX, "onOfferwallAvailableEvent", _e_onOfferwallAvailableEvent); + 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); @@ -269,35 +263,6 @@ 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) { @@ -357,177 +322,32 @@ namespace XLua.CSObjectWrap } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_onOfferwallOpenedEvent(RealStatePtr L) + 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); + 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, "+")) { - IronSourceEvents.onOfferwallOpenedEvent += gen_delegate; + IronSourceEvents.onImpressionDataReadyEvent += gen_delegate; return 0; } if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "-")) { - IronSourceEvents.onOfferwallOpenedEvent -= gen_delegate; + 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.onOfferwallOpenedEvent!"); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_onOfferwallShowFailedEvent(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.onOfferwallShowFailedEvent += gen_delegate; - return 0; - } - - - if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "-")) { - IronSourceEvents.onOfferwallShowFailedEvent -= 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.onOfferwallShowFailedEvent!"); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_onOfferwallClosedEvent(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.onOfferwallClosedEvent += gen_delegate; - return 0; - } - - - if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "-")) { - IronSourceEvents.onOfferwallClosedEvent -= 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.onOfferwallClosedEvent!"); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_onGetOfferwallCreditsFailedEvent(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.onGetOfferwallCreditsFailedEvent += gen_delegate; - return 0; - } - - - if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "-")) { - IronSourceEvents.onGetOfferwallCreditsFailedEvent -= 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.onGetOfferwallCreditsFailedEvent!"); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_onOfferwallAdCreditedEvent(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.onOfferwallAdCreditedEvent += gen_delegate; - return 0; - } - - - if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "-")) { - IronSourceEvents.onOfferwallAdCreditedEvent -= 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.onOfferwallAdCreditedEvent!"); - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _e_onOfferwallAvailableEvent(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.onOfferwallAvailableEvent += gen_delegate; - return 0; - } - - - if (gen_param_count == 2 && LuaAPI.xlua_is_eq_str(L, 1, "-")) { - IronSourceEvents.onOfferwallAvailableEvent -= 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.onOfferwallAvailableEvent!"); + return LuaAPI.luaL_error(L, "invalid arguments to IronSourceEvents.onImpressionDataReadyEvent!"); } [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] diff --git a/Assets/XLua/Gen/IronSourceIAgentWrap.cs b/Assets/XLua/Gen/IronSourceIAgentWrap.cs index 01dc61383..b0fe49459 100644 --- a/Assets/XLua/Gen/IronSourceIAgentWrap.cs +++ b/Assets/XLua/Gen/IronSourceIAgentWrap.cs @@ -21,8 +21,9 @@ namespace XLua.CSObjectWrap { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); System.Type type = typeof(IronSourceIAgent); - Utils.BeginObjectRegister(type, L, translator, 0, 45, 0, 0); + Utils.BeginObjectRegister(type, L, translator, 0, 46, 0, 0); + 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); @@ -99,6 +100,35 @@ namespace XLua.CSObjectWrap + [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] + static int _m_SetWaterfallConfiguration(RealStatePtr L) + { + try { + + ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); + + + IronSourceIAgent gen_to_be_invoked = (IronSourceIAgent)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) { diff --git a/Assets/XLua/Gen/IronSourceImpressionDataAndroidWrap.cs b/Assets/XLua/Gen/IronSourceImpressionDataAndroidWrap.cs new file mode 100644 index 000000000..813130e35 --- /dev/null +++ b/Assets/XLua/Gen/IronSourceImpressionDataAndroidWrap.cs @@ -0,0 +1,212 @@ +#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 new file mode 100644 index 000000000..0bbf264e2 --- /dev/null +++ b/Assets/XLua/Gen/IronSourceInitializationAndroidWrap.cs @@ -0,0 +1,119 @@ +#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 new file mode 100644 index 000000000..eae9c5a39 --- /dev/null +++ b/Assets/XLua/Gen/IronSourceInterstitialAndroidWrap.cs @@ -0,0 +1,574 @@ +#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 new file mode 100644 index 000000000..23ac0e36a --- /dev/null +++ b/Assets/XLua/Gen/IronSourceInterstitialLevelPlayAndroidWrap.cs @@ -0,0 +1,329 @@ +#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 new file mode 100644 index 000000000..bf4e1a258 --- /dev/null +++ b/Assets/XLua/Gen/IronSourceOfferwallAndroidWrap.cs @@ -0,0 +1,466 @@ +#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 new file mode 100644 index 000000000..008c5187b --- /dev/null +++ b/Assets/XLua/Gen/IronSourceRewardedVideoAndroidWrap.cs @@ -0,0 +1,609 @@ +#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 new file mode 100644 index 000000000..c51898b15 --- /dev/null +++ b/Assets/XLua/Gen/IronSourceRewardedVideoLevelPlayAndroidWrap.cs @@ -0,0 +1,329 @@ +#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 new file mode 100644 index 000000000..ae47d2e90 --- /dev/null +++ b/Assets/XLua/Gen/IronSourceRewardedVideoLevelPlayManualAndroidWrap.cs @@ -0,0 +1,154 @@ +#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 new file mode 100644 index 000000000..5a61a975c --- /dev/null +++ b/Assets/XLua/Gen/IronSourceRewardedVideoManualAndroidWrap.cs @@ -0,0 +1,154 @@ +#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/IronSourceWrap.cs b/Assets/XLua/Gen/IronSourceWrap.cs index e1f0833d3..7ed9015be 100644 --- a/Assets/XLua/Gen/IronSourceWrap.cs +++ b/Assets/XLua/Gen/IronSourceWrap.cs @@ -21,8 +21,9 @@ namespace XLua.CSObjectWrap { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); System.Type type = typeof(IronSource); - Utils.BeginObjectRegister(type, L, translator, 0, 38, 0, 0); + Utils.BeginObjectRegister(type, L, translator, 0, 36, 0, 0); + 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); @@ -47,9 +48,6 @@ namespace XLua.CSObjectWrap 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, "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); @@ -160,6 +158,35 @@ namespace XLua.CSObjectWrap + return 0; + } + + } 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); + + + IronSource gen_to_be_invoked = (IronSource)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; } @@ -890,102 +917,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_showOfferwall(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - IronSource gen_to_be_invoked = (IronSource)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 IronSource.showOfferwall!"); - - } - - [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] - static int _m_getOfferwallCredits(RealStatePtr L) - { - try { - - ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); - - - IronSource gen_to_be_invoked = (IronSource)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); - - - IronSource gen_to_be_invoked = (IronSource)translator.FastGetCSObj(L, 1); - - - - { - - var gen_ret = gen_to_be_invoked.isOfferwallAvailable( ); - LuaAPI.lua_pushboolean(L, gen_ret); - - - return 1; } diff --git a/Assets/XLua/Gen/UnsupportedPlatformAgentWrap.cs b/Assets/XLua/Gen/UnsupportedPlatformAgentWrap.cs index 5a72203ef..3bc3225db 100644 --- a/Assets/XLua/Gen/UnsupportedPlatformAgentWrap.cs +++ b/Assets/XLua/Gen/UnsupportedPlatformAgentWrap.cs @@ -21,8 +21,9 @@ namespace XLua.CSObjectWrap { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); System.Type type = typeof(UnsupportedPlatformAgent); - Utils.BeginObjectRegister(type, L, translator, 0, 46, 0, 0); + Utils.BeginObjectRegister(type, L, translator, 0, 47, 0, 0); + Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetWaterfallConfiguration", _m_SetWaterfallConfiguration); Utils.RegisterFunc(L, Utils.METHOD_IDX, "start", _m_start); Utils.RegisterFunc(L, Utils.METHOD_IDX, "onApplicationPause", _m_onApplicationPause); Utils.RegisterFunc(L, Utils.METHOD_IDX, "getAdvertiserId", _m_getAdvertiserId); @@ -117,6 +118,35 @@ namespace XLua.CSObjectWrap + [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] + static int _m_SetWaterfallConfiguration(RealStatePtr L) + { + try { + + ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); + + + UnsupportedPlatformAgent gen_to_be_invoked = (UnsupportedPlatformAgent)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_start(RealStatePtr L) { diff --git a/Assets/XLua/Gen/WaterfallConfigurationWrap.cs b/Assets/XLua/Gen/WaterfallConfigurationWrap.cs new file mode 100644 index 000000000..d131fdee9 --- /dev/null +++ b/Assets/XLua/Gen/WaterfallConfigurationWrap.cs @@ -0,0 +1,151 @@ +#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 WaterfallConfigurationWrap + { + public static void __Register(RealStatePtr L) + { + ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); + System.Type type = typeof(WaterfallConfiguration); + Utils.BeginObjectRegister(type, L, translator, 0, 0, 2, 0); + + + + Utils.RegisterFunc(L, Utils.GETTER_IDX, "Ceiling", _g_get_Ceiling); + Utils.RegisterFunc(L, Utils.GETTER_IDX, "Floor", _g_get_Floor); + + + + Utils.EndObjectRegister(type, L, translator, null, null, + null, null, null); + + Utils.BeginClassRegister(type, L, __CreateInstance, 3, 0, 0); + Utils.RegisterFunc(L, Utils.CLS_IDX, "Builder", _m_Builder_xlua_st_); + Utils.RegisterFunc(L, Utils.CLS_IDX, "Empty", _m_Empty_xlua_st_); + + + + + + + Utils.EndClassRegister(type, L, translator); + } + + [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] + static int __CreateInstance(RealStatePtr L) + { + return LuaAPI.luaL_error(L, "WaterfallConfiguration does not have a constructor!"); + } + + + + + + + + + [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] + static int _m_Builder_xlua_st_(RealStatePtr L) + { + try { + + ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); + + + + + { + + var gen_ret = WaterfallConfiguration.Builder( ); + 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_Empty_xlua_st_(RealStatePtr L) + { + try { + + ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); + + + + + { + + var gen_ret = WaterfallConfiguration.Empty( ); + 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 _g_get_Ceiling(RealStatePtr L) + { + try { + ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); + + WaterfallConfiguration gen_to_be_invoked = (WaterfallConfiguration)translator.FastGetCSObj(L, 1); + translator.PushAny(L, gen_to_be_invoked.Ceiling); + } catch(System.Exception gen_e) { + return LuaAPI.luaL_error(L, "c# exception:" + gen_e); + } + return 1; + } + + [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] + static int _g_get_Floor(RealStatePtr L) + { + try { + ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); + + WaterfallConfiguration gen_to_be_invoked = (WaterfallConfiguration)translator.FastGetCSObj(L, 1); + translator.PushAny(L, gen_to_be_invoked.Floor); + } catch(System.Exception gen_e) { + return LuaAPI.luaL_error(L, "c# exception:" + gen_e); + } + return 1; + } + + + + + + + + } +} diff --git a/Assets/XLua/Gen/WaterfallConfiguration_WaterfallConfigurationBuilderWrap.cs b/Assets/XLua/Gen/WaterfallConfiguration_WaterfallConfigurationBuilderWrap.cs new file mode 100644 index 000000000..333a2eab4 --- /dev/null +++ b/Assets/XLua/Gen/WaterfallConfiguration_WaterfallConfigurationBuilderWrap.cs @@ -0,0 +1,156 @@ +#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 WaterfallConfigurationWaterfallConfigurationBuilderWrap + { + public static void __Register(RealStatePtr L) + { + ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); + System.Type type = typeof(WaterfallConfiguration.WaterfallConfigurationBuilder); + Utils.BeginObjectRegister(type, L, translator, 0, 3, 0, 0); + + Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetCeiling", _m_SetCeiling); + Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetFloor", _m_SetFloor); + Utils.RegisterFunc(L, Utils.METHOD_IDX, "Build", _m_Build); + + + + + + 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) + { + return LuaAPI.luaL_error(L, "WaterfallConfiguration.WaterfallConfigurationBuilder does not have a constructor!"); + } + + + + + + + + + [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] + static int _m_SetCeiling(RealStatePtr L) + { + try { + + ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); + + + WaterfallConfiguration.WaterfallConfigurationBuilder gen_to_be_invoked = (WaterfallConfiguration.WaterfallConfigurationBuilder)translator.FastGetCSObj(L, 1); + + + + { + double _ceiling = LuaAPI.lua_tonumber(L, 2); + + var gen_ret = gen_to_be_invoked.SetCeiling( _ceiling ); + 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_SetFloor(RealStatePtr L) + { + try { + + ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); + + + WaterfallConfiguration.WaterfallConfigurationBuilder gen_to_be_invoked = (WaterfallConfiguration.WaterfallConfigurationBuilder)translator.FastGetCSObj(L, 1); + + + + { + double _floor = LuaAPI.lua_tonumber(L, 2); + + var gen_ret = gen_to_be_invoked.SetFloor( _floor ); + 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_Build(RealStatePtr L) + { + try { + + ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); + + + WaterfallConfiguration.WaterfallConfigurationBuilder gen_to_be_invoked = (WaterfallConfiguration.WaterfallConfigurationBuilder)translator.FastGetCSObj(L, 1); + + + + { + + var gen_ret = gen_to_be_invoked.Build( ); + 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/WrapPusher.cs b/Assets/XLua/Gen/WrapPusher.cs index f1eb10947..632eb2bbf 100644 --- a/Assets/XLua/Gen/WrapPusher.cs +++ b/Assets/XLua/Gen/WrapPusher.cs @@ -34,6 +34,7 @@ namespace XLua translator.RegisterPushAndGetAndUpdate(translator.PushUnityEngineRay, translator.Get, translator.UpdateUnityEngineRay); translator.RegisterPushAndGetAndUpdate(translator.PushUnityEngineBounds, translator.Get, translator.UpdateUnityEngineBounds); translator.RegisterPushAndGetAndUpdate(translator.PushUnityEngineRay2D, translator.Get, translator.UpdateUnityEngineRay2D); + translator.RegisterPushAndGetAndUpdate(translator.PushAdFormat, translator.Get, translator.UpdateAdFormat); translator.RegisterPushAndGetAndUpdate(translator.PushIronSourceBannerPosition, translator.Get, translator.UpdateIronSourceBannerPosition); translator.RegisterPushAndGetAndUpdate(translator.PushISAdQualityDeviceIdType, translator.Get, translator.UpdateISAdQualityDeviceIdType); translator.RegisterPushAndGetAndUpdate(translator.PushISAdQualityAdType, translator.Get, translator.UpdateISAdQualityAdType); @@ -653,6 +654,90 @@ namespace XLua } } + int AdFormat_TypeID = -1; + int AdFormat_EnumRef = -1; + + public void PushAdFormat(RealStatePtr L, AdFormat val) + { + if (AdFormat_TypeID == -1) + { + bool is_first; + AdFormat_TypeID = getTypeId(L, typeof(AdFormat), out is_first); + + if (AdFormat_EnumRef == -1) + { + Utils.LoadCSTable(L, typeof(AdFormat)); + AdFormat_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX); + } + + } + + if (LuaAPI.xlua_tryget_cachedud(L, (int)val, AdFormat_EnumRef) == 1) + { + return; + } + + IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, AdFormat_TypeID); + if (!CopyByValue.Pack(buff, 0, (int)val)) + { + throw new Exception("pack fail fail for AdFormat ,value="+val); + } + + LuaAPI.lua_getref(L, AdFormat_EnumRef); + LuaAPI.lua_pushvalue(L, -2); + LuaAPI.xlua_rawseti(L, -2, (int)val); + LuaAPI.lua_pop(L, 1); + + } + + public void Get(RealStatePtr L, int index, out AdFormat val) + { + LuaTypes type = LuaAPI.lua_type(L, index); + if (type == LuaTypes.LUA_TUSERDATA ) + { + if (LuaAPI.xlua_gettypeid(L, index) != AdFormat_TypeID) + { + throw new Exception("invalid userdata for AdFormat"); + } + + IntPtr buff = LuaAPI.lua_touserdata(L, index); + int e; + if (!CopyByValue.UnPack(buff, 0, out e)) + { + throw new Exception("unpack fail for AdFormat"); + } + val = (AdFormat)e; + + } + else + { + val = (AdFormat)objectCasters.GetCaster(typeof(AdFormat))(L, index, null); + } + } + + public void UpdateAdFormat(RealStatePtr L, int index, AdFormat val) + { + + if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA) + { + if (LuaAPI.xlua_gettypeid(L, index) != AdFormat_TypeID) + { + throw new Exception("invalid userdata for AdFormat"); + } + + IntPtr buff = LuaAPI.lua_touserdata(L, index); + if (!CopyByValue.Pack(buff, 0, (int)val)) + { + throw new Exception("pack fail for AdFormat ,value="+val); + } + } + + else + { + throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index)); + } + } + int IronSourceBannerPosition_TypeID = -1; int IronSourceBannerPosition_EnumRef = -1; @@ -7684,6 +7769,12 @@ namespace XLua translator.PushUnityEngineRay2D(L, array[index]); return true; } + else if (type == typeof(AdFormat[])) + { + AdFormat[] array = obj as AdFormat[]; + translator.PushAdFormat(L, array[index]); + return true; + } else if (type == typeof(IronSourceBannerPosition[])) { IronSourceBannerPosition[] array = obj as IronSourceBannerPosition[]; @@ -8236,6 +8327,12 @@ namespace XLua translator.Get(L, obj_idx, out array[array_idx]); return true; } + else if (type == typeof(AdFormat[])) + { + AdFormat[] array = obj as AdFormat[]; + translator.Get(L, obj_idx, out array[array_idx]); + return true; + } else if (type == typeof(IronSourceBannerPosition[])) { IronSourceBannerPosition[] array = obj as IronSourceBannerPosition[]; diff --git a/Assets/XLua/Gen/XLuaGenAutoRegister.cs b/Assets/XLua/Gen/XLuaGenAutoRegister.cs index 8d679c270..5dae1873b 100644 --- a/Assets/XLua/Gen/XLuaGenAutoRegister.cs +++ b/Assets/XLua/Gen/XLuaGenAutoRegister.cs @@ -2325,6 +2325,12 @@ namespace XLua.CSObjectWrap translator.DelayWrapLoader(typeof(IronSourceDemoScript), IronSourceDemoScriptWrap.__Register); + translator.DelayWrapLoader(typeof(AdFormat), AdFormatWrap.__Register); + + + translator.DelayWrapLoader(typeof(AndroidAgent), AndroidAgentWrap.__Register); + + translator.DelayWrapLoader(typeof(IUnityBanner), IUnityBannerWrap.__Register); @@ -2366,17 +2372,23 @@ namespace XLua.CSObjectWrap translator.DelayWrapLoader(typeof(IronSourceAdInfo), IronSourceAdInfoWrap.__Register); - - translator.DelayWrapLoader(typeof(IronSourceBannerEvents), IronSourceBannerEventsWrap.__Register); - - - translator.DelayWrapLoader(typeof(IronSourceConfig), IronSourceConfigWrap.__Register); - } static void wrapInit15(LuaEnv luaenv, ObjectTranslator translator) { + translator.DelayWrapLoader(typeof(IronSourceBannerAndroid), IronSourceBannerAndroidWrap.__Register); + + + translator.DelayWrapLoader(typeof(IronSourceBannerEvents), IronSourceBannerEventsWrap.__Register); + + + translator.DelayWrapLoader(typeof(IronSourceBannerLevelPlayAndroid), IronSourceBannerLevelPlayAndroidWrap.__Register); + + + translator.DelayWrapLoader(typeof(IronSourceConfig), IronSourceConfigWrap.__Register); + + translator.DelayWrapLoader(typeof(IronSourceConstants), IronSourceConstantsWrap.__Register); @@ -2407,21 +2419,48 @@ 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); @@ -2434,12 +2473,18 @@ namespace XLua.CSObjectWrap translator.DelayWrapLoader(typeof(UnsupportedPlatformAgent), UnsupportedPlatformAgentWrap.__Register); + translator.DelayWrapLoader(typeof(WaterfallConfiguration), WaterfallConfigurationWrap.__Register); + + translator.DelayWrapLoader(typeof(ISAdQualityDeviceIdType), ISAdQualityDeviceIdTypeWrap.__Register); translator.DelayWrapLoader(typeof(ISAdQualityAdType), ISAdQualityAdTypeWrap.__Register); + translator.DelayWrapLoader(typeof(ISAdQualityAndroidInitHandler), ISAdQualityAndroidInitHandlerWrap.__Register); + + translator.DelayWrapLoader(typeof(ISAdQualityConfig), ISAdQualityConfigWrap.__Register); @@ -2484,6 +2529,10 @@ namespace XLua.CSObjectWrap translator.DelayWrapLoader(typeof(BaseBehaviour), BaseBehaviourWrap.__Register); + } + + static void wrapInit16(LuaEnv luaenv, ObjectTranslator translator) + { translator.DelayWrapLoader(typeof(CodeGeneratedSingleton), CodeGeneratedSingletonWrap.__Register); @@ -2529,10 +2578,6 @@ namespace XLua.CSObjectWrap translator.DelayWrapLoader(typeof(ThinkingAnalytics.Wrapper.ThinkingAnalyticsWrapper), ThinkingAnalyticsWrapperThinkingAnalyticsWrapperWrap.__Register); - } - - static void wrapInit16(LuaEnv luaenv, ObjectTranslator translator) - { translator.DelayWrapLoader(typeof(ThinkingAnalytics.Utils.TD_Log), ThinkingAnalyticsUtilsTD_LogWrap.__Register); @@ -2641,6 +2686,10 @@ namespace XLua.CSObjectWrap translator.DelayWrapLoader(typeof(Facebook.MiniJSON.MiniJsonUtil), FacebookMiniJSONMiniJsonUtilWrap.__Register); + } + + static void wrapInit17(LuaEnv luaenv, ObjectTranslator translator) + { translator.DelayWrapLoader(typeof(BF.NativeCore.ThirdPlatform.AppsFlyerSdk), BFNativeCoreThirdPlatformAppsFlyerSdkWrap.__Register); @@ -2660,6 +2709,9 @@ namespace XLua.CSObjectWrap translator.DelayWrapLoader(typeof(UIImageSheetAnimation.StartFrameType), UIImageSheetAnimationStartFrameTypeWrap.__Register); + translator.DelayWrapLoader(typeof(WaterfallConfiguration.WaterfallConfigurationBuilder), WaterfallConfigurationWaterfallConfigurationBuilderWrap.__Register); + + translator.DelayWrapLoader(typeof(ThinkingAnalytics.ThinkingAnalyticsAPI.Token), ThinkingAnalyticsThinkingAnalyticsAPITokenWrap.__Register); @@ -2686,10 +2738,6 @@ namespace XLua.CSObjectWrap translator.DelayWrapLoader(typeof(System.IO.File), SystemIOFileWrap.__Register); - } - - static void wrapInit17(LuaEnv luaenv, ObjectTranslator translator) - { translator.DelayWrapLoader(typeof(System.DBNull), SystemDBNullWrap.__Register); @@ -2795,6 +2843,10 @@ namespace XLua.CSObjectWrap translator.DelayWrapLoader(typeof(UnityEngine.Playables.PlayableAsset), UnityEnginePlayablesPlayableAssetWrap.__Register); + } + + static void wrapInit18(LuaEnv luaenv, ObjectTranslator translator) + { translator.DelayWrapLoader(typeof(UnityEngine.Playables.Playable), UnityEnginePlayablesPlayableWrap.__Register); @@ -2843,10 +2895,6 @@ namespace XLua.CSObjectWrap translator.DelayWrapLoader(typeof(UnityEngine.Camera.MonoOrStereoscopicEye), UnityEngineCameraMonoOrStereoscopicEyeWrap.__Register); - } - - static void wrapInit18(LuaEnv luaenv, ObjectTranslator translator) - { translator.DelayWrapLoader(typeof(UnityEngine.Texture2D.EXRFlags), UnityEngineTexture2DEXRFlagsWrap.__Register); @@ -2952,6 +3000,10 @@ namespace XLua.CSObjectWrap translator.DelayWrapLoader(typeof(Spine.AnimationState), SpineAnimationStateWrap.__Register); + } + + static void wrapInit19(LuaEnv luaenv, ObjectTranslator translator) + { translator.DelayWrapLoader(typeof(Spine.AnimationStateData), SpineAnimationStateDataWrap.__Register); @@ -3000,10 +3052,6 @@ namespace XLua.CSObjectWrap translator.DelayWrapLoader(typeof(TMPro.TMP_InputField.ContentType), TMProTMP_InputFieldContentTypeWrap.__Register); - } - - static void wrapInit19(LuaEnv luaenv, ObjectTranslator translator) - { translator.DelayWrapLoader(typeof(TMPro.TMP_InputField.InputType), TMProTMP_InputFieldInputTypeWrap.__Register); @@ -3109,6 +3157,10 @@ namespace XLua.CSObjectWrap translator.DelayWrapLoader(typeof(BF.ScrollRectBaseOld.ScrollbarVisibility), BFScrollRectBaseOldScrollbarVisibilityWrap.__Register); + } + + static void wrapInit20(LuaEnv luaenv, ObjectTranslator translator) + { translator.DelayWrapLoader(typeof(BF.NetServiceType), BFNetServiceTypeWrap.__Register); @@ -3168,6 +3220,8 @@ namespace XLua.CSObjectWrap wrapInit19(luaenv, translator); + wrapInit20(luaenv, translator); + } diff --git a/Assets/XLua/Gen/com_adjust_sdk_AdjustUtilsWrap.cs b/Assets/XLua/Gen/com_adjust_sdk_AdjustUtilsWrap.cs index 0a27ea9b0..092500ebe 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, 14, 37, 37); + Utils.BeginClassRegister(type, L, __CreateInstance, 15, 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,6 +45,7 @@ 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_); @@ -505,6 +506,34 @@ 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 c1009eca5..0956b0e53 100644 --- a/Assets/XLua/Gen/link.xml +++ b/Assets/XLua/Gen/link.xml @@ -219,6 +219,8 @@ + + @@ -233,7 +235,9 @@ + + @@ -245,17 +249,28 @@ + + + + + + + + + + + @@ -328,6 +343,7 @@ + diff --git a/BFVersions/android/dz_google_apk/gradle.properties b/BFVersions/android/dz_google_apk/gradle.properties index 58e8481f1..8758bfa65 100644 --- a/BFVersions/android/dz_google_apk/gradle.properties +++ b/BFVersions/android/dz_google_apk/gradle.properties @@ -3,4 +3,4 @@ org.gradle.parallel=true android.enableR8=false android.useAndroidX=true android.enableJetifier=true -unityStreamingAssets=.unity3d, .bytes, .ab \ No newline at end of file +unityStreamingAssets=.unity3d, .bytes, .ab, UnityServicesProjectConfiguration.json \ No newline at end of file diff --git a/BFVersions/android/dz_google_apk/unityLibrary/IronSource.androidlib/AndroidManifest.xml b/BFVersions/android/dz_google_apk/unityLibrary/IronSource.androidlib/AndroidManifest.xml new file mode 100644 index 000000000..6ad08dd83 --- /dev/null +++ b/BFVersions/android/dz_google_apk/unityLibrary/IronSource.androidlib/AndroidManifest.xml @@ -0,0 +1,12 @@ + + + + + + + + + + + + \ No newline at end of file diff --git a/BFVersions/android/dz_google_apk/unityLibrary/IronSource.androidlib/build.gradle b/BFVersions/android/dz_google_apk/unityLibrary/IronSource.androidlib/build.gradle new file mode 100644 index 000000000..76402b1a2 --- /dev/null +++ b/BFVersions/android/dz_google_apk/unityLibrary/IronSource.androidlib/build.gradle @@ -0,0 +1,28 @@ +apply plugin: 'android-library' + +dependencies { + implementation fileTree(dir: 'bin', include: ['*.jar']) + implementation fileTree(dir: 'libs', include: ['*.jar']) +} + +android { + sourceSets { + main { + manifest.srcFile 'AndroidManifest.xml' + //java.srcDirs = ['src'] + res.srcDirs = ['res'] + assets.srcDirs = ['assets'] + jniLibs.srcDirs = ['libs'] + } + } + + compileSdkVersion 33 + buildToolsVersion '30.0.2' + defaultConfig { + targetSdkVersion 33 + } + + lintOptions { + abortOnError false + } +} diff --git a/BFVersions/android/dz_google_apk/unityLibrary/IronSource.androidlib/libs/IronSource-bridge.jar b/BFVersions/android/dz_google_apk/unityLibrary/IronSource.androidlib/libs/IronSource-bridge.jar new file mode 100644 index 000000000..44dcadb64 Binary files /dev/null and b/BFVersions/android/dz_google_apk/unityLibrary/IronSource.androidlib/libs/IronSource-bridge.jar differ diff --git a/BFVersions/android/dz_google_apk/unityLibrary/IronSource.androidlib/project.properties b/BFVersions/android/dz_google_apk/unityLibrary/IronSource.androidlib/project.properties new file mode 100644 index 000000000..37b95eded --- /dev/null +++ b/BFVersions/android/dz_google_apk/unityLibrary/IronSource.androidlib/project.properties @@ -0,0 +1,2 @@ +target=android-9 +android.library=true \ No newline at end of file diff --git a/BFVersions/android/dz_google_apk/unityLibrary/build.gradle b/BFVersions/android/dz_google_apk/unityLibrary/build.gradle index 7059b0323..1b70e9b45 100644 --- a/BFVersions/android/dz_google_apk/unityLibrary/build.gradle +++ b/BFVersions/android/dz_google_apk/unityLibrary/build.gradle @@ -11,23 +11,26 @@ apply plugin: 'com.android.library' url "https://maven.google.com" } maven { - url "https://android-sdk.is.com/" // Assets/IronSource/Editor/IronSourceSDKDependencies.xml:9, Assets/IronSource/Editor/ISAdColonyAdapterDependencies.xml:16, Assets/IronSource/Editor/ISAdMobAdapterDependencies.xml:16, Assets/IronSource/Editor/ISAppLovinAdapterDependencies.xml:8, Assets/IronSource/Editor/ISChartboostAdapterDependencies.xml:8, Assets/IronSource/Editor/ISFacebookAdapterDependencies.xml:16, Assets/IronSource/Editor/ISFyberAdapterDependencies.xml:16, Assets/IronSource/Editor/ISLiftoffAdapterDependencies.xml:16, Assets/IronSource/Editor/ISPangleAdapterDependencies.xml:8, Assets/IronSource/Editor/ISTapJoyAdapterDependencies.xml:8, Assets/IronSource/Editor/ISUnityAdsAdapterDependencies.xml:8 + url "https://android-sdk.is.com/" // Assets/IronSource/Editor/IronSourceSDKDependencies.xml:9, Assets/IronSource/Editor/ISAdColonyAdapterDependencies.xml:16, Assets/IronSource/Editor/ISAdMobAdapterDependencies.xml:16, Assets/IronSource/Editor/ISAppLovinAdapterDependencies.xml:8, Assets/IronSource/Editor/ISChartboostAdapterDependencies.xml:8, Assets/IronSource/Editor/ISFacebookAdapterDependencies.xml:16, Assets/IronSource/Editor/ISFyberAdapterDependencies.xml:16, Assets/IronSource/Editor/ISMintegralAdapterDependencies.xml:48, Assets/IronSource/Editor/ISPangleAdapterDependencies.xml:8, Assets/IronSource/Editor/ISTapJoyAdapterDependencies.xml:8, Assets/IronSource/Editor/ISUnityAdsAdapterDependencies.xml:8, Assets/IronSource/Editor/ISVungleAdapterDependencies.xml:16, Assets/IronSourceAdQuality/Editor/IronSourceAdQualityDependencies.xml:9, Assets/IronSourceAdQuality/Editor/IronSourceAdQualityDependencies.xml:17 } maven { - url "https://maven.google.com/" // Assets/IronSource/Editor/IronSourceSDKDependencies.xml:17, Assets/IronSource/Editor/IronSourceSDKDependencies.xml:25, Assets/IronSource/Editor/ISAdColonyAdapterDependencies.xml:8, Assets/IronSource/Editor/ISAdMobAdapterDependencies.xml:8, Assets/IronSource/Editor/ISAppLovinAdapterDependencies.xml:15, Assets/IronSource/Editor/ISChartboostAdapterDependencies.xml:15, Assets/IronSource/Editor/ISFacebookAdapterDependencies.xml:8, Assets/IronSource/Editor/ISLiftoffAdapterDependencies.xml:8, Assets/IronSource/Editor/ISUnityAdsAdapterDependencies.xml:15 + url "https://maven.google.com/" // Assets/IronSource/Editor/IronSourceSDKDependencies.xml:17, Assets/IronSource/Editor/IronSourceSDKDependencies.xml:25, Assets/IronSource/Editor/ISAdColonyAdapterDependencies.xml:8, Assets/IronSource/Editor/ISAdMobAdapterDependencies.xml:8, Assets/IronSource/Editor/ISAppLovinAdapterDependencies.xml:15, Assets/IronSource/Editor/ISFacebookAdapterDependencies.xml:8, Assets/IronSource/Editor/ISMintegralAdapterDependencies.xml:40, Assets/IronSource/Editor/ISUnityAdsAdapterDependencies.xml:15 + } + maven { + url "https://cboost.jfrog.io/artifactory/chartboost-ads/" // Assets/IronSource/Editor/ISChartboostAdapterDependencies.xml:15 } maven { url "https://repo.maven.apache.org/maven2/" // Assets/IronSource/Editor/ISFyberAdapterDependencies.xml:8 } + maven { + url "https://dl-maven-android.mintegral.com/repository/mbridge_android_sdk_oversea/" // Assets/IronSource/Editor/ISMintegralAdapterDependencies.xml:8, Assets/IronSource/Editor/ISMintegralAdapterDependencies.xml:16, Assets/IronSource/Editor/ISMintegralAdapterDependencies.xml:24, Assets/IronSource/Editor/ISMintegralAdapterDependencies.xml:32 + } maven { url "https://artifact.bytedance.com/repository/pangle/" // Assets/IronSource/Editor/ISPangleAdapterDependencies.xml:15 } maven { url "https://sdk.tapjoy.com/" // Assets/IronSource/Editor/ISTapJoyAdapterDependencies.xml:15 } - maven { - url "https://dl-maven-android.mintegral.com/repository/mbridge_android_sdk_oversea/" // Assets/IronSource/Editor/ISMintegralAdapterDependencies.xml:8 - } maven { url "https://jitpack.io/" // Assets/IronSource/Editor/ISVungleAdapterDependencies.xml:8 } @@ -57,58 +60,60 @@ dependencies { // adjust implementation(name: 'adjust-android-signaturev2-v2.15.10-s2', ext:'aar') + implementation project('IronSource.androidlib') + // Android Resolver Dependencies Start + implementation 'androidx.recyclerview:recyclerview:1.2.1' // Assets/IronSource/Editor/ISMintegralAdapterDependencies.xml:40 implementation 'com.adcolony:sdk:4.8.0' // Assets/IronSource/Editor/ISAdColonyAdapterDependencies.xml:8 implementation 'com.android.installreferrer:installreferrer:2.1' // Assets/ThirdParty/AppsFlyer/Editor/AppsFlyerDependencies.xml:10 implementation 'com.android.support:appcompat-v7:25.3.1' // Facebook.Unity.Editor.AndroidSupportLibraryResolver.addSupportLibraryDependency implementation 'com.android.support:cardview-v7:25.3.1' // Facebook.Unity.Editor.AndroidSupportLibraryResolver.addSupportLibraryDependency implementation 'com.android.support:customtabs:25.3.1' // Facebook.Unity.Editor.AndroidSupportLibraryResolver.addSupportLibraryDependency implementation 'com.android.support:support-v4:25.3.1' // Facebook.Unity.Editor.AndroidSupportLibraryResolver.addSupportLibraryDependency - implementation 'com.applovin:applovin-sdk:11.7.1' // Assets/IronSource/Editor/ISAppLovinAdapterDependencies.xml:15 + implementation 'com.applovin:applovin-sdk:11.10.1' // Assets/IronSource/Editor/ISAppLovinAdapterDependencies.xml:15 implementation 'com.appsflyer:af-android-sdk:6.4.1' // Assets/ThirdParty/AppsFlyer/Editor/AppsFlyerDependencies.xml:6 implementation 'com.appsflyer:unity-wrapper:6.4.1' // Assets/ThirdParty/AppsFlyer/Editor/AppsFlyerDependencies.xml:8 implementation 'com.appsflyer:adrevenue:6.5.4' // Assets/ThirdParty/AppsFlyerAdrevenue/Editor/AppsFlyerAdRevenueDependencies.xml:4 implementation 'com.appsflyer:unity-adrevenue-generic-wrapper:6.5.4' // Assets/ThirdParty/AppsFlyerAdrevenue/Editor/AppsFlyerAdRevenueDependencies.xml:5 - implementation 'com.chartboost:chartboost-sdk:9.2.0' // Assets/IronSource/Editor/ISChartboostAdapterDependencies.xml:15 - implementation 'com.facebook.android:audience-network-sdk:6.12.0' // Assets/IronSource/Editor/ISFacebookAdapterDependencies.xml:8 + implementation 'com.chartboost:chartboost-sdk:9.3.1' // Assets/IronSource/Editor/ISChartboostAdapterDependencies.xml:15 + implementation 'com.facebook.android:audience-network-sdk:6.15.0' // Assets/IronSource/Editor/ISFacebookAdapterDependencies.xml:8 implementation 'com.facebook.android:facebook-applinks:[15.1,16)' // Assets/ThirdParty/FacebookSDK/Plugins/Editor/Dependencies.xml:6 implementation 'com.facebook.android:facebook-core:[15.1,16)' // Assets/ThirdParty/FacebookSDK/Plugins/Editor/Dependencies.xml:5 implementation 'com.facebook.android:facebook-gamingservices:[15.1,16)' // Assets/ThirdParty/FacebookSDK/Plugins/Editor/Dependencies.xml:9 implementation 'com.facebook.android:facebook-login:[15.1,16)' // Assets/ThirdParty/FacebookSDK/Plugins/Editor/Dependencies.xml:7 implementation 'com.facebook.android:facebook-share:[15.1,16)' // Assets/ThirdParty/FacebookSDK/Plugins/Editor/Dependencies.xml:8 - implementation 'com.fyber:marketplace-sdk:8.2.2' // Assets/IronSource/Editor/ISFyberAdapterDependencies.xml:8 - implementation 'com.google.android.gms:play-services-ads:21.5.0' // Assets/IronSource/Editor/ISAdMobAdapterDependencies.xml:8 + implementation 'com.fyber:marketplace-sdk:8.2.3' // Assets/IronSource/Editor/ISFyberAdapterDependencies.xml:8 + implementation 'com.google.android.gms:play-services-ads:22.2.0' // Assets/IronSource/Editor/ISAdMobAdapterDependencies.xml:8 implementation 'com.google.android.gms:play-services-ads-identifier:18.0.1' // Assets/IronSource/Editor/IronSourceSDKDependencies.xml:17 implementation 'com.google.android.gms:play-services-basement:18.1.0' // Assets/IronSource/Editor/IronSourceSDKDependencies.xml:25 implementation 'com.ironsource.adapters:adcolonyadapter:4.3.14' // Assets/IronSource/Editor/ISAdColonyAdapterDependencies.xml:16 - implementation 'com.ironsource.adapters:admobadapter:4.3.35' // Assets/IronSource/Editor/ISAdMobAdapterDependencies.xml:16 - implementation 'com.ironsource.adapters:applovinadapter:4.3.37' // Assets/IronSource/Editor/ISAppLovinAdapterDependencies.xml:8 - implementation 'com.ironsource.adapters:chartboostadapter:4.3.11' // Assets/IronSource/Editor/ISChartboostAdapterDependencies.xml:8 - implementation 'com.ironsource.adapters:facebookadapter:4.3.39' // Assets/IronSource/Editor/ISFacebookAdapterDependencies.xml:16 - implementation 'com.ironsource.adapters:fyberadapter:4.3.24' // Assets/IronSource/Editor/ISFyberAdapterDependencies.xml:16 - implementation 'com.ironsource.adapters:pangleadapter:4.3.17' // Assets/IronSource/Editor/ISPangleAdapterDependencies.xml:8 - implementation 'com.ironsource.adapters:tapjoyadapter:4.1.24' // Assets/IronSource/Editor/ISTapJoyAdapterDependencies.xml:8 - implementation 'com.ironsource.adapters:unityadsadapter:4.3.27' // Assets/IronSource/Editor/ISUnityAdsAdapterDependencies.xml:8 - implementation 'com.vungle:publisher-sdk-android:6.12.1' // Assets/IronSource/Editor/ISVungleAdapterDependencies.xml:8 - implementation 'com.ironsource.adapters:vungleadapter:4.3.20' // Assets/IronSource/Editor/ISVungleAdapterDependencies.xml:8 - implementation 'com.mbridge.msdk.oversea:newinterstitial:16.4.41' // Assets/IronSource/Editor/ISMintegralAdapterDependencies.xml:6 - implementation 'com.mbridge.msdk.oversea:reward:16.4.41' // Assets/IronSource/Editor/ISMintegralAdapterDependencies.xml:12 - implementation 'com.mbridge.msdk.oversea:mbbanner:16.4.41' // Assets/IronSource/Editor/ISMintegralAdapterDependencies.xml:20 - implementation 'com.mbridge.msdk.oversea:mbbid:16.4.41' // Assets/IronSource/Editor/ISMintegralAdapterDependencies.xml:28 - implementation 'androidx.recyclerview:recyclerview:1.2.1' // Assets/IronSource/Editor/ISMintegralAdapterDependencies.xml:36 - implementation 'com.ironsource.adapters:mintegraladapter:4.3.16' // Assets/IronSource/Editor/ISMintegralAdapterDependencies.xml:44 - implementation 'com.ironsource.sdk:mediationsdk:7.3.0.1' // Assets/IronSource/Editor/IronSourceSDKDependencies.xml:9 - implementation 'com.pangle.global:ads-sdk:5.0.0.8' // Assets/IronSource/Editor/ISPangleAdapterDependencies.xml:15 + implementation 'com.ironsource.adapters:admobadapter:4.3.39' // Assets/IronSource/Editor/ISAdMobAdapterDependencies.xml:16 + implementation 'com.ironsource.adapters:applovinadapter:4.3.39' // Assets/IronSource/Editor/ISAppLovinAdapterDependencies.xml:8 + implementation 'com.ironsource.adapters:chartboostadapter:4.3.12' // Assets/IronSource/Editor/ISChartboostAdapterDependencies.xml:8 + implementation 'com.ironsource.adapters:facebookadapter:4.3.44' // Assets/IronSource/Editor/ISFacebookAdapterDependencies.xml:16 + implementation 'com.ironsource.adapters:fyberadapter:4.3.26' // Assets/IronSource/Editor/ISFyberAdapterDependencies.xml:16 + implementation 'com.ironsource.adapters:mintegraladapter:4.3.17' // Assets/IronSource/Editor/ISMintegralAdapterDependencies.xml:48 + implementation 'com.ironsource.adapters:pangleadapter:4.3.20' // Assets/IronSource/Editor/ISPangleAdapterDependencies.xml:8 + implementation 'com.ironsource.adapters:tapjoyadapter:4.1.25' // Assets/IronSource/Editor/ISTapJoyAdapterDependencies.xml:8 + implementation 'com.ironsource.adapters:unityadsadapter:4.3.31' // Assets/IronSource/Editor/ISUnityAdsAdapterDependencies.xml:8 + implementation 'com.ironsource.adapters:vungleadapter:4.3.21' // Assets/IronSource/Editor/ISVungleAdapterDependencies.xml:16 + implementation 'com.ironsource.sdk:mediationsdk:7.3.1.1' // Assets/IronSource/Editor/IronSourceSDKDependencies.xml:9 + implementation 'com.ironsource.unity:adqualitysdk:7.13.0' // Assets/IronSourceAdQuality/Editor/IronSourceAdQualityDependencies.xml:17 + implementation 'com.ironsource:adqualitysdk:7.13.0' // Assets/IronSourceAdQuality/Editor/IronSourceAdQualityDependencies.xml:9 + implementation 'com.mbridge.msdk.oversea:mbbanner:16.4.61' // Assets/IronSource/Editor/ISMintegralAdapterDependencies.xml:24 + implementation 'com.mbridge.msdk.oversea:mbbid:16.4.61' // Assets/IronSource/Editor/ISMintegralAdapterDependencies.xml:32 + implementation 'com.mbridge.msdk.oversea:newinterstitial:16.4.61' // Assets/IronSource/Editor/ISMintegralAdapterDependencies.xml:8 + implementation 'com.mbridge.msdk.oversea:reward:16.4.61' // Assets/IronSource/Editor/ISMintegralAdapterDependencies.xml:16 + implementation 'com.pangle.global:ads-sdk:5.2.0.6' // Assets/IronSource/Editor/ISPangleAdapterDependencies.xml:15 implementation 'com.parse.bolts:bolts-android:1.4.0' // Assets/ThirdParty/FacebookSDK/Plugins/Editor/Dependencies.xml:4 - implementation 'com.tapjoy:tapjoy-android-sdk:12.11.1' // Assets/IronSource/Editor/ISTapJoyAdapterDependencies.xml:15 - implementation 'com.unity3d.ads:unity-ads:4.6.1' // Assets/IronSource/Editor/ISUnityAdsAdapterDependencies.xml:15 - implementation 'com.ironsource.unity:adqualitysdk:7.13.0' // Assets/ThirdParty/IronSourceAdQuality/Editor/IronSourceAdQualityDependencies.xml:17 - implementation 'com.ironsource:adqualitysdk:7.13.0' // Assets/ThirdParty/IronSourceAdQuality/Editor/IronSourceAdQualityDependencies.xml:9 + implementation 'com.tapjoy:tapjoy-android-sdk:13.0.1' // Assets/IronSource/Editor/ISTapJoyAdapterDependencies.xml:15 + implementation 'com.unity3d.ads:unity-ads:4.8.0' // Assets/IronSource/Editor/ISUnityAdsAdapterDependencies.xml:15 + implementation 'com.vungle:publisher-sdk-android:6.12.1' // Assets/IronSource/Editor/ISVungleAdapterDependencies.xml:8 // Android Resolver Dependencies End } android { - compileSdkVersion 31 + compileSdkVersion 33 buildToolsVersion '30.0.2' compileOptions { @@ -118,7 +123,7 @@ android { defaultConfig { minSdkVersion 19 - targetSdkVersion 31 + targetSdkVersion 33 ndk { abiFilters 'armeabi-v7a', 'arm64-v8a' } diff --git a/BFVersions/android/google_common/launcher/build.gradle b/BFVersions/android/google_common/launcher/build.gradle index f6abf5d37..9f3ded6b8 100644 --- a/BFVersions/android/google_common/launcher/build.gradle +++ b/BFVersions/android/google_common/launcher/build.gradle @@ -10,7 +10,7 @@ dependencies { } android { - compileSdkVersion 31 + compileSdkVersion 33 buildToolsVersion '30.0.2' compileOptions { @@ -20,7 +20,7 @@ android { defaultConfig { minSdkVersion 19 - targetSdkVersion 31 + targetSdkVersion 33 applicationId 'REPLACE_APPLICATION_ID' ndk { abiFilters 'armeabi-v7a', 'arm64-v8a' diff --git a/ProjectSettings/AndroidResolverDependencies.xml b/ProjectSettings/AndroidResolverDependencies.xml index 5b6e311ae..16bd92283 100644 --- a/ProjectSettings/AndroidResolverDependencies.xml +++ b/ProjectSettings/AndroidResolverDependencies.xml @@ -7,50 +7,51 @@ com.android.support:cardview-v7:25.3.1 com.android.support:customtabs:25.3.1 com.android.support:support-v4:25.3.1 - com.applovin:applovin-sdk:11.7.1 + com.applovin:applovin-sdk:11.10.1 + com.applovin:applovin-sdk:11.4.4 com.appsflyer:adrevenue:6.5.4 com.appsflyer:af-android-sdk:6.4.1 com.appsflyer:unity-adrevenue-generic-wrapper:6.5.4 com.appsflyer:unity-wrapper:6.4.1 - com.chartboost:chartboost-sdk:9.2.0 - com.facebook.android:audience-network-sdk:6.12.0 + com.chartboost:chartboost-sdk:9.3.1 + com.facebook.android:audience-network-sdk:6.15.0 com.facebook.android:facebook-applinks:[15.1,16) com.facebook.android:facebook-core:[15.1,16) com.facebook.android:facebook-gamingservices:[15.1,16) com.facebook.android:facebook-login:[15.1,16) com.facebook.android:facebook-share:[15.1,16) - com.fyber:marketplace-sdk:8.2.2 - com.google.android.gms:play-services-ads:21.5.0 + com.fyber:marketplace-sdk:8.2.3 + com.google.android.gms:play-services-ads:22.2.0 com.google.android.gms:play-services-ads-identifier:18.0.1 com.google.android.gms:play-services-basement:18.1.0 com.ironsource.adapters:adcolonyadapter:4.3.14 - com.ironsource.adapters:admobadapter:4.3.35 - com.ironsource.adapters:applovinadapter:4.3.37 - com.ironsource.adapters:chartboostadapter:4.3.11 - com.ironsource.adapters:facebookadapter:4.3.39 - com.ironsource.adapters:fyberadapter:4.3.24 - com.ironsource.adapters:mintegraladapter:4.3.16 - com.ironsource.adapters:pangleadapter:4.3.17 - com.ironsource.adapters:tapjoyadapter:4.1.24 - com.ironsource.adapters:unityadsadapter:4.3.27 - com.ironsource.adapters:vungleadapter:4.3.20 - com.ironsource.sdk:mediationsdk:7.3.0.1 + com.ironsource.adapters:admobadapter:4.3.39 + com.ironsource.adapters:applovinadapter:4.3.39 + com.ironsource.adapters:chartboostadapter:4.3.12 + com.ironsource.adapters:facebookadapter:4.3.44 + com.ironsource.adapters:fyberadapter:4.3.26 + com.ironsource.adapters:mintegraladapter:4.3.17 + com.ironsource.adapters:pangleadapter:4.3.20 + com.ironsource.adapters:tapjoyadapter:4.1.25 + com.ironsource.adapters:unityadsadapter:4.3.31 + com.ironsource.adapters:vungleadapter:4.3.21 + com.ironsource.sdk:mediationsdk:7.3.1.1 com.ironsource.unity:adqualitysdk:7.13.0 com.ironsource:adqualitysdk:7.13.0 - com.mbridge.msdk.oversea:mbbanner:16.4.41 - com.mbridge.msdk.oversea:mbbid:16.4.41 - com.mbridge.msdk.oversea:newinterstitial:16.4.41 - com.mbridge.msdk.oversea:reward:16.4.41 - com.pangle.global:ads-sdk:5.0.0.8 + com.mbridge.msdk.oversea:mbbanner:16.4.61 + com.mbridge.msdk.oversea:mbbid:16.4.61 + com.mbridge.msdk.oversea:newinterstitial:16.4.61 + com.mbridge.msdk.oversea:reward:16.4.61 + com.pangle.global:ads-sdk:5.2.0.6 com.parse.bolts:bolts-android:1.4.0 - com.tapjoy:tapjoy-android-sdk:12.11.1 - com.unity3d.ads:unity-ads:4.6.1 + com.tapjoy:tapjoy-android-sdk:13.0.1 + com.unity3d.ads:unity-ads:4.8.0 com.vungle:publisher-sdk-android:6.12.1 - - + +