删除adQuality
This commit is contained in:
parent
9d5afff839
commit
f0f95f01d7
@ -36,11 +36,11 @@ namespace BF
|
||||
IronSource.Agent.setManualLoadRewardedVideo(true);
|
||||
|
||||
// 初始化之前先设置一下用户id
|
||||
ISAdQualityConfig adQualityConfig = new ISAdQualityConfig();
|
||||
adQualityConfig.UserId = SystemInfo.deviceUniqueIdentifier;
|
||||
// adQualityConfig.TestMode = true;
|
||||
// adQualityConfig.LogLevel = ISAdQualityLogLevel.INFO;
|
||||
IronSourceAdQuality.Initialize(appKey, adQualityConfig);
|
||||
// ISAdQualityConfig adQualityConfig = new ISAdQualityConfig();
|
||||
// adQualityConfig.UserId = SystemInfo.deviceUniqueIdentifier;
|
||||
// // adQualityConfig.TestMode = true;
|
||||
// // adQualityConfig.LogLevel = ISAdQualityLogLevel.INFO;
|
||||
// IronSourceAdQuality.Initialize(appKey, adQualityConfig);
|
||||
#elif UNITY_IPHONE
|
||||
// string appKey = "8545d445";
|
||||
// 初始化之前先设置一下用户id
|
||||
|
||||
8
Assets/ThirdParty/IronSourceAdQuality.meta
vendored
8
Assets/ThirdParty/IronSourceAdQuality.meta
vendored
@ -1,8 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: cd642f9c5d7126f47898e5dc9520a8ff
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@ -1,8 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 6ee27eb8be2558e4482bcaa12bbd4781
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@ -1,36 +0,0 @@
|
||||
<dependencies>
|
||||
<unityversion>7.13.0</unityversion>
|
||||
|
||||
<androidPackages>
|
||||
<androidPackage spec="com.ironsource:adqualitysdk:7.13.0">
|
||||
<repositories>
|
||||
<repository>https://android-sdk.is.com/</repository>
|
||||
</repositories>
|
||||
</androidPackage>
|
||||
</androidPackages>
|
||||
|
||||
<androidPackages>
|
||||
<androidPackage spec="com.ironsource.unity:adqualitysdk:7.13.0">
|
||||
<repositories>
|
||||
<repository>https://android-sdk.is.com/</repository>
|
||||
</repositories>
|
||||
</androidPackage>
|
||||
</androidPackages>
|
||||
|
||||
<!-- <iosPods>
|
||||
<iosPod name="IronSourceAdQualitySDK" version="7.13.0">
|
||||
<sources>
|
||||
<source>https://github.com/CocoaPods/Specs</source>
|
||||
</sources>
|
||||
</iosPod>
|
||||
</iosPods>
|
||||
|
||||
<iosPods>
|
||||
<iosPod name="IronSourceAdQualityUnityBridge" version="7.13.0">
|
||||
<sources>
|
||||
<source>https://github.com/CocoaPods/Specs</source>
|
||||
</sources>
|
||||
</iosPod>
|
||||
</iosPods> -->
|
||||
|
||||
</dependencies>
|
||||
@ -1,7 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 0caf106b327a046c5b374834523d4477
|
||||
TextScriptImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@ -1,8 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: c104a6ee5617fb048acdd3b2f1cbc512
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@ -1,8 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: ae460004d99634df8a86e07e1a01faa5
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@ -1,6 +0,0 @@
|
||||
using System;
|
||||
public enum ISAdQualityDeviceIdType {
|
||||
NONE = 0,
|
||||
GAID = 1,
|
||||
IDFA = 2
|
||||
};
|
||||
@ -1,11 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 92d1c3826af024ff1a77c6c7d7983c7d
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@ -1,16 +0,0 @@
|
||||
using System;
|
||||
public enum ISAdQualityAdType {
|
||||
UNKNOWN = -1,
|
||||
RICH_MEDIA = 0,
|
||||
INTERSTITIAL = 1,
|
||||
APP_WALL = 2,
|
||||
VIDEO = 3,
|
||||
REWARDED_VIDEO = 4,
|
||||
NATIVE = 5,
|
||||
BANNER = 6,
|
||||
OFFER_WALL = 7,
|
||||
NATIVE_HTML = 8,
|
||||
EXTERNAL = 9,
|
||||
REWARDED = 10,
|
||||
INTERACTIVE = 11
|
||||
};
|
||||
@ -1,11 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 08e1a7bef35354a1883fab85829a4273
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@ -1,53 +0,0 @@
|
||||
#if UNITY_ANDROID
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using UnityEngine.Scripting;
|
||||
|
||||
[Preserve]
|
||||
public class ISAdQualityAndroidInitHandler : AndroidJavaProxy
|
||||
{
|
||||
private const string IRON_SOURCE_AD_QUALITY_CLASS = "com.ironsource.adqualitysdk.sdk.unity.IronSourceAdQuality";
|
||||
private const string UNITY_IS_AD_QUALITY_INIT_LISTENER = "com.ironsource.adqualitysdk.sdk.unity.UnityISAdQualityInitListener";
|
||||
|
||||
public event Action OnAdQualitySdkInitSuccess = delegate { };
|
||||
public event Action<ISAdQualityInitError, string> OnAdQualitySdkInitFailed = delegate { };
|
||||
|
||||
//implements UnityISAdQualityInitListener java interface
|
||||
public ISAdQualityAndroidInitHandler(): base(UNITY_IS_AD_QUALITY_INIT_LISTENER)
|
||||
{
|
||||
#if !UNITY_EDITOR
|
||||
try
|
||||
{
|
||||
using (var jniAdQualityClass = new AndroidJavaClass(IRON_SOURCE_AD_QUALITY_CLASS))
|
||||
{
|
||||
jniAdQualityClass.CallStatic("setUnityISAdQualityInitListener", this);
|
||||
}
|
||||
}
|
||||
catch(Exception e)
|
||||
{
|
||||
Debug.LogError("setUnityISAdQualityInitListener method doesn't exist, error: " + e.Message);
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
[Preserve]
|
||||
public void adQualitySdkInitSuccess()
|
||||
{
|
||||
if (this.OnAdQualitySdkInitSuccess != null)
|
||||
{
|
||||
this.OnAdQualitySdkInitSuccess();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
[Preserve]
|
||||
public void adQualitySdkInitFailed(int adQualitySdkInitError, string errorMessage)
|
||||
{
|
||||
if (this.OnAdQualitySdkInitFailed != null)
|
||||
{
|
||||
this.OnAdQualitySdkInitFailed((ISAdQualityInitError)adQualitySdkInitError, errorMessage);
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
@ -1,11 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: c70eb41427c4848d391fa9e66f60daf3
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@ -1,118 +0,0 @@
|
||||
using System;
|
||||
using UnityEngine;
|
||||
|
||||
public class ISAdQualityConfig
|
||||
{
|
||||
private String userId;
|
||||
private bool userIdSet;
|
||||
private bool testMode;
|
||||
private ISAdQualityInitCallback adQualityInitCallback;
|
||||
private ISAdQualityLogLevel logLevel;
|
||||
private String initializationSource;
|
||||
private bool coppa;
|
||||
private ISAdQualityDeviceIdType deviceIdType;
|
||||
|
||||
public ISAdQualityConfig()
|
||||
{
|
||||
userId = null;
|
||||
testMode = false;
|
||||
userIdSet = false;
|
||||
logLevel = ISAdQualityLogLevel.INFO;
|
||||
coppa = false;
|
||||
deviceIdType = ISAdQualityDeviceIdType.NONE;
|
||||
initializationSource = null;
|
||||
}
|
||||
|
||||
public String UserId
|
||||
{
|
||||
get
|
||||
{
|
||||
return userId;
|
||||
}
|
||||
set
|
||||
{
|
||||
userIdSet = true;
|
||||
userId = value;
|
||||
}
|
||||
}
|
||||
|
||||
internal bool UserIdSet
|
||||
{
|
||||
get
|
||||
{
|
||||
return userIdSet;
|
||||
}
|
||||
}
|
||||
|
||||
public bool TestMode
|
||||
{
|
||||
get
|
||||
{
|
||||
return testMode;
|
||||
}
|
||||
set
|
||||
{
|
||||
testMode = value;
|
||||
}
|
||||
}
|
||||
|
||||
public ISAdQualityLogLevel LogLevel
|
||||
{
|
||||
get
|
||||
{
|
||||
return logLevel;
|
||||
}
|
||||
set
|
||||
{
|
||||
logLevel = value;
|
||||
}
|
||||
}
|
||||
|
||||
public ISAdQualityInitCallback AdQualityInitCallback
|
||||
{
|
||||
get
|
||||
{
|
||||
return adQualityInitCallback;
|
||||
}
|
||||
set
|
||||
{
|
||||
adQualityInitCallback = value;
|
||||
}
|
||||
}
|
||||
|
||||
public String InitializationSource
|
||||
{
|
||||
get
|
||||
{
|
||||
return initializationSource;
|
||||
}
|
||||
set
|
||||
{
|
||||
initializationSource = value;
|
||||
}
|
||||
}
|
||||
|
||||
public bool Coppa
|
||||
{
|
||||
get
|
||||
{
|
||||
return coppa;
|
||||
}
|
||||
set
|
||||
{
|
||||
coppa = value;
|
||||
}
|
||||
}
|
||||
|
||||
public ISAdQualityDeviceIdType DeviceIdType
|
||||
{
|
||||
get
|
||||
{
|
||||
return deviceIdType;
|
||||
}
|
||||
set
|
||||
{
|
||||
deviceIdType = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -1,11 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 6ee3acefb6d46481191afc81fb1e4865
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@ -1,66 +0,0 @@
|
||||
using System;
|
||||
using UnityEngine;
|
||||
|
||||
public class ISAdQualityCustomMediationRevenue
|
||||
{
|
||||
private ISAdQualityMediationNetwork mediationNetwork;
|
||||
private ISAdQualityAdType adType;
|
||||
private double revenue;
|
||||
private String placement;
|
||||
|
||||
public ISAdQualityCustomMediationRevenue()
|
||||
{
|
||||
mediationNetwork = ISAdQualityMediationNetwork.UNKNOWN;
|
||||
adType = ISAdQualityAdType.UNKNOWN;
|
||||
revenue = 0;
|
||||
placement = null;
|
||||
}
|
||||
|
||||
public ISAdQualityMediationNetwork MediationNetwork
|
||||
{
|
||||
get
|
||||
{
|
||||
return mediationNetwork;
|
||||
}
|
||||
set
|
||||
{
|
||||
mediationNetwork = value;
|
||||
}
|
||||
}
|
||||
|
||||
public ISAdQualityAdType AdType
|
||||
{
|
||||
get
|
||||
{
|
||||
return adType;
|
||||
}
|
||||
set
|
||||
{
|
||||
adType = value;
|
||||
}
|
||||
}
|
||||
|
||||
public double Revenue
|
||||
{
|
||||
get
|
||||
{
|
||||
return revenue;
|
||||
}
|
||||
set
|
||||
{
|
||||
revenue = value;
|
||||
}
|
||||
}
|
||||
|
||||
public String Placement
|
||||
{
|
||||
get
|
||||
{
|
||||
return placement;
|
||||
}
|
||||
set
|
||||
{
|
||||
placement = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -1,11 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 8bb7937cdf9c640cf8ee92ed1fa34227
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@ -1,8 +0,0 @@
|
||||
using System;
|
||||
using UnityEngine;
|
||||
|
||||
public interface ISAdQualityInitCallback
|
||||
{
|
||||
void adQualitySdkInitSuccess();
|
||||
void adQualitySdkInitFailed(ISAdQualityInitError adQualityInitError, string errorMessage);
|
||||
}
|
||||
@ -1,11 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 894fc956cbe6c43e385333baa4651e56
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@ -1,88 +0,0 @@
|
||||
using UnityEngine;
|
||||
using System;
|
||||
|
||||
public class ISAdQualityInitCallbackWrapper : MonoBehaviour
|
||||
{
|
||||
private ISAdQualityInitCallback mCallback;
|
||||
|
||||
#if UNITY_ANDROID
|
||||
private ISAdQualityAndroidInitHandler adQualityAndroidInitHandler;
|
||||
#endif
|
||||
|
||||
#if UNITY_IPHONE || UNITY_IOS
|
||||
// private ISAdQualityiOSInitHandler adQualityiOSInitHandler;
|
||||
#endif
|
||||
|
||||
public ISAdQualityInitCallback AdQualityInitCallback
|
||||
{
|
||||
set
|
||||
{
|
||||
mCallback = value;
|
||||
}
|
||||
get
|
||||
{
|
||||
return mCallback;
|
||||
}
|
||||
}
|
||||
|
||||
void Awake ()
|
||||
{
|
||||
#if UNITY_ANDROID
|
||||
adQualityAndroidInitHandler = new ISAdQualityAndroidInitHandler(); //sets this.adQualityAndroidInitHandler as listener for init events on the bridge
|
||||
registerAdQualityAndroidInitEvents();
|
||||
#endif
|
||||
|
||||
#if UNITY_IPHONE || UNITY_IOS
|
||||
// registerAdQualityiOSInitEvents();
|
||||
// adQualityiOSInitHandler = new ISAdQualityiOSInitHandler(); //sets this.adQualityiOSInit as listener for init events on the bridge
|
||||
#endif
|
||||
DontDestroyOnLoad(gameObject); //Makes the object not be destroyed automatically when loading a new scene.
|
||||
}
|
||||
|
||||
private void adQualitySdkInitSuccess()
|
||||
{
|
||||
if (mCallback != null)
|
||||
{
|
||||
mCallback.adQualitySdkInitSuccess();
|
||||
}
|
||||
}
|
||||
|
||||
private void onAdQualitySdkInitFailed(ISAdQualityInitError sdkInitError, string errorMsg)
|
||||
{
|
||||
if (mCallback != null)
|
||||
{
|
||||
mCallback.adQualitySdkInitFailed(sdkInitError, errorMsg);
|
||||
}
|
||||
}
|
||||
|
||||
#if UNITY_ANDROID
|
||||
//subscribe to ISAdQualityAndroidInitHandler events
|
||||
private void registerAdQualityAndroidInitEvents() {
|
||||
adQualityAndroidInitHandler.OnAdQualitySdkInitSuccess += () =>
|
||||
{
|
||||
adQualitySdkInitSuccess();
|
||||
};
|
||||
|
||||
adQualityAndroidInitHandler.OnAdQualitySdkInitFailed += (sdkInitError, errorMsg) =>
|
||||
{
|
||||
onAdQualitySdkInitFailed(sdkInitError, errorMsg);
|
||||
};
|
||||
}
|
||||
#endif
|
||||
|
||||
#if UNITY_IPHONE || UNITY_IOS
|
||||
//subscribe to ISAdQualityiOSInitHandler events
|
||||
// private void registerAdQualityiOSInitEvents() {
|
||||
// ISAdQualityiOSInitHandler.OnAdQualitySdkInitSuccess += () =>
|
||||
// {
|
||||
// adQualitySdkInitSuccess();
|
||||
// };
|
||||
|
||||
// ISAdQualityiOSInitHandler.OnAdQualitySdkInitFailed += (sdkInitError, errorMsg) =>
|
||||
// {
|
||||
// onAdQualitySdkInitFailed(sdkInitError, errorMsg);
|
||||
// };
|
||||
// }
|
||||
#endif
|
||||
|
||||
}
|
||||
@ -1,11 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 1f5c838c5a8ff40529569d29728deec4
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@ -1,14 +0,0 @@
|
||||
using System;
|
||||
|
||||
public enum ISAdQualityInitError {
|
||||
AD_QUALITY_SDK_WAS_SHUTDOWN = 0,
|
||||
ILLEGAL_USER_ID = 1,
|
||||
ILLEGAL_APP_KEY = 2,
|
||||
EXCEPTION_ON_INIT = 3,
|
||||
NO_NETWORK_CONNECTION = 4,
|
||||
CONFIG_LOAD_TIMEOUT = 5,
|
||||
CONNECTOR_LOAD_TIMEOUT = 6,
|
||||
AD_NETWORK_VERSION_NOT_SUPPORTED_YET = 7,
|
||||
AD_NETWORK_SDK_REQUIRES_NEWER_AD_QUALITY_SDK = 8,
|
||||
AD_QUALITY_ALREADY_INITIALIZED = 9
|
||||
};
|
||||
@ -1,11 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 6da8d8e07e45042f197fc5f6304a9d62
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@ -1,495 +0,0 @@
|
||||
/*
|
||||
* Based on the miniJSON by Calvin Rien
|
||||
*/
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Globalization;
|
||||
using System.IO;
|
||||
using System.Text;
|
||||
|
||||
namespace ISAdQualityJSON
|
||||
{
|
||||
public static class Json
|
||||
{
|
||||
public static object Deserialize (string json)
|
||||
{
|
||||
if (json == null) {
|
||||
return null;
|
||||
}
|
||||
return Parser.Parse (json);
|
||||
}
|
||||
|
||||
sealed class Parser : IDisposable
|
||||
{
|
||||
const string WHITE_SPACE = " \t\n\r";
|
||||
const string WORD_BREAK = " \t\n\r{}[],:\"";
|
||||
|
||||
enum TOKEN
|
||||
{
|
||||
NONE,
|
||||
CURLY_OPEN,
|
||||
CURLY_CLOSE,
|
||||
SQUARED_OPEN,
|
||||
SQUARED_CLOSE,
|
||||
COLON,
|
||||
COMMA,
|
||||
STRING,
|
||||
NUMBER,
|
||||
TRUE,
|
||||
FALSE,
|
||||
NULL
|
||||
}
|
||||
;
|
||||
|
||||
StringReader json;
|
||||
|
||||
Parser (string jsonString)
|
||||
{
|
||||
json = new StringReader (jsonString);
|
||||
}
|
||||
|
||||
public static object Parse (string jsonString)
|
||||
{
|
||||
using (var instance = new Parser(jsonString)) {
|
||||
return instance.ParseValue ();
|
||||
}
|
||||
}
|
||||
|
||||
public void Dispose ()
|
||||
{
|
||||
json.Dispose ();
|
||||
json = null;
|
||||
}
|
||||
|
||||
Dictionary<string, object> ParseObject ()
|
||||
{
|
||||
Dictionary<string, object> table = new Dictionary<string, object> ();
|
||||
|
||||
// ditch opening brace
|
||||
json.Read ();
|
||||
|
||||
// {
|
||||
while (true) {
|
||||
switch (NextToken) {
|
||||
case TOKEN.NONE:
|
||||
return null;
|
||||
case TOKEN.COMMA:
|
||||
continue;
|
||||
case TOKEN.CURLY_CLOSE:
|
||||
return table;
|
||||
default:
|
||||
// name
|
||||
string name = ParseString ();
|
||||
if (name == null) {
|
||||
return null;
|
||||
}
|
||||
|
||||
// :
|
||||
if (NextToken != TOKEN.COLON) {
|
||||
return null;
|
||||
}
|
||||
// ditch the colon
|
||||
json.Read ();
|
||||
|
||||
// value
|
||||
table [name] = ParseValue ();
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
List<object> ParseArray ()
|
||||
{
|
||||
List<object> array = new List<object> ();
|
||||
|
||||
// ditch opening bracket
|
||||
json.Read ();
|
||||
|
||||
// [
|
||||
var parsing = true;
|
||||
while (parsing) {
|
||||
TOKEN nextToken = NextToken;
|
||||
|
||||
switch (nextToken) {
|
||||
case TOKEN.NONE:
|
||||
return null;
|
||||
case TOKEN.COMMA:
|
||||
continue;
|
||||
case TOKEN.SQUARED_CLOSE:
|
||||
parsing = false;
|
||||
break;
|
||||
default:
|
||||
object value = ParseByToken (nextToken);
|
||||
|
||||
array.Add (value);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
return array;
|
||||
}
|
||||
|
||||
object ParseValue ()
|
||||
{
|
||||
TOKEN nextToken = NextToken;
|
||||
return ParseByToken (nextToken);
|
||||
}
|
||||
|
||||
object ParseByToken (TOKEN token)
|
||||
{
|
||||
switch (token) {
|
||||
case TOKEN.STRING:
|
||||
return ParseString ();
|
||||
case TOKEN.NUMBER:
|
||||
return ParseNumber ();
|
||||
case TOKEN.CURLY_OPEN:
|
||||
return ParseObject ();
|
||||
case TOKEN.SQUARED_OPEN:
|
||||
return ParseArray ();
|
||||
case TOKEN.TRUE:
|
||||
return true;
|
||||
case TOKEN.FALSE:
|
||||
return false;
|
||||
case TOKEN.NULL:
|
||||
return null;
|
||||
default:
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
string ParseString ()
|
||||
{
|
||||
StringBuilder s = new StringBuilder ();
|
||||
char c;
|
||||
|
||||
// ditch opening quote
|
||||
json.Read ();
|
||||
|
||||
bool parsing = true;
|
||||
while (parsing) {
|
||||
|
||||
if (json.Peek () == -1) {
|
||||
parsing = false;
|
||||
break;
|
||||
}
|
||||
|
||||
c = NextChar;
|
||||
switch (c) {
|
||||
case '"':
|
||||
parsing = false;
|
||||
break;
|
||||
case '\\':
|
||||
if (json.Peek () == -1) {
|
||||
parsing = false;
|
||||
break;
|
||||
}
|
||||
|
||||
c = NextChar;
|
||||
switch (c) {
|
||||
case '"':
|
||||
case '\\':
|
||||
case '/':
|
||||
s.Append (c);
|
||||
break;
|
||||
case 'b':
|
||||
s.Append ('\b');
|
||||
break;
|
||||
case 'f':
|
||||
s.Append ('\f');
|
||||
break;
|
||||
case 'n':
|
||||
s.Append ('\n');
|
||||
break;
|
||||
case 'r':
|
||||
s.Append ('\r');
|
||||
break;
|
||||
case 't':
|
||||
s.Append ('\t');
|
||||
break;
|
||||
case 'u':
|
||||
var hex = new StringBuilder ();
|
||||
|
||||
for (int i=0; i< 4; i++) {
|
||||
hex.Append (NextChar);
|
||||
}
|
||||
|
||||
s.Append ((char)Convert.ToInt32 (hex.ToString (), 16));
|
||||
break;
|
||||
}
|
||||
break;
|
||||
default:
|
||||
s.Append (c);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
return s.ToString ();
|
||||
}
|
||||
|
||||
object ParseNumber ()
|
||||
{
|
||||
string number = NextWord;
|
||||
|
||||
if (number.IndexOf ('.') == -1) {
|
||||
long parsedInt;
|
||||
Int64.TryParse (number, NumberStyles.Any, CultureInfo.InvariantCulture, out parsedInt);
|
||||
return parsedInt;
|
||||
}
|
||||
|
||||
double parsedDouble;
|
||||
Double.TryParse (number, NumberStyles.Any, CultureInfo.InvariantCulture, out parsedDouble);
|
||||
return parsedDouble;
|
||||
}
|
||||
|
||||
void EatWhitespace ()
|
||||
{
|
||||
while (WHITE_SPACE.IndexOf(PeekChar) != -1) {
|
||||
json.Read ();
|
||||
|
||||
if (json.Peek () == -1) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
char PeekChar {
|
||||
get {
|
||||
return Convert.ToChar (json.Peek ());
|
||||
}
|
||||
}
|
||||
|
||||
char NextChar {
|
||||
get {
|
||||
return Convert.ToChar (json.Read ());
|
||||
}
|
||||
}
|
||||
|
||||
string NextWord {
|
||||
get {
|
||||
StringBuilder word = new StringBuilder ();
|
||||
|
||||
while (WORD_BREAK.IndexOf(PeekChar) == -1) {
|
||||
word.Append (NextChar);
|
||||
|
||||
if (json.Peek () == -1) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
return word.ToString ();
|
||||
}
|
||||
}
|
||||
|
||||
TOKEN NextToken {
|
||||
get {
|
||||
EatWhitespace ();
|
||||
|
||||
if (json.Peek () == -1) {
|
||||
return TOKEN.NONE;
|
||||
}
|
||||
|
||||
char c = PeekChar;
|
||||
switch (c) {
|
||||
case '{':
|
||||
return TOKEN.CURLY_OPEN;
|
||||
case '}':
|
||||
json.Read ();
|
||||
return TOKEN.CURLY_CLOSE;
|
||||
case '[':
|
||||
return TOKEN.SQUARED_OPEN;
|
||||
case ']':
|
||||
json.Read ();
|
||||
return TOKEN.SQUARED_CLOSE;
|
||||
case ',':
|
||||
json.Read ();
|
||||
return TOKEN.COMMA;
|
||||
case '"':
|
||||
return TOKEN.STRING;
|
||||
case ':':
|
||||
return TOKEN.COLON;
|
||||
case '0':
|
||||
case '1':
|
||||
case '2':
|
||||
case '3':
|
||||
case '4':
|
||||
case '5':
|
||||
case '6':
|
||||
case '7':
|
||||
case '8':
|
||||
case '9':
|
||||
case '-':
|
||||
return TOKEN.NUMBER;
|
||||
}
|
||||
|
||||
string word = NextWord;
|
||||
|
||||
switch (word) {
|
||||
case "false":
|
||||
return TOKEN.FALSE;
|
||||
case "true":
|
||||
return TOKEN.TRUE;
|
||||
case "null":
|
||||
return TOKEN.NULL;
|
||||
}
|
||||
|
||||
return TOKEN.NONE;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Converts a IDictionary / IList object or a simple type (string, int, etc.) into a JSON string
|
||||
/// </summary>
|
||||
/// <param name="json">A Dictionary<string, object> / List<object></param>
|
||||
/// <returns>A JSON encoded string, or null if object 'json' is not serializable</returns>
|
||||
public static string Serialize (object obj)
|
||||
{
|
||||
return Serializer.Serialize (obj);
|
||||
}
|
||||
|
||||
sealed class Serializer
|
||||
{
|
||||
StringBuilder builder;
|
||||
|
||||
Serializer ()
|
||||
{
|
||||
builder = new StringBuilder ();
|
||||
}
|
||||
|
||||
public static string Serialize (object obj)
|
||||
{
|
||||
var instance = new Serializer ();
|
||||
|
||||
instance.SerializeValue (obj);
|
||||
|
||||
return instance.builder.ToString ();
|
||||
}
|
||||
|
||||
void SerializeValue (object value)
|
||||
{
|
||||
IList asList;
|
||||
IDictionary asDict;
|
||||
string asStr;
|
||||
|
||||
if (value == null) {
|
||||
builder.Append ("null");
|
||||
} else if ((asStr = value as string) != null) {
|
||||
SerializeString (asStr);
|
||||
} else if (value is bool) {
|
||||
builder.Append (value.ToString ().ToLower ());
|
||||
} else if ((asList = value as IList) != null) {
|
||||
SerializeArray (asList);
|
||||
} else if ((asDict = value as IDictionary) != null) {
|
||||
SerializeObject (asDict);
|
||||
} else if (value is char) {
|
||||
SerializeString (value.ToString ());
|
||||
} else {
|
||||
SerializeOther (value);
|
||||
}
|
||||
}
|
||||
|
||||
void SerializeObject (IDictionary obj)
|
||||
{
|
||||
bool first = true;
|
||||
|
||||
builder.Append ('{');
|
||||
|
||||
foreach (object e in obj.Keys) {
|
||||
if (!first) {
|
||||
builder.Append (',');
|
||||
}
|
||||
|
||||
SerializeString (e.ToString ());
|
||||
builder.Append (':');
|
||||
|
||||
SerializeValue (obj [e]);
|
||||
|
||||
first = false;
|
||||
}
|
||||
|
||||
builder.Append ('}');
|
||||
}
|
||||
|
||||
void SerializeArray (IList anArray)
|
||||
{
|
||||
builder.Append ('[');
|
||||
|
||||
bool first = true;
|
||||
|
||||
foreach (object obj in anArray) {
|
||||
if (!first) {
|
||||
builder.Append (',');
|
||||
}
|
||||
|
||||
SerializeValue (obj);
|
||||
|
||||
first = false;
|
||||
}
|
||||
|
||||
builder.Append (']');
|
||||
}
|
||||
|
||||
void SerializeString (string str)
|
||||
{
|
||||
builder.Append ('\"');
|
||||
|
||||
char[] charArray = str.ToCharArray ();
|
||||
foreach (var c in charArray) {
|
||||
switch (c) {
|
||||
case '"':
|
||||
builder.Append ("\\\"");
|
||||
break;
|
||||
case '\\':
|
||||
builder.Append ("\\\\");
|
||||
break;
|
||||
case '\b':
|
||||
builder.Append ("\\b");
|
||||
break;
|
||||
case '\f':
|
||||
builder.Append ("\\f");
|
||||
break;
|
||||
case '\n':
|
||||
builder.Append ("\\n");
|
||||
break;
|
||||
case '\r':
|
||||
builder.Append ("\\r");
|
||||
break;
|
||||
case '\t':
|
||||
builder.Append ("\\t");
|
||||
break;
|
||||
default:
|
||||
int codepoint = Convert.ToInt32 (c);
|
||||
if ((codepoint >= 32) && (codepoint <= 126)) {
|
||||
builder.Append (c);
|
||||
} else {
|
||||
builder.Append ("\\u" + Convert.ToString (codepoint, 16).PadLeft (4, '0'));
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
builder.Append ('\"');
|
||||
}
|
||||
|
||||
void SerializeOther (object value)
|
||||
{
|
||||
if (value is float
|
||||
|| value is int
|
||||
|| value is uint
|
||||
|| value is long
|
||||
|| value is double
|
||||
|| value is sbyte
|
||||
|| value is byte
|
||||
|| value is short
|
||||
|| value is ushort
|
||||
|| value is ulong
|
||||
|| value is decimal) {
|
||||
builder.Append (value.ToString ());
|
||||
} else {
|
||||
SerializeString (value.ToString ());
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -1,11 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: a80f212ad97ca4136b919689ba6ad522
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@ -1,9 +0,0 @@
|
||||
using System;
|
||||
public enum ISAdQualityLogLevel {
|
||||
NONE = 0,
|
||||
ERROR = 1,
|
||||
WARNING = 2,
|
||||
INFO = 3,
|
||||
DEBUG = 4,
|
||||
VERBOSE = 5
|
||||
};
|
||||
@ -1,11 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: c958a1a9721494cefb50a4fad4b6bb8b
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@ -1,12 +0,0 @@
|
||||
using System;
|
||||
public enum ISAdQualityMediationNetwork {
|
||||
UNKNOWN = -1,
|
||||
ADMOB = 0,
|
||||
DT_FAIR_BID = 1,
|
||||
HELIUM = 2,
|
||||
LEVEL_PLAY = 3,
|
||||
MAX = 4,
|
||||
UNITY = 5,
|
||||
SELF_MEDIATED = 6,
|
||||
OTHER = 7
|
||||
};
|
||||
@ -1,11 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: b1c44dbefc86f46d7a84660f64b9ba47
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@ -1,66 +0,0 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using System.Linq;
|
||||
|
||||
public class ISAdQualitySegment
|
||||
{
|
||||
public string name = null;
|
||||
public int age;
|
||||
public string gender = null;
|
||||
public int level;
|
||||
public int isPaying;
|
||||
public double inAppPurchasesTotal;
|
||||
public long userCreationDate;
|
||||
public Dictionary<string,string> customs;
|
||||
|
||||
public ISAdQualitySegment ()
|
||||
{
|
||||
age = -1;
|
||||
level = -1;
|
||||
isPaying = -1;
|
||||
inAppPurchasesTotal = -1;
|
||||
userCreationDate = -1;
|
||||
customs = new Dictionary<string,string> ();
|
||||
}
|
||||
|
||||
public void setCustom(string key, string value){
|
||||
customs.Add (key, value);
|
||||
}
|
||||
|
||||
public Dictionary<string,string> getSegmentAsDict ()
|
||||
{
|
||||
Dictionary<string,string> dict = new Dictionary<string,string> ();
|
||||
if (!string.IsNullOrEmpty(name))
|
||||
{
|
||||
dict.Add ("name", name);
|
||||
}
|
||||
if (age != -1)
|
||||
{
|
||||
dict.Add ("age", age + "");
|
||||
}
|
||||
if (!string.IsNullOrEmpty(gender))
|
||||
{
|
||||
dict.Add ("gender", gender);
|
||||
}
|
||||
if (level != -1)
|
||||
{
|
||||
dict.Add ("level", level + "");
|
||||
}
|
||||
if (isPaying > -1 && isPaying < 2)
|
||||
{
|
||||
dict.Add ("isPaying", isPaying + "");
|
||||
}
|
||||
if (inAppPurchasesTotal > -1)
|
||||
{
|
||||
dict.Add ("iapt", inAppPurchasesTotal + "");
|
||||
}
|
||||
if (userCreationDate != -1)
|
||||
{
|
||||
dict.Add ("userCreationDate", userCreationDate + "");
|
||||
}
|
||||
Dictionary<string,string> result = dict.Concat(customs).GroupBy(d => d.Key).ToDictionary(d => d.Key, d => d.First().Value);
|
||||
return result;
|
||||
}
|
||||
|
||||
}
|
||||
@ -1,11 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: bbf07b143b428454a85a0dccbb3bd7b0
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@ -1,57 +0,0 @@
|
||||
using UnityEngine;
|
||||
using System.Collections.Generic;
|
||||
using System;
|
||||
|
||||
public static class ISAdQualityUtils {
|
||||
|
||||
private static bool isDebugBuild = false;
|
||||
private static bool isDebugBuildSet = false;
|
||||
/// <summary>
|
||||
/// Creates Log Debug message according to given tag and message.
|
||||
/// </summary>
|
||||
/// <param name="tag">The name of the class whose instance called this function.</param>
|
||||
/// <param name="message">Debug message to output to log.</param>
|
||||
public static void LogDebug(string tag, string message)
|
||||
{
|
||||
if (!isDebugBuildSet)
|
||||
{
|
||||
try //Debug.isDebugBuild can fail on WP8 if it is not called from the Main Thread
|
||||
{
|
||||
isDebugBuild = Debug.isDebugBuild;
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
isDebugBuild = true;
|
||||
Debug.Log(string.Format("{0} {1}", tag, e.Message));
|
||||
}
|
||||
isDebugBuildSet = true;
|
||||
}
|
||||
if (isDebugBuild)
|
||||
{
|
||||
Debug.Log(string.Format("{0} {1}", tag, message));
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Creates Log Error message according to given tag and message.
|
||||
/// </summary>
|
||||
/// <param name="tag">The name of the class whose instance called this function..</param>
|
||||
/// <param name="message">Error message to output to log.</param>
|
||||
public static void LogError(string tag, string message) {
|
||||
Debug.LogError(string.Format("{0} {1}", tag, message));
|
||||
}
|
||||
|
||||
public static void LogWarning(string tag, string message) {
|
||||
Debug.LogWarning(string.Format("{0} {1}", tag, message));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Returns the class name to be used in serialization/deserialization process
|
||||
/// </summary>
|
||||
/// <param name="target">The target to get class name for</param>
|
||||
/// <returns>The class name of the provided instance</returns>
|
||||
public static string GetClassName(object target) {
|
||||
return target.GetType().Name;
|
||||
}
|
||||
}
|
||||
|
||||
@ -1,11 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: ae84ef4134f7e4290bd18d994cd71a5b
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@ -1,67 +0,0 @@
|
||||
// #if UNITY_IPHONE || UNITY_IOS
|
||||
// using System;
|
||||
// using System.Collections.Generic;
|
||||
// using System.Runtime.InteropServices;
|
||||
// using UnityEngine;
|
||||
|
||||
// public class ISAdQualityiOSInitHandler : MonoBehaviour
|
||||
// {
|
||||
// public static event Action OnAdQualitySdkInitSuccess = delegate { };
|
||||
// public static event Action<ISAdQualityInitError, string> OnAdQualitySdkInitFailed = delegate { };
|
||||
|
||||
|
||||
// #if UNITY_IOS && !UNITY_EDITOR
|
||||
// delegate void ISAdQualityUnityInitSuccessCallback(string args);
|
||||
// [DllImport("__Internal")]
|
||||
// private static extern int ironSourceAdQuality_registerInitSuccessCallback(ISAdQualityUnityInitSuccessCallback func);
|
||||
|
||||
// delegate void ISAdQualityUnityInitFailedCallback(string args);
|
||||
// [DllImport("__Internal")]
|
||||
// private static extern void ironSourceAdQuality_registerInitFailedCallback(ISAdQualityUnityInitFailedCallback func);
|
||||
|
||||
// public ISAdQualityiOSInitHandler()
|
||||
// {
|
||||
// ironSourceAdQuality_registerInitSuccessCallback(fireInitSuccessCallback);
|
||||
// ironSourceAdQuality_registerInitFailedCallback(fireInitFailedCallback);
|
||||
// }
|
||||
|
||||
// [AOT.MonoPInvokeCallback(typeof(ISAdQualityUnityInitSuccessCallback))]
|
||||
// public static void fireInitSuccessCallback(string message)
|
||||
// {
|
||||
// if (OnAdQualitySdkInitSuccess != null)
|
||||
// {
|
||||
// OnAdQualitySdkInitSuccess();
|
||||
// }
|
||||
// }
|
||||
|
||||
// [AOT.MonoPInvokeCallback(typeof(ISAdQualityUnityInitFailedCallback))]
|
||||
// public static void fireInitFailedCallback(string message)
|
||||
// {
|
||||
// if (OnAdQualitySdkInitFailed != null)
|
||||
// {
|
||||
// ISAdQualityInitError sdkInitError = ISAdQualityInitError.EXCEPTION_ON_INIT;
|
||||
// string errorMsg = String.Empty;
|
||||
// try
|
||||
// {
|
||||
// if (!String.IsNullOrEmpty(message))
|
||||
// {
|
||||
// string[] separators = { "Unity:" };
|
||||
// string[] splitArray = message.Split(separators, System.StringSplitOptions.RemoveEmptyEntries);
|
||||
// if (splitArray.Length > 1)
|
||||
// {
|
||||
// sdkInitError = (ISAdQualityInitError)Enum.Parse(typeof(ISAdQualityInitError), splitArray[0]);
|
||||
// errorMsg = splitArray[1];
|
||||
// }
|
||||
// }
|
||||
// }
|
||||
// catch (Exception e)
|
||||
// {
|
||||
// errorMsg = e.Message;
|
||||
// }
|
||||
// OnAdQualitySdkInitFailed(sdkInitError, errorMsg);
|
||||
// }
|
||||
// }
|
||||
// #endif
|
||||
// }
|
||||
|
||||
// #endif
|
||||
@ -1,11 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: a21b72b3702244ccaa9227784e3fc6f3
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@ -1,157 +0,0 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Runtime.InteropServices;
|
||||
using UnityEngine;
|
||||
using ISAdQualityJSON;
|
||||
|
||||
public class IronSourceAdQuality : CodeGeneratedSingleton
|
||||
{
|
||||
private static GameObject adQualityGameObject = new GameObject("IronSourceAdQuality");
|
||||
|
||||
#if UNITY_IOS && !UNITY_EDITOR
|
||||
|
||||
// [DllImport ("__Internal")]
|
||||
// private static extern int ironSourceAdQuality_initialize(string appKey, string userId, bool userIdSet, bool testMode,
|
||||
// bool debug, int logLevel, string initializationSource, bool coppa,
|
||||
// int deviceIdType, bool isInitCallbackSet);
|
||||
// [DllImport ("__Internal")]
|
||||
// private static extern int ironSourceAdQuality_changeUserId(string userId);
|
||||
// [DllImport ("__Internal")]
|
||||
// private static extern int ironSourceAdQuality_setUserConsent(bool userConsent);
|
||||
// [DllImport ("__Internal")]
|
||||
// private static extern int ironSourceAdQuality_sendCustomMediationRevenue(int mediationNetwork, int adType, string placement, double revenue);
|
||||
// [DllImport ("__Internal")]
|
||||
// private static extern int ironSourceAdQuality_setSegment(string jsonString);
|
||||
|
||||
#endif
|
||||
|
||||
protected override bool DontDestroySingleton { get { return true; } }
|
||||
|
||||
protected override void InitAfterRegisteringAsSingleInstance() {
|
||||
base.InitAfterRegisteringAsSingleInstance();
|
||||
}
|
||||
|
||||
public static void Initialize(string appKey) {
|
||||
Initialize(appKey, new ISAdQualityConfig());
|
||||
}
|
||||
|
||||
public static void Initialize(string appKey, ISAdQualityConfig adQualityConfig) {
|
||||
if (adQualityConfig == null) {
|
||||
adQualityConfig = new ISAdQualityConfig();
|
||||
}
|
||||
Initialize(appKey,
|
||||
adQualityConfig.UserId,
|
||||
adQualityConfig.UserIdSet,
|
||||
adQualityConfig.TestMode,
|
||||
adQualityConfig.LogLevel,
|
||||
adQualityConfig.InitializationSource,
|
||||
adQualityConfig.Coppa,
|
||||
adQualityConfig.DeviceIdType,
|
||||
adQualityConfig.AdQualityInitCallback);
|
||||
}
|
||||
|
||||
private static void Initialize(string appKey,
|
||||
string userId,
|
||||
bool userIdSet,
|
||||
bool testMode,
|
||||
ISAdQualityLogLevel logLevel,
|
||||
string initializationSource,
|
||||
bool coppa,
|
||||
ISAdQualityDeviceIdType deviceIdType,
|
||||
ISAdQualityInitCallback adQualityInitCallback) {
|
||||
|
||||
#if !UNITY_EDITOR
|
||||
GetSynchronousCodeGeneratedInstance<IronSourceAdQuality>();
|
||||
ISAdQualityInitCallbackWrapper initCallbackWrapper = adQualityGameObject.GetComponent<ISAdQualityInitCallbackWrapper>();
|
||||
if (initCallbackWrapper == null) {
|
||||
initCallbackWrapper = adQualityGameObject.AddComponent<ISAdQualityInitCallbackWrapper>();
|
||||
}
|
||||
initCallbackWrapper.AdQualityInitCallback = adQualityInitCallback;
|
||||
bool isInitCallbackSet = (adQualityInitCallback != null);
|
||||
|
||||
#if UNITY_ANDROID
|
||||
AndroidJNI.PushLocalFrame(100);
|
||||
|
||||
AndroidJNI.PopLocalFrame(IntPtr.Zero);
|
||||
#endif
|
||||
|
||||
#if UNITY_ANDROID
|
||||
AndroidJNI.PushLocalFrame(100);
|
||||
using(AndroidJavaClass jniAdQualityClass = new AndroidJavaClass("com.ironsource.adqualitysdk.sdk.unity.IronSourceAdQuality")) {
|
||||
AndroidJavaClass jLogLevelEnum = new AndroidJavaClass("com.ironsource.adqualitysdk.sdk.ISAdQualityLogLevel");
|
||||
AndroidJavaObject jLogLevel = jLogLevelEnum.CallStatic<AndroidJavaObject>("fromInt", (int)logLevel);
|
||||
AndroidJavaClass jDeviceIdTypeEnum = new AndroidJavaClass("com.ironsource.adqualitysdk.sdk.ISAdQualityDeviceIdType");
|
||||
AndroidJavaObject jDeviceIdType = jDeviceIdTypeEnum.CallStatic<AndroidJavaObject>("fromInt", (int)deviceIdType);
|
||||
jniAdQualityClass.CallStatic("initialize", appKey, userId, userIdSet, testMode, jLogLevel, initializationSource, coppa, jDeviceIdType, isInitCallbackSet);
|
||||
}
|
||||
AndroidJNI.PopLocalFrame(IntPtr.Zero);
|
||||
#elif UNITY_IOS
|
||||
// ironSourceAdQuality_initialize(appKey, userId, userIdSet ,testMode, DEBUG, (int)logLevel, initializationSource, coppa, (int)deviceIdType, isInitCallbackSet);
|
||||
#endif
|
||||
#else
|
||||
ISAdQualityUtils.LogWarning(TAG, "Ad Quality SDK works only on Android or iOS devices.");
|
||||
#endif
|
||||
}
|
||||
|
||||
public static void ChangeUserId(String userId) {
|
||||
#if UNITY_ANDROID && !UNITY_EDITOR
|
||||
AndroidJNI.PushLocalFrame(100);
|
||||
using(AndroidJavaClass jniAdQualityClass = new AndroidJavaClass("com.ironsource.adqualitysdk.sdk.unity.IronSourceAdQuality")) {
|
||||
jniAdQualityClass.CallStatic("changeUserId", userId);
|
||||
}
|
||||
AndroidJNI.PopLocalFrame(IntPtr.Zero);
|
||||
#elif UNITY_IOS && !UNITY_EDITOR
|
||||
// ironSourceAdQuality_changeUserId(userId);
|
||||
#endif
|
||||
}
|
||||
|
||||
[Obsolete("This method has been deprecated and will be removed soon")]
|
||||
public static void SetUserConsent(bool userConsent) {
|
||||
#if UNITY_ANDROID && !UNITY_EDITOR
|
||||
AndroidJNI.PushLocalFrame(100);
|
||||
using(AndroidJavaClass jniAdQualityClass = new AndroidJavaClass("com.ironsource.adqualitysdk.sdk.unity.IronSourceAdQuality")) {
|
||||
jniAdQualityClass.CallStatic("setUserConsent", userConsent);
|
||||
}
|
||||
AndroidJNI.PopLocalFrame(IntPtr.Zero);
|
||||
#elif UNITY_IOS && !UNITY_EDITOR
|
||||
// ironSourceAdQuality_setUserConsent(userConsent);
|
||||
#endif
|
||||
}
|
||||
|
||||
public static void SendCustomMediationRevenue(ISAdQualityCustomMediationRevenue customMediationRevenue) {
|
||||
#if UNITY_ANDROID && !UNITY_EDITOR
|
||||
AndroidJNI.PushLocalFrame(100);
|
||||
using(AndroidJavaClass jniAdQualityClass = new AndroidJavaClass("com.ironsource.adqualitysdk.sdk.unity.IronSourceAdQuality")) {
|
||||
jniAdQualityClass.CallStatic("sendCustomMediationRevenue",
|
||||
(int) customMediationRevenue.MediationNetwork,
|
||||
(int) customMediationRevenue.AdType,
|
||||
customMediationRevenue.Placement,
|
||||
customMediationRevenue.Revenue);
|
||||
}
|
||||
AndroidJNI.PopLocalFrame(IntPtr.Zero);
|
||||
#elif UNITY_IOS && !UNITY_EDITOR
|
||||
// ironSourceAdQuality_sendCustomMediationRevenue((int) customMediationRevenue.MediationNetwork,
|
||||
// (int) customMediationRevenue.AdType,
|
||||
// customMediationRevenue.Placement,
|
||||
// customMediationRevenue.Revenue);
|
||||
#endif
|
||||
}
|
||||
|
||||
public static void setSegment(ISAdQualitySegment segment) {
|
||||
Dictionary <string,string> dict = segment.getSegmentAsDict();
|
||||
string jsonString = ISAdQualityJSON.Json.Serialize(dict);
|
||||
#if UNITY_ANDROID && !UNITY_EDITOR
|
||||
AndroidJNI.PushLocalFrame(100);
|
||||
using(AndroidJavaClass jniAdQualityClass = new AndroidJavaClass("com.ironsource.adqualitysdk.sdk.unity.IronSourceAdQuality")) {
|
||||
jniAdQualityClass.CallStatic("setSegment", jsonString);
|
||||
}
|
||||
AndroidJNI.PopLocalFrame(IntPtr.Zero);
|
||||
#elif UNITY_IOS && !UNITY_EDITOR
|
||||
// ironSourceAdQuality_setSegment(jsonString);
|
||||
#endif
|
||||
}
|
||||
|
||||
private const string TAG = "IronSource AdQuality";
|
||||
private const bool DEBUG = false;
|
||||
|
||||
}
|
||||
@ -1,11 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 9316531db81604347bb41857c8e7ea43
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@ -1,8 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 4338140da312a4c6fb1614cd4725933a
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@ -1,22 +0,0 @@
|
||||
using UnityEngine;
|
||||
using System.IO;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
#if UNITY_EDITOR
|
||||
using UnityEditor;
|
||||
#endif
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// This class holds the store's configurations.
|
||||
/// </summary>
|
||||
public class ISAdQualityEditorScript : ScriptableObject
|
||||
{
|
||||
|
||||
#if UNITY_EDITOR
|
||||
|
||||
static string currentModuleVersion = "7.13.0";
|
||||
|
||||
#endif
|
||||
}
|
||||
@ -1,11 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 5e0d3ac0c6a1f4767826e6a49833d7c3
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@ -1,208 +0,0 @@
|
||||
using UnityEngine;
|
||||
#if UNITY_EDITOR
|
||||
using UnityEditor;
|
||||
#endif
|
||||
using System.IO;
|
||||
using System.Xml;
|
||||
using System.Text;
|
||||
using System.Linq;
|
||||
using System.Collections.Generic;
|
||||
|
||||
public class IronSourceAdQualityManifestTools
|
||||
{
|
||||
static string outputFile = Path.Combine(Application.dataPath, "Plugins/Android/AndroidManifest.xml");
|
||||
public static void GenerateManifest()
|
||||
{
|
||||
#if UNITY_EDITOR
|
||||
// only copy over a fresh copy of the AndroidManifest if one does not exist
|
||||
if (!File.Exists(outputFile))
|
||||
{
|
||||
#if UNITY_4_5 || UNITY_4_6 || UNITY_5_0 || UNITY_5_1
|
||||
var inputFile = Path.Combine(EditorApplication.applicationContentsPath, "PlaybackEngines/androidplayer/AndroidManifest.xml");
|
||||
#elif UNITY_5_2
|
||||
var inputFile = Path.Combine(EditorApplication.applicationContentsPath, "PlaybackEngines/androidplayer/Apk/AndroidManifest.xml");
|
||||
#else
|
||||
var inputFile = Path.Combine(EditorApplication.applicationPath, "../PlaybackEngines/androidplayer/Apk/AndroidManifest.xml");
|
||||
#endif
|
||||
File.Copy(inputFile, outputFile);
|
||||
}
|
||||
UpdateManifest();
|
||||
#endif
|
||||
}
|
||||
|
||||
private static string _namespace = "";
|
||||
private static XmlDocument _document = null;
|
||||
private static XmlNode _manifestNode = null;
|
||||
private static XmlNode _applicationNode = null;
|
||||
|
||||
private static void LoadManifest(){
|
||||
_document = new XmlDocument();
|
||||
_document.Load(outputFile);
|
||||
|
||||
if (_document == null)
|
||||
{
|
||||
Debug.LogError("Couldn't load " + outputFile);
|
||||
return;
|
||||
}
|
||||
|
||||
_manifestNode = FindChildNode(_document, "manifest");
|
||||
_namespace = _manifestNode.GetNamespaceOfPrefix("android");
|
||||
_applicationNode = FindChildNode(_manifestNode, "application");
|
||||
|
||||
if (_applicationNode == null) {
|
||||
Debug.LogError("Error parsing " + outputFile);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
private static void SaveManifest(){
|
||||
_document.Save(outputFile);
|
||||
}
|
||||
|
||||
public static void UpdateManifest() {
|
||||
LoadManifest ();
|
||||
|
||||
SetPermission("android.permission.INTERNET");
|
||||
SetPermission("android.permission.ACCESS_NETWORK_STATE");
|
||||
|
||||
SaveManifest ();
|
||||
}
|
||||
|
||||
public static void AddActivity(string activityName, Dictionary<string, string> attributes) {
|
||||
AppendApplicationElement("activity", activityName, attributes);
|
||||
}
|
||||
|
||||
public static void RemoveActivity(string activityName) {
|
||||
RemoveApplicationElement("activity", activityName);
|
||||
}
|
||||
|
||||
public static void SetPermission(string permissionName) {
|
||||
PrependManifestElement("uses-permission", permissionName);
|
||||
}
|
||||
|
||||
public static void RemovePermission(string permissionName) {
|
||||
RemoveManifestElement("uses-permission", permissionName);
|
||||
}
|
||||
|
||||
public static XmlElement AppendApplicationElement(string tagName, string name, Dictionary<string, string> attributes) {
|
||||
return AppendElementIfMissing(tagName, name, attributes, _applicationNode);
|
||||
}
|
||||
|
||||
public static void RemoveApplicationElement(string tagName, string name) {
|
||||
RemoveElement(tagName, name, _applicationNode);
|
||||
}
|
||||
|
||||
public static XmlElement PrependManifestElement(string tagName, string name) {
|
||||
return PrependElementIfMissing(tagName, name, null, _manifestNode);
|
||||
}
|
||||
|
||||
public static void RemoveManifestElement(string tagName, string name) {
|
||||
RemoveElement(tagName, name, _manifestNode);
|
||||
}
|
||||
|
||||
public static XmlElement AddMetaDataTag(string mdName, string mdValue) {
|
||||
return AppendApplicationElement("meta-data", mdName, new Dictionary<string, string>() {
|
||||
{ "value", mdValue }
|
||||
});
|
||||
}
|
||||
|
||||
public static XmlElement AppendElementIfMissing(string tagName, string name, Dictionary<string, string> otherAttributes, XmlNode parent) {
|
||||
XmlElement e = null;
|
||||
if (!string.IsNullOrEmpty(name)) {
|
||||
e = FindElementWithTagAndName(tagName, name, parent);
|
||||
}
|
||||
|
||||
if (e == null)
|
||||
{
|
||||
e = _document.CreateElement(tagName);
|
||||
if (!string.IsNullOrEmpty(name)) {
|
||||
e.SetAttribute("name", _namespace, name);
|
||||
}
|
||||
|
||||
parent.AppendChild(e);
|
||||
}
|
||||
|
||||
if (otherAttributes != null) {
|
||||
foreach(string key in otherAttributes.Keys) {
|
||||
e.SetAttribute(key, _namespace, otherAttributes[key]);
|
||||
}
|
||||
}
|
||||
|
||||
return e;
|
||||
}
|
||||
|
||||
public static XmlElement PrependElementIfMissing(string tagName, string name, Dictionary<string, string> otherAttributes, XmlNode parent) {
|
||||
XmlElement e = null;
|
||||
if (!string.IsNullOrEmpty(name)) {
|
||||
e = FindElementWithTagAndName(tagName, name, parent);
|
||||
}
|
||||
|
||||
if (e == null)
|
||||
{
|
||||
e = _document.CreateElement(tagName);
|
||||
if (!string.IsNullOrEmpty(name)) {
|
||||
e.SetAttribute("name", _namespace, name);
|
||||
}
|
||||
|
||||
parent.PrependChild(e);
|
||||
}
|
||||
|
||||
if (otherAttributes != null) {
|
||||
foreach(string key in otherAttributes.Keys) {
|
||||
e.SetAttribute(key, _namespace, otherAttributes[key]);
|
||||
}
|
||||
}
|
||||
|
||||
return e;
|
||||
}
|
||||
|
||||
public static void RemoveElement(string tagName, string name, XmlNode parent) {
|
||||
XmlElement e = FindElementWithTagAndName(tagName, name, parent);
|
||||
if (e != null)
|
||||
{
|
||||
parent.RemoveChild(e);
|
||||
}
|
||||
}
|
||||
|
||||
public static XmlNode FindChildNode(XmlNode parent, string tagName)
|
||||
{
|
||||
XmlNode curr = parent.FirstChild;
|
||||
while (curr != null)
|
||||
{
|
||||
if (curr.Name.Equals(tagName))
|
||||
{
|
||||
return curr;
|
||||
}
|
||||
curr = curr.NextSibling;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public static XmlElement FindChildElement(XmlNode parent, string tagName)
|
||||
{
|
||||
XmlNode curr = parent.FirstChild;
|
||||
while (curr != null)
|
||||
{
|
||||
if (curr.Name.Equals(tagName))
|
||||
{
|
||||
return curr as XmlElement;
|
||||
}
|
||||
curr = curr.NextSibling;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
public static XmlElement FindElementWithTagAndName(string tagName, string name, XmlNode parent)
|
||||
{
|
||||
var curr = parent.FirstChild;
|
||||
while (curr != null)
|
||||
{
|
||||
if (curr.Name.Equals(tagName) && curr is XmlElement && ((XmlElement)curr).GetAttribute("name", _namespace) == name)
|
||||
{
|
||||
return curr as XmlElement;
|
||||
}
|
||||
curr = curr.NextSibling;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
}
|
||||
@ -1,11 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 62494cb2550224675873046db8776006
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@ -1,95 +0,0 @@
|
||||
// Copyright (c) 2012 Calvin Rien
|
||||
// http://the.darktable.com
|
||||
//
|
||||
// This software is provided 'as-is', without any express or implied warranty. In
|
||||
// no event will the authors be held liable for any damages arising from the use
|
||||
// of this software.
|
||||
//
|
||||
// Permission is granted to anyone to use this software for any purpose,
|
||||
// including commercial applications, and to alter it and redistribute it freely,
|
||||
// subject to the following restrictions:
|
||||
//
|
||||
// 1. The origin of this software must not be misrepresented; you must not claim
|
||||
// that you wrote the original software. If you use this software in a product,
|
||||
// an acknowledgment in the product documentation would be appreciated but is not
|
||||
// required.
|
||||
//
|
||||
// 2. Altered source versions must be plainly marked as such, and must not be
|
||||
// misrepresented as being the original software.
|
||||
//
|
||||
// 3. This notice may not be removed or altered from any source distribution.
|
||||
|
||||
using UnityEngine;
|
||||
using System.Collections.Generic;
|
||||
using System;
|
||||
|
||||
[System.Serializable]
|
||||
public sealed class ObjectKvp : UnityNameValuePair<string> {
|
||||
public string value = null;
|
||||
|
||||
override public string Value {
|
||||
get { return this.value; }
|
||||
set { this.value = value; }
|
||||
}
|
||||
|
||||
public ObjectKvp(string key, string value) : base(key, value) {
|
||||
}
|
||||
}
|
||||
|
||||
[System.Serializable]
|
||||
public class ObjectDictionary : UnityDictionary<string> {
|
||||
public List<ObjectKvp> values;
|
||||
|
||||
override protected List<UnityKeyValuePair<string, string>> KeyValuePairs {
|
||||
get {
|
||||
if (values == null) {
|
||||
values = new List<ObjectKvp>();
|
||||
}
|
||||
|
||||
List<UnityKeyValuePair<string, string>> valuesConverted = new List<UnityKeyValuePair<string, string>>();
|
||||
foreach (ObjectKvp okvp in values)
|
||||
{
|
||||
valuesConverted.Add(ConvertOkvp(okvp));
|
||||
}
|
||||
|
||||
return valuesConverted;
|
||||
}
|
||||
set {
|
||||
if (value == null) {
|
||||
values = new List<ObjectKvp>();
|
||||
return;
|
||||
}
|
||||
|
||||
foreach(UnityKeyValuePair<string,string> ukvp in value)
|
||||
{
|
||||
values.Add(ConvertUkvp(ukvp));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public new ObjectKvp ConvertUkvp(UnityKeyValuePair<string,string> ukvp)
|
||||
{
|
||||
return new ObjectKvp(ukvp.Key, ukvp.Value);
|
||||
|
||||
}
|
||||
public UnityKeyValuePair<string, string> ConvertOkvp(ObjectKvp okvp)
|
||||
{
|
||||
return new UnityKeyValuePair<string, string>(okvp.Key,okvp.Value);
|
||||
}
|
||||
override protected void SetKeyValuePair(string k, string v) {
|
||||
var index = values.FindIndex(x => {
|
||||
return x.Key == k;});
|
||||
|
||||
if (index != -1) {
|
||||
if (v == null) {
|
||||
values.RemoveAt(index);
|
||||
return;
|
||||
}
|
||||
|
||||
values[index] = new ObjectKvp(k, v);
|
||||
return;
|
||||
}
|
||||
|
||||
values.Add(new ObjectKvp(k, v));
|
||||
}
|
||||
}
|
||||
@ -1,11 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 3d242fa04ee9a4fc79ae19ff5a74303d
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@ -1,317 +0,0 @@
|
||||
// Copyright (c) 2012 Calvin Rien
|
||||
// http://the.darktable.com
|
||||
//
|
||||
// This software is provided 'as-is', without any express or implied warranty. In
|
||||
// no event will the authors be held liable for any damages arising from the use
|
||||
// of this software.
|
||||
//
|
||||
// Permission is granted to anyone to use this software for any purpose,
|
||||
// including commercial applications, and to alter it and redistribute it freely,
|
||||
// subject to the following restrictions:
|
||||
//
|
||||
// 1. The origin of this software must not be misrepresented; you must not claim
|
||||
// that you wrote the original software. If you use this software in a product,
|
||||
// an acknowledgment in the product documentation would be appreciated but is not
|
||||
// required.
|
||||
//
|
||||
// 2. Altered source versions must be plainly marked as such, and must not be
|
||||
// misrepresented as being the original software.
|
||||
//
|
||||
// 3. This notice may not be removed or altered from any source distribution.
|
||||
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
|
||||
public class UnityNameValuePair<V> : UnityKeyValuePair<string, V> {
|
||||
public string name = null;
|
||||
|
||||
override public string Key {
|
||||
get { return name; }
|
||||
set { name = value; }
|
||||
}
|
||||
|
||||
public UnityNameValuePair() : base() {
|
||||
}
|
||||
|
||||
public UnityNameValuePair(string key, V value) : base(key, value) {
|
||||
}
|
||||
}
|
||||
|
||||
public class UnityKeyValuePair<K, V> {
|
||||
virtual public K Key {
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
virtual public V Value {
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
public UnityKeyValuePair() {
|
||||
Key = default(K);
|
||||
Value = default(V);
|
||||
}
|
||||
|
||||
public UnityKeyValuePair(K key, V value) {
|
||||
Key = key;
|
||||
Value = value;
|
||||
}
|
||||
}
|
||||
|
||||
public abstract class UnityDictionary<K,V> : IDictionary<K,V> {
|
||||
abstract protected List<UnityKeyValuePair<K,V>> KeyValuePairs {
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
protected abstract void SetKeyValuePair(K k, V v); /* {
|
||||
var index = Collection.FindIndex(x => {return x.Key == k;});
|
||||
|
||||
if (index != -1) {
|
||||
if (v == null) {
|
||||
Collection.RemoveAt(index);
|
||||
return;
|
||||
}
|
||||
|
||||
values[index] = new UnityKeyValuePair(key, value);
|
||||
return;
|
||||
}
|
||||
|
||||
values.Add(new UnityKeyValuePair(key, value));
|
||||
} */
|
||||
|
||||
virtual public V this[K key] {
|
||||
get {
|
||||
var result = KeyValuePairs.Find(x => {
|
||||
return x.Key.Equals(key);});
|
||||
|
||||
if (result == null) {
|
||||
return default(V);
|
||||
}
|
||||
|
||||
return result.Value;
|
||||
}
|
||||
set {
|
||||
if (key == null) {
|
||||
return;
|
||||
}
|
||||
|
||||
SetKeyValuePair(key, value);
|
||||
}
|
||||
}
|
||||
|
||||
#region IDictionary interface
|
||||
|
||||
public void Add(K key, V value) {
|
||||
this[key] = value;
|
||||
}
|
||||
|
||||
public void Add(KeyValuePair<K, V> kvp) {
|
||||
this[kvp.Key] = kvp.Value;
|
||||
}
|
||||
|
||||
public bool TryGetValue(K key, out V value) {
|
||||
if (!this.ContainsKey(key)) {
|
||||
value = default(V);
|
||||
return false;
|
||||
}
|
||||
|
||||
value = this[key];
|
||||
return true;
|
||||
}
|
||||
|
||||
public bool Remove(KeyValuePair<K, V> item) {
|
||||
return Remove(item.Key);
|
||||
}
|
||||
|
||||
public bool Remove(K key) {
|
||||
var list = KeyValuePairs;
|
||||
|
||||
var index = list.FindIndex(x => {
|
||||
return x.Key.Equals(key);});
|
||||
|
||||
if (index == -1) {
|
||||
return false;
|
||||
}
|
||||
|
||||
list.RemoveAt(index);
|
||||
|
||||
KeyValuePairs = list;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
public void Clear() {
|
||||
var list = KeyValuePairs;
|
||||
|
||||
list.Clear();
|
||||
|
||||
KeyValuePairs = list;
|
||||
}
|
||||
|
||||
public bool ContainsKey(K key) {
|
||||
return KeyValuePairs.FindIndex(x => {
|
||||
return x.Key.Equals(key);}) != -1;
|
||||
}
|
||||
|
||||
public bool Contains(KeyValuePair<K, V> kvp) {
|
||||
return this[kvp.Key].Equals(kvp.Value);
|
||||
}
|
||||
|
||||
public int Count {
|
||||
get {
|
||||
return KeyValuePairs.Count;
|
||||
}
|
||||
}
|
||||
|
||||
public void CopyTo(KeyValuePair<K, V>[] array, int index) {
|
||||
List<KeyValuePair<K, V>> copy = new List<KeyValuePair<K, V>>();
|
||||
for (int i = 0; i < KeyValuePairs.Count;i++)
|
||||
{
|
||||
copy[i] = ConvertUkvp(KeyValuePairs[i]);
|
||||
}
|
||||
copy.CopyTo(array, index);
|
||||
}
|
||||
|
||||
public KeyValuePair<K,V> ConvertUkvp(UnityKeyValuePair<K, V> ukvp)
|
||||
{
|
||||
return new KeyValuePair<K,V>(ukvp.Key,(V)ukvp.Value);
|
||||
}
|
||||
|
||||
IEnumerator IEnumerable.GetEnumerator() {
|
||||
return GetEnumerator() as IEnumerator;
|
||||
}
|
||||
|
||||
public IEnumerator<KeyValuePair<K, V>> GetEnumerator() {
|
||||
return new UnityDictionaryEnumerator(this);
|
||||
}
|
||||
|
||||
public ICollection<K> Keys {
|
||||
get {
|
||||
ICollection<K> keys = new List<K>();
|
||||
foreach(UnityKeyValuePair<K,V> ukvp in KeyValuePairs)
|
||||
{
|
||||
keys.Add(ukvp.Key);
|
||||
}
|
||||
return keys;
|
||||
}
|
||||
}
|
||||
|
||||
public ICollection<V> Values {
|
||||
get {
|
||||
ICollection<V> values = new List<V>();
|
||||
foreach (UnityKeyValuePair<K, V> ukvp in KeyValuePairs)
|
||||
{
|
||||
values.Add(ukvp.Value);
|
||||
}
|
||||
return values;
|
||||
}
|
||||
}
|
||||
|
||||
public ICollection<KeyValuePair<K, V>> Items {
|
||||
get {
|
||||
List<KeyValuePair<K,V>> items = new List<KeyValuePair<K,V>>();
|
||||
foreach(UnityKeyValuePair<K,V> value in KeyValuePairs)
|
||||
{
|
||||
items.Add(new KeyValuePair<K, V>(value.Key, value.Value));
|
||||
}
|
||||
return items;
|
||||
}
|
||||
}
|
||||
|
||||
public V SyncRoot {
|
||||
get { return default(V); }
|
||||
}
|
||||
|
||||
public bool IsFixedSize {
|
||||
get { return false; }
|
||||
}
|
||||
|
||||
public bool IsReadOnly {
|
||||
get { return false; }
|
||||
}
|
||||
|
||||
public bool IsSynchronized {
|
||||
get { return false; }
|
||||
}
|
||||
|
||||
internal sealed class UnityDictionaryEnumerator : IEnumerator<KeyValuePair<K, V>> {
|
||||
// A copy of the SimpleDictionary T's key/value pairs.
|
||||
KeyValuePair<K, V>[] items;
|
||||
int index = -1;
|
||||
|
||||
internal UnityDictionaryEnumerator() {
|
||||
}
|
||||
|
||||
internal UnityDictionaryEnumerator(UnityDictionary<K,V> ud) {
|
||||
// Make a copy of the dictionary entries currently in the SimpleDictionary T.
|
||||
items = new KeyValuePair<K, V>[ud.Count];
|
||||
|
||||
ud.CopyTo(items, 0);
|
||||
}
|
||||
|
||||
object IEnumerator.Current {
|
||||
get { return Current; }
|
||||
}
|
||||
|
||||
public KeyValuePair<K, V> Current {
|
||||
get {
|
||||
ValidateIndex();
|
||||
return items[index];
|
||||
}
|
||||
}
|
||||
|
||||
// Return the current dictionary entry.
|
||||
public KeyValuePair<K, V> Entry {
|
||||
get { return (KeyValuePair<K, V>) Current; }
|
||||
}
|
||||
|
||||
public void Dispose() {
|
||||
index = -1;
|
||||
items = null;
|
||||
}
|
||||
|
||||
// Return the key of the current item.
|
||||
public K Key {
|
||||
get {
|
||||
ValidateIndex();
|
||||
return items[index].Key;
|
||||
}
|
||||
}
|
||||
|
||||
// Return the value of the current item.
|
||||
public V Value {
|
||||
get {
|
||||
ValidateIndex();
|
||||
return items[index].Value;
|
||||
}
|
||||
}
|
||||
|
||||
// Advance to the next item.
|
||||
public bool MoveNext() {
|
||||
if (index < items.Length - 1) {
|
||||
index++;
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
// Validate the enumeration index and throw an exception if the index is out of range.
|
||||
private void ValidateIndex() {
|
||||
if (index < 0 || index >= items.Length) {
|
||||
throw new System.InvalidOperationException("Enumerator is before or after the collection.");
|
||||
}
|
||||
}
|
||||
|
||||
// Reset the index to restart the enumeration.
|
||||
public void Reset() {
|
||||
index = -1;
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
|
||||
public abstract class UnityDictionary<V> : UnityDictionary<string, V> {
|
||||
|
||||
}
|
||||
@ -1,11 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 2b3aeeb1755c04e6f80ffb1e982537f5
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@ -1,8 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 221bee1d14f6b4afaa10e6a0915411ba
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@ -1,16 +0,0 @@
|
||||
using UnityEngine;
|
||||
|
||||
public abstract class BaseBehaviour : MonoBehaviour
|
||||
{
|
||||
private Transform cashedTransform;
|
||||
public Transform CachedTransform
|
||||
{
|
||||
get { return cashedTransform ?? (cashedTransform = transform); }
|
||||
}
|
||||
|
||||
protected virtual void Awake() { }
|
||||
|
||||
protected virtual void Start() { }
|
||||
|
||||
protected virtual void OnDestroy() { }
|
||||
}
|
||||
@ -1,11 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 80937c3c4170b4ff59501e589794ddca
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@ -1,17 +0,0 @@
|
||||
#pragma warning disable 618
|
||||
/// <summary>
|
||||
/// A Singleton for use when your component needs to be accessed at any given (run)time and can be automagically created on demand.
|
||||
/// To use, override <see cref="UnitySingleton.InitAfterRegisteringAsSingleInstance"/> and write your initialization logic.
|
||||
/// If your singleton shouldn't be destroyed when moving between scenes (<see cref="UnityEngine.Object.DontDestroyOnLoad"/>),
|
||||
/// Override <see cref="UnitySingleton.DontDestroySingleton"/> and return true.
|
||||
/// Like this:
|
||||
///
|
||||
/// protected override bool DontDestroySingleton
|
||||
/// {
|
||||
/// get { return true; }
|
||||
/// }
|
||||
///
|
||||
/// </summary>
|
||||
public abstract class CodeGeneratedSingleton : UnitySingleton
|
||||
{
|
||||
}
|
||||
@ -1,11 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 1a0aa54a1a93447f6a59f4a1534ecbe7
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@ -1,17 +0,0 @@
|
||||
#pragma warning disable 618
|
||||
/// <summary>
|
||||
/// A Singleton for use when your component needs to be blaced in a scene on design time.
|
||||
/// To use, override <see cref="UnitySingleton.InitAfterRegisteringAsSingleInstance"/> and write your initialization logic.
|
||||
/// If your singleton shouldn't be destroyed when moving between scenes (<see cref="UnityEngine.Object.DontDestroyOnLoad"/>),
|
||||
/// Override <see cref="UnitySingleton.DontDestroySingleton"/> and return true.
|
||||
/// Like this:
|
||||
///
|
||||
/// protected override bool DontDestroySingleton
|
||||
/// {
|
||||
/// get { return true; }
|
||||
/// }
|
||||
///
|
||||
/// </summary>
|
||||
public abstract class SceneSingleton : UnitySingleton
|
||||
{
|
||||
}
|
||||
@ -1,11 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 2b330e7d866904612b12283dfae41b84
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@ -1,271 +0,0 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using UnityEngine;
|
||||
|
||||
public abstract class UnitySingleton : BaseBehaviour
|
||||
{
|
||||
#region Private Variables
|
||||
private static readonly Dictionary<Type, UnitySingleton> instances = new Dictionary<Type, UnitySingleton>();
|
||||
private static readonly Dictionary<Type, Dictionary<MonoBehaviour, Action<UnitySingleton>>> instanceListeners =
|
||||
new Dictionary<Type, Dictionary<MonoBehaviour, Action<UnitySingleton>>>();
|
||||
#endregion
|
||||
|
||||
#region Private Properties
|
||||
protected bool IsInstanceReady { get; private set; }
|
||||
#endregion
|
||||
|
||||
#region Private Functions
|
||||
private void RegisterAsSingleInstanceAndInit()
|
||||
{
|
||||
instances.Add(GetType(), this);
|
||||
InnerInit();
|
||||
}
|
||||
|
||||
private void InnerInit()
|
||||
{
|
||||
InitAfterRegisteringAsSingleInstance();
|
||||
|
||||
if (DontDestroySingleton)
|
||||
{
|
||||
DontDestroyOnLoad(gameObject);
|
||||
}
|
||||
}
|
||||
|
||||
private static S GetOrCreateInstanceOnGameObject<S>(Type type) where S : CodeGeneratedSingleton
|
||||
{
|
||||
S instance = null;
|
||||
|
||||
var prefab = Resources.Load<GameObject>(type.Name);
|
||||
|
||||
if (prefab)
|
||||
{
|
||||
var instantiatedObject = Instantiate(prefab)
|
||||
#if !UNITY_5
|
||||
as GameObject
|
||||
#endif
|
||||
;
|
||||
|
||||
if (!instantiatedObject)
|
||||
{
|
||||
throw new Exception("Failed to instantiate prefab: " + type.Name);
|
||||
}
|
||||
|
||||
instance = instantiatedObject.GetComponent<S>();
|
||||
|
||||
if (!instance)
|
||||
{
|
||||
instance = instantiatedObject.AddComponent<S>();
|
||||
}
|
||||
}
|
||||
|
||||
if (!instance)
|
||||
{
|
||||
instance = new GameObject(type.Name).AddComponent<S>();
|
||||
}
|
||||
|
||||
return instance;
|
||||
}
|
||||
|
||||
private void NotifyInstanceListeners()
|
||||
{
|
||||
var type = GetType();
|
||||
|
||||
// Checks if there are any registered listeners for this type of singleton
|
||||
if (instanceListeners.ContainsKey(type))
|
||||
{
|
||||
foreach (var actionWithSender in instanceListeners[type].ToArray())
|
||||
{
|
||||
// If the sender is alive and has listeners - run its actions
|
||||
if (actionWithSender.Key && actionWithSender.Value != null)
|
||||
{
|
||||
actionWithSender.Value(this);
|
||||
}
|
||||
|
||||
// Either way - remove the sender + action from the collection
|
||||
instanceListeners[type].Remove(actionWithSender.Key);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
protected void DeclareAsReady()
|
||||
{
|
||||
IsInstanceReady = true;
|
||||
|
||||
NotifyInstanceListeners();
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region Public Functions
|
||||
protected static S GetSynchronousCodeGeneratedInstance<S>() where S : CodeGeneratedSingleton
|
||||
{
|
||||
var type = typeof(S);
|
||||
|
||||
S instance;
|
||||
|
||||
// An instance of this type does not exist
|
||||
if (!instances.ContainsKey(type))
|
||||
{
|
||||
// Try to find an existing one in the scene
|
||||
instance = FindObjectOfType<S>();
|
||||
|
||||
if (!instance)
|
||||
{
|
||||
// Creating a new one
|
||||
instance = GetOrCreateInstanceOnGameObject<S>(type);
|
||||
}
|
||||
|
||||
instance.RegisterAsSingleInstanceAndInit();
|
||||
}
|
||||
// An instance of this type already exists
|
||||
else
|
||||
{
|
||||
instance = instances[type] as S;
|
||||
}
|
||||
|
||||
if (!instance)
|
||||
{
|
||||
throw new Exception("No instance was created: " + type.Name);
|
||||
}
|
||||
|
||||
instance.IsInstanceReady = true;
|
||||
|
||||
return instance;
|
||||
}
|
||||
|
||||
public static void DoWithCodeGeneratedInstance<C>(MonoBehaviour sender, Action<C> whatToDoWithInstanceWhenItsReady) where C : CodeGeneratedSingleton
|
||||
{
|
||||
// Make sure an instance exists (creating it if it doesn't)
|
||||
GetSynchronousCodeGeneratedInstance<C>();
|
||||
|
||||
// Do the action with the existing instance or wait for it to be ready
|
||||
DoWithExistingInstance(sender, whatToDoWithInstanceWhenItsReady);
|
||||
}
|
||||
|
||||
public static void DoWithSceneInstance<S>(MonoBehaviour sender, Action<S> whatToDoWithInstanceWhenItsReady) where S : SceneSingleton
|
||||
{
|
||||
DoWithExistingInstance(sender, whatToDoWithInstanceWhenItsReady);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Performs an action on an existing instance if and when it exists and ready
|
||||
/// </summary>
|
||||
/// <typeparam name="S"></typeparam>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="whatToDoWithInstanceWhenItsReady"></param>
|
||||
private static void DoWithExistingInstance<S>(MonoBehaviour sender, Action<S> whatToDoWithInstanceWhenItsReady) where S : UnitySingleton
|
||||
{
|
||||
var type = typeof(S);
|
||||
|
||||
var isInstanceNotExistOrReady = true;
|
||||
|
||||
// An instance of this type exists
|
||||
if (instances.ContainsKey(type))
|
||||
{
|
||||
var instance = instances[type] as S;
|
||||
|
||||
if (instance && instance.IsInstanceReady)
|
||||
{
|
||||
isInstanceNotExistOrReady = false;
|
||||
|
||||
// Call the action with the existing instance
|
||||
whatToDoWithInstanceWhenItsReady(instance);
|
||||
}
|
||||
}
|
||||
|
||||
// An instance of this type does not exist, we have to wait for it to initialize
|
||||
if (isInstanceNotExistOrReady)
|
||||
{
|
||||
if (!instanceListeners.ContainsKey(type))
|
||||
{
|
||||
instanceListeners.Add(type, new Dictionary<MonoBehaviour, Action<UnitySingleton>>());
|
||||
}
|
||||
|
||||
if (!instanceListeners[type].ContainsKey(sender))
|
||||
{
|
||||
instanceListeners[type].Add(sender, null);
|
||||
}
|
||||
|
||||
instanceListeners[type][sender] += singleton => whatToDoWithInstanceWhenItsReady(singleton as S);
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region Unity Functions
|
||||
protected sealed override void Start()
|
||||
{
|
||||
base.Start();
|
||||
|
||||
var type = GetType();
|
||||
|
||||
var needToDestroy = false;
|
||||
|
||||
// There's already an instance of my type
|
||||
if (instances.ContainsKey(type))
|
||||
{
|
||||
// The existing instance is not this instance so we've got a conflict (There can only be one!)
|
||||
if (instances[type] != this)
|
||||
{
|
||||
if (this is CodeGeneratedSingleton)
|
||||
{
|
||||
throw new Exception("There's already an instance for " + type.Name);
|
||||
}
|
||||
|
||||
if (this is SceneSingleton)
|
||||
{
|
||||
if (DontDestroySingleton)
|
||||
{
|
||||
// [this] is not the single instance (Singleton) so we actually DO need to destroy it
|
||||
needToDestroy = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
// There's no instance of my type and I'm a CodeGeneratedSingleton
|
||||
// It should have been created via code so if I don't exist in the instance collection it means I was created on a scene
|
||||
else if (this is CodeGeneratedSingleton)
|
||||
{
|
||||
throw new NotSupportedException(string.Format("{0} is a {1} and needs to be created via code, and not placed on a scene!", type.Name, typeof(CodeGeneratedSingleton).Name));
|
||||
}
|
||||
|
||||
if (needToDestroy)
|
||||
{
|
||||
Debug.LogWarning(string.Format("There's already a {0} instance on the current scene, there's no point in staying.. goodbye.. I'm gonna go now :(", type.Name));
|
||||
|
||||
Destroy(this);
|
||||
}
|
||||
else if (this is SceneSingleton)
|
||||
{
|
||||
RegisterAsSingleInstanceAndInit();
|
||||
|
||||
SetReadyAndNotifyAfterRegistering();
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Override this if the singleton won't be ready immediately after registering as single instance
|
||||
/// </summary>
|
||||
protected virtual void SetReadyAndNotifyAfterRegistering()
|
||||
{
|
||||
DeclareAsReady();
|
||||
}
|
||||
|
||||
protected override void OnDestroy()
|
||||
{
|
||||
base.OnDestroy();
|
||||
|
||||
var type = GetType();
|
||||
|
||||
// There's already an instance of my type but it's me - remove me
|
||||
if (instances.ContainsKey(type) && instances[type] == this)
|
||||
{
|
||||
instances.Remove(type);
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region Virtuals
|
||||
protected virtual void InitAfterRegisteringAsSingleInstance() { }
|
||||
protected virtual bool DontDestroySingleton { get { return false; } }
|
||||
#endregion
|
||||
}
|
||||
@ -1,11 +0,0 @@
|
||||
fileFormatVersion: 2
|
||||
guid: ac12af7b0ebf6409c935fad7857982be
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@ -1,82 +0,0 @@
|
||||
#if USE_UNI_LUA
|
||||
using LuaAPI = UniLua.Lua;
|
||||
using RealStatePtr = UniLua.ILuaState;
|
||||
using LuaCSFunction = UniLua.CSharpFunctionDelegate;
|
||||
#else
|
||||
using LuaAPI = XLua.LuaDLL.Lua;
|
||||
using RealStatePtr = System.IntPtr;
|
||||
using LuaCSFunction = XLua.LuaDLL.lua_CSFunction;
|
||||
#endif
|
||||
|
||||
using XLua;
|
||||
using System.Collections.Generic;
|
||||
|
||||
|
||||
namespace XLua.CSObjectWrap
|
||||
{
|
||||
using Utils = XLua.Utils;
|
||||
public class BaseBehaviourWrap
|
||||
{
|
||||
public static void __Register(RealStatePtr L)
|
||||
{
|
||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||
System.Type type = typeof(BaseBehaviour);
|
||||
Utils.BeginObjectRegister(type, L, translator, 0, 0, 1, 0);
|
||||
|
||||
|
||||
|
||||
Utils.RegisterFunc(L, Utils.GETTER_IDX, "CachedTransform", _g_get_CachedTransform);
|
||||
|
||||
|
||||
|
||||
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, "BaseBehaviour does not have a constructor!");
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int _g_get_CachedTransform(RealStatePtr L)
|
||||
{
|
||||
try {
|
||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||
|
||||
BaseBehaviour gen_to_be_invoked = (BaseBehaviour)translator.FastGetCSObj(L, 1);
|
||||
translator.Push(L, gen_to_be_invoked.CachedTransform);
|
||||
} catch(System.Exception gen_e) {
|
||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
@ -1,67 +0,0 @@
|
||||
#if USE_UNI_LUA
|
||||
using LuaAPI = UniLua.Lua;
|
||||
using RealStatePtr = UniLua.ILuaState;
|
||||
using LuaCSFunction = UniLua.CSharpFunctionDelegate;
|
||||
#else
|
||||
using LuaAPI = XLua.LuaDLL.Lua;
|
||||
using RealStatePtr = System.IntPtr;
|
||||
using LuaCSFunction = XLua.LuaDLL.lua_CSFunction;
|
||||
#endif
|
||||
|
||||
using XLua;
|
||||
using System.Collections.Generic;
|
||||
|
||||
|
||||
namespace XLua.CSObjectWrap
|
||||
{
|
||||
using Utils = XLua.Utils;
|
||||
public class CodeGeneratedSingletonWrap
|
||||
{
|
||||
public static void __Register(RealStatePtr L)
|
||||
{
|
||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||
System.Type type = typeof(CodeGeneratedSingleton);
|
||||
Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
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, "CodeGeneratedSingleton does not have a constructor!");
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
@ -138,482 +138,6 @@ namespace XLua.CSObjectWrap
|
||||
}
|
||||
}
|
||||
|
||||
public class ISAdQualityDeviceIdTypeWrap
|
||||
{
|
||||
public static void __Register(RealStatePtr L)
|
||||
{
|
||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||
Utils.BeginObjectRegister(typeof(ISAdQualityDeviceIdType), L, translator, 0, 0, 0, 0);
|
||||
Utils.EndObjectRegister(typeof(ISAdQualityDeviceIdType), L, translator, null, null, null, null, null);
|
||||
|
||||
Utils.BeginClassRegister(typeof(ISAdQualityDeviceIdType), L, null, 4, 0, 0);
|
||||
|
||||
|
||||
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "NONE", ISAdQualityDeviceIdType.NONE);
|
||||
|
||||
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "GAID", ISAdQualityDeviceIdType.GAID);
|
||||
|
||||
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "IDFA", ISAdQualityDeviceIdType.IDFA);
|
||||
|
||||
|
||||
Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom);
|
||||
|
||||
Utils.EndClassRegister(typeof(ISAdQualityDeviceIdType), 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.PushISAdQualityDeviceIdType(L, (ISAdQualityDeviceIdType)LuaAPI.xlua_tointeger(L, 1));
|
||||
}
|
||||
|
||||
else if(lua_type == LuaTypes.LUA_TSTRING)
|
||||
{
|
||||
|
||||
if (LuaAPI.xlua_is_eq_str(L, 1, "NONE"))
|
||||
{
|
||||
translator.PushISAdQualityDeviceIdType(L, ISAdQualityDeviceIdType.NONE);
|
||||
}
|
||||
else if (LuaAPI.xlua_is_eq_str(L, 1, "GAID"))
|
||||
{
|
||||
translator.PushISAdQualityDeviceIdType(L, ISAdQualityDeviceIdType.GAID);
|
||||
}
|
||||
else if (LuaAPI.xlua_is_eq_str(L, 1, "IDFA"))
|
||||
{
|
||||
translator.PushISAdQualityDeviceIdType(L, ISAdQualityDeviceIdType.IDFA);
|
||||
}
|
||||
else
|
||||
{
|
||||
return LuaAPI.luaL_error(L, "invalid string for ISAdQualityDeviceIdType!");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
else
|
||||
{
|
||||
return LuaAPI.luaL_error(L, "invalid lua type for ISAdQualityDeviceIdType! Expect number or string, got + " + lua_type);
|
||||
}
|
||||
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
|
||||
public class ISAdQualityAdTypeWrap
|
||||
{
|
||||
public static void __Register(RealStatePtr L)
|
||||
{
|
||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||
Utils.BeginObjectRegister(typeof(ISAdQualityAdType), L, translator, 0, 0, 0, 0);
|
||||
Utils.EndObjectRegister(typeof(ISAdQualityAdType), L, translator, null, null, null, null, null);
|
||||
|
||||
Utils.BeginClassRegister(typeof(ISAdQualityAdType), L, null, 14, 0, 0);
|
||||
|
||||
|
||||
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "UNKNOWN", ISAdQualityAdType.UNKNOWN);
|
||||
|
||||
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "RICH_MEDIA", ISAdQualityAdType.RICH_MEDIA);
|
||||
|
||||
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "INTERSTITIAL", ISAdQualityAdType.INTERSTITIAL);
|
||||
|
||||
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "APP_WALL", ISAdQualityAdType.APP_WALL);
|
||||
|
||||
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "VIDEO", ISAdQualityAdType.VIDEO);
|
||||
|
||||
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "REWARDED_VIDEO", ISAdQualityAdType.REWARDED_VIDEO);
|
||||
|
||||
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "NATIVE", ISAdQualityAdType.NATIVE);
|
||||
|
||||
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "BANNER", ISAdQualityAdType.BANNER);
|
||||
|
||||
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "OFFER_WALL", ISAdQualityAdType.OFFER_WALL);
|
||||
|
||||
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "NATIVE_HTML", ISAdQualityAdType.NATIVE_HTML);
|
||||
|
||||
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "EXTERNAL", ISAdQualityAdType.EXTERNAL);
|
||||
|
||||
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "REWARDED", ISAdQualityAdType.REWARDED);
|
||||
|
||||
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "INTERACTIVE", ISAdQualityAdType.INTERACTIVE);
|
||||
|
||||
|
||||
Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom);
|
||||
|
||||
Utils.EndClassRegister(typeof(ISAdQualityAdType), 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.PushISAdQualityAdType(L, (ISAdQualityAdType)LuaAPI.xlua_tointeger(L, 1));
|
||||
}
|
||||
|
||||
else if(lua_type == LuaTypes.LUA_TSTRING)
|
||||
{
|
||||
|
||||
if (LuaAPI.xlua_is_eq_str(L, 1, "UNKNOWN"))
|
||||
{
|
||||
translator.PushISAdQualityAdType(L, ISAdQualityAdType.UNKNOWN);
|
||||
}
|
||||
else if (LuaAPI.xlua_is_eq_str(L, 1, "RICH_MEDIA"))
|
||||
{
|
||||
translator.PushISAdQualityAdType(L, ISAdQualityAdType.RICH_MEDIA);
|
||||
}
|
||||
else if (LuaAPI.xlua_is_eq_str(L, 1, "INTERSTITIAL"))
|
||||
{
|
||||
translator.PushISAdQualityAdType(L, ISAdQualityAdType.INTERSTITIAL);
|
||||
}
|
||||
else if (LuaAPI.xlua_is_eq_str(L, 1, "APP_WALL"))
|
||||
{
|
||||
translator.PushISAdQualityAdType(L, ISAdQualityAdType.APP_WALL);
|
||||
}
|
||||
else if (LuaAPI.xlua_is_eq_str(L, 1, "VIDEO"))
|
||||
{
|
||||
translator.PushISAdQualityAdType(L, ISAdQualityAdType.VIDEO);
|
||||
}
|
||||
else if (LuaAPI.xlua_is_eq_str(L, 1, "REWARDED_VIDEO"))
|
||||
{
|
||||
translator.PushISAdQualityAdType(L, ISAdQualityAdType.REWARDED_VIDEO);
|
||||
}
|
||||
else if (LuaAPI.xlua_is_eq_str(L, 1, "NATIVE"))
|
||||
{
|
||||
translator.PushISAdQualityAdType(L, ISAdQualityAdType.NATIVE);
|
||||
}
|
||||
else if (LuaAPI.xlua_is_eq_str(L, 1, "BANNER"))
|
||||
{
|
||||
translator.PushISAdQualityAdType(L, ISAdQualityAdType.BANNER);
|
||||
}
|
||||
else if (LuaAPI.xlua_is_eq_str(L, 1, "OFFER_WALL"))
|
||||
{
|
||||
translator.PushISAdQualityAdType(L, ISAdQualityAdType.OFFER_WALL);
|
||||
}
|
||||
else if (LuaAPI.xlua_is_eq_str(L, 1, "NATIVE_HTML"))
|
||||
{
|
||||
translator.PushISAdQualityAdType(L, ISAdQualityAdType.NATIVE_HTML);
|
||||
}
|
||||
else if (LuaAPI.xlua_is_eq_str(L, 1, "EXTERNAL"))
|
||||
{
|
||||
translator.PushISAdQualityAdType(L, ISAdQualityAdType.EXTERNAL);
|
||||
}
|
||||
else if (LuaAPI.xlua_is_eq_str(L, 1, "REWARDED"))
|
||||
{
|
||||
translator.PushISAdQualityAdType(L, ISAdQualityAdType.REWARDED);
|
||||
}
|
||||
else if (LuaAPI.xlua_is_eq_str(L, 1, "INTERACTIVE"))
|
||||
{
|
||||
translator.PushISAdQualityAdType(L, ISAdQualityAdType.INTERACTIVE);
|
||||
}
|
||||
else
|
||||
{
|
||||
return LuaAPI.luaL_error(L, "invalid string for ISAdQualityAdType!");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
else
|
||||
{
|
||||
return LuaAPI.luaL_error(L, "invalid lua type for ISAdQualityAdType! Expect number or string, got + " + lua_type);
|
||||
}
|
||||
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
|
||||
public class ISAdQualityInitErrorWrap
|
||||
{
|
||||
public static void __Register(RealStatePtr L)
|
||||
{
|
||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||
Utils.BeginObjectRegister(typeof(ISAdQualityInitError), L, translator, 0, 0, 0, 0);
|
||||
Utils.EndObjectRegister(typeof(ISAdQualityInitError), L, translator, null, null, null, null, null);
|
||||
|
||||
Utils.BeginClassRegister(typeof(ISAdQualityInitError), L, null, 11, 0, 0);
|
||||
|
||||
|
||||
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "AD_QUALITY_SDK_WAS_SHUTDOWN", ISAdQualityInitError.AD_QUALITY_SDK_WAS_SHUTDOWN);
|
||||
|
||||
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "ILLEGAL_USER_ID", ISAdQualityInitError.ILLEGAL_USER_ID);
|
||||
|
||||
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "ILLEGAL_APP_KEY", ISAdQualityInitError.ILLEGAL_APP_KEY);
|
||||
|
||||
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "EXCEPTION_ON_INIT", ISAdQualityInitError.EXCEPTION_ON_INIT);
|
||||
|
||||
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "NO_NETWORK_CONNECTION", ISAdQualityInitError.NO_NETWORK_CONNECTION);
|
||||
|
||||
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "CONFIG_LOAD_TIMEOUT", ISAdQualityInitError.CONFIG_LOAD_TIMEOUT);
|
||||
|
||||
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "CONNECTOR_LOAD_TIMEOUT", ISAdQualityInitError.CONNECTOR_LOAD_TIMEOUT);
|
||||
|
||||
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "AD_NETWORK_VERSION_NOT_SUPPORTED_YET", ISAdQualityInitError.AD_NETWORK_VERSION_NOT_SUPPORTED_YET);
|
||||
|
||||
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "AD_NETWORK_SDK_REQUIRES_NEWER_AD_QUALITY_SDK", ISAdQualityInitError.AD_NETWORK_SDK_REQUIRES_NEWER_AD_QUALITY_SDK);
|
||||
|
||||
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "AD_QUALITY_ALREADY_INITIALIZED", ISAdQualityInitError.AD_QUALITY_ALREADY_INITIALIZED);
|
||||
|
||||
|
||||
Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom);
|
||||
|
||||
Utils.EndClassRegister(typeof(ISAdQualityInitError), 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.PushISAdQualityInitError(L, (ISAdQualityInitError)LuaAPI.xlua_tointeger(L, 1));
|
||||
}
|
||||
|
||||
else if(lua_type == LuaTypes.LUA_TSTRING)
|
||||
{
|
||||
|
||||
if (LuaAPI.xlua_is_eq_str(L, 1, "AD_QUALITY_SDK_WAS_SHUTDOWN"))
|
||||
{
|
||||
translator.PushISAdQualityInitError(L, ISAdQualityInitError.AD_QUALITY_SDK_WAS_SHUTDOWN);
|
||||
}
|
||||
else if (LuaAPI.xlua_is_eq_str(L, 1, "ILLEGAL_USER_ID"))
|
||||
{
|
||||
translator.PushISAdQualityInitError(L, ISAdQualityInitError.ILLEGAL_USER_ID);
|
||||
}
|
||||
else if (LuaAPI.xlua_is_eq_str(L, 1, "ILLEGAL_APP_KEY"))
|
||||
{
|
||||
translator.PushISAdQualityInitError(L, ISAdQualityInitError.ILLEGAL_APP_KEY);
|
||||
}
|
||||
else if (LuaAPI.xlua_is_eq_str(L, 1, "EXCEPTION_ON_INIT"))
|
||||
{
|
||||
translator.PushISAdQualityInitError(L, ISAdQualityInitError.EXCEPTION_ON_INIT);
|
||||
}
|
||||
else if (LuaAPI.xlua_is_eq_str(L, 1, "NO_NETWORK_CONNECTION"))
|
||||
{
|
||||
translator.PushISAdQualityInitError(L, ISAdQualityInitError.NO_NETWORK_CONNECTION);
|
||||
}
|
||||
else if (LuaAPI.xlua_is_eq_str(L, 1, "CONFIG_LOAD_TIMEOUT"))
|
||||
{
|
||||
translator.PushISAdQualityInitError(L, ISAdQualityInitError.CONFIG_LOAD_TIMEOUT);
|
||||
}
|
||||
else if (LuaAPI.xlua_is_eq_str(L, 1, "CONNECTOR_LOAD_TIMEOUT"))
|
||||
{
|
||||
translator.PushISAdQualityInitError(L, ISAdQualityInitError.CONNECTOR_LOAD_TIMEOUT);
|
||||
}
|
||||
else if (LuaAPI.xlua_is_eq_str(L, 1, "AD_NETWORK_VERSION_NOT_SUPPORTED_YET"))
|
||||
{
|
||||
translator.PushISAdQualityInitError(L, ISAdQualityInitError.AD_NETWORK_VERSION_NOT_SUPPORTED_YET);
|
||||
}
|
||||
else if (LuaAPI.xlua_is_eq_str(L, 1, "AD_NETWORK_SDK_REQUIRES_NEWER_AD_QUALITY_SDK"))
|
||||
{
|
||||
translator.PushISAdQualityInitError(L, ISAdQualityInitError.AD_NETWORK_SDK_REQUIRES_NEWER_AD_QUALITY_SDK);
|
||||
}
|
||||
else if (LuaAPI.xlua_is_eq_str(L, 1, "AD_QUALITY_ALREADY_INITIALIZED"))
|
||||
{
|
||||
translator.PushISAdQualityInitError(L, ISAdQualityInitError.AD_QUALITY_ALREADY_INITIALIZED);
|
||||
}
|
||||
else
|
||||
{
|
||||
return LuaAPI.luaL_error(L, "invalid string for ISAdQualityInitError!");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
else
|
||||
{
|
||||
return LuaAPI.luaL_error(L, "invalid lua type for ISAdQualityInitError! Expect number or string, got + " + lua_type);
|
||||
}
|
||||
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
|
||||
public class ISAdQualityLogLevelWrap
|
||||
{
|
||||
public static void __Register(RealStatePtr L)
|
||||
{
|
||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||
Utils.BeginObjectRegister(typeof(ISAdQualityLogLevel), L, translator, 0, 0, 0, 0);
|
||||
Utils.EndObjectRegister(typeof(ISAdQualityLogLevel), L, translator, null, null, null, null, null);
|
||||
|
||||
Utils.BeginClassRegister(typeof(ISAdQualityLogLevel), L, null, 7, 0, 0);
|
||||
|
||||
|
||||
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "NONE", ISAdQualityLogLevel.NONE);
|
||||
|
||||
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "ERROR", ISAdQualityLogLevel.ERROR);
|
||||
|
||||
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "WARNING", ISAdQualityLogLevel.WARNING);
|
||||
|
||||
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "INFO", ISAdQualityLogLevel.INFO);
|
||||
|
||||
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "DEBUG", ISAdQualityLogLevel.DEBUG);
|
||||
|
||||
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "VERBOSE", ISAdQualityLogLevel.VERBOSE);
|
||||
|
||||
|
||||
Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom);
|
||||
|
||||
Utils.EndClassRegister(typeof(ISAdQualityLogLevel), 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.PushISAdQualityLogLevel(L, (ISAdQualityLogLevel)LuaAPI.xlua_tointeger(L, 1));
|
||||
}
|
||||
|
||||
else if(lua_type == LuaTypes.LUA_TSTRING)
|
||||
{
|
||||
|
||||
if (LuaAPI.xlua_is_eq_str(L, 1, "NONE"))
|
||||
{
|
||||
translator.PushISAdQualityLogLevel(L, ISAdQualityLogLevel.NONE);
|
||||
}
|
||||
else if (LuaAPI.xlua_is_eq_str(L, 1, "ERROR"))
|
||||
{
|
||||
translator.PushISAdQualityLogLevel(L, ISAdQualityLogLevel.ERROR);
|
||||
}
|
||||
else if (LuaAPI.xlua_is_eq_str(L, 1, "WARNING"))
|
||||
{
|
||||
translator.PushISAdQualityLogLevel(L, ISAdQualityLogLevel.WARNING);
|
||||
}
|
||||
else if (LuaAPI.xlua_is_eq_str(L, 1, "INFO"))
|
||||
{
|
||||
translator.PushISAdQualityLogLevel(L, ISAdQualityLogLevel.INFO);
|
||||
}
|
||||
else if (LuaAPI.xlua_is_eq_str(L, 1, "DEBUG"))
|
||||
{
|
||||
translator.PushISAdQualityLogLevel(L, ISAdQualityLogLevel.DEBUG);
|
||||
}
|
||||
else if (LuaAPI.xlua_is_eq_str(L, 1, "VERBOSE"))
|
||||
{
|
||||
translator.PushISAdQualityLogLevel(L, ISAdQualityLogLevel.VERBOSE);
|
||||
}
|
||||
else
|
||||
{
|
||||
return LuaAPI.luaL_error(L, "invalid string for ISAdQualityLogLevel!");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
else
|
||||
{
|
||||
return LuaAPI.luaL_error(L, "invalid lua type for ISAdQualityLogLevel! Expect number or string, got + " + lua_type);
|
||||
}
|
||||
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
|
||||
public class ISAdQualityMediationNetworkWrap
|
||||
{
|
||||
public static void __Register(RealStatePtr L)
|
||||
{
|
||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||
Utils.BeginObjectRegister(typeof(ISAdQualityMediationNetwork), L, translator, 0, 0, 0, 0);
|
||||
Utils.EndObjectRegister(typeof(ISAdQualityMediationNetwork), L, translator, null, null, null, null, null);
|
||||
|
||||
Utils.BeginClassRegister(typeof(ISAdQualityMediationNetwork), L, null, 10, 0, 0);
|
||||
|
||||
|
||||
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "UNKNOWN", ISAdQualityMediationNetwork.UNKNOWN);
|
||||
|
||||
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "ADMOB", ISAdQualityMediationNetwork.ADMOB);
|
||||
|
||||
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "DT_FAIR_BID", ISAdQualityMediationNetwork.DT_FAIR_BID);
|
||||
|
||||
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "HELIUM", ISAdQualityMediationNetwork.HELIUM);
|
||||
|
||||
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "LEVEL_PLAY", ISAdQualityMediationNetwork.LEVEL_PLAY);
|
||||
|
||||
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "MAX", ISAdQualityMediationNetwork.MAX);
|
||||
|
||||
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "UNITY", ISAdQualityMediationNetwork.UNITY);
|
||||
|
||||
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "SELF_MEDIATED", ISAdQualityMediationNetwork.SELF_MEDIATED);
|
||||
|
||||
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "OTHER", ISAdQualityMediationNetwork.OTHER);
|
||||
|
||||
|
||||
Utils.RegisterFunc(L, Utils.CLS_IDX, "__CastFrom", __CastFrom);
|
||||
|
||||
Utils.EndClassRegister(typeof(ISAdQualityMediationNetwork), 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.PushISAdQualityMediationNetwork(L, (ISAdQualityMediationNetwork)LuaAPI.xlua_tointeger(L, 1));
|
||||
}
|
||||
|
||||
else if(lua_type == LuaTypes.LUA_TSTRING)
|
||||
{
|
||||
|
||||
if (LuaAPI.xlua_is_eq_str(L, 1, "UNKNOWN"))
|
||||
{
|
||||
translator.PushISAdQualityMediationNetwork(L, ISAdQualityMediationNetwork.UNKNOWN);
|
||||
}
|
||||
else if (LuaAPI.xlua_is_eq_str(L, 1, "ADMOB"))
|
||||
{
|
||||
translator.PushISAdQualityMediationNetwork(L, ISAdQualityMediationNetwork.ADMOB);
|
||||
}
|
||||
else if (LuaAPI.xlua_is_eq_str(L, 1, "DT_FAIR_BID"))
|
||||
{
|
||||
translator.PushISAdQualityMediationNetwork(L, ISAdQualityMediationNetwork.DT_FAIR_BID);
|
||||
}
|
||||
else if (LuaAPI.xlua_is_eq_str(L, 1, "HELIUM"))
|
||||
{
|
||||
translator.PushISAdQualityMediationNetwork(L, ISAdQualityMediationNetwork.HELIUM);
|
||||
}
|
||||
else if (LuaAPI.xlua_is_eq_str(L, 1, "LEVEL_PLAY"))
|
||||
{
|
||||
translator.PushISAdQualityMediationNetwork(L, ISAdQualityMediationNetwork.LEVEL_PLAY);
|
||||
}
|
||||
else if (LuaAPI.xlua_is_eq_str(L, 1, "MAX"))
|
||||
{
|
||||
translator.PushISAdQualityMediationNetwork(L, ISAdQualityMediationNetwork.MAX);
|
||||
}
|
||||
else if (LuaAPI.xlua_is_eq_str(L, 1, "UNITY"))
|
||||
{
|
||||
translator.PushISAdQualityMediationNetwork(L, ISAdQualityMediationNetwork.UNITY);
|
||||
}
|
||||
else if (LuaAPI.xlua_is_eq_str(L, 1, "SELF_MEDIATED"))
|
||||
{
|
||||
translator.PushISAdQualityMediationNetwork(L, ISAdQualityMediationNetwork.SELF_MEDIATED);
|
||||
}
|
||||
else if (LuaAPI.xlua_is_eq_str(L, 1, "OTHER"))
|
||||
{
|
||||
translator.PushISAdQualityMediationNetwork(L, ISAdQualityMediationNetwork.OTHER);
|
||||
}
|
||||
else
|
||||
{
|
||||
return LuaAPI.luaL_error(L, "invalid string for ISAdQualityMediationNetwork!");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
else
|
||||
{
|
||||
return LuaAPI.luaL_error(L, "invalid lua type for ISAdQualityMediationNetwork! Expect number or string, got + " + lua_type);
|
||||
}
|
||||
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
|
||||
public class UIImageSheetAnimationAnimationTypeWrap
|
||||
{
|
||||
public static void __Register(RealStatePtr L)
|
||||
|
||||
@ -1,303 +0,0 @@
|
||||
#if USE_UNI_LUA
|
||||
using LuaAPI = UniLua.Lua;
|
||||
using RealStatePtr = UniLua.ILuaState;
|
||||
using LuaCSFunction = UniLua.CSharpFunctionDelegate;
|
||||
#else
|
||||
using LuaAPI = XLua.LuaDLL.Lua;
|
||||
using RealStatePtr = System.IntPtr;
|
||||
using LuaCSFunction = XLua.LuaDLL.lua_CSFunction;
|
||||
#endif
|
||||
|
||||
using XLua;
|
||||
using System.Collections.Generic;
|
||||
|
||||
|
||||
namespace XLua.CSObjectWrap
|
||||
{
|
||||
using Utils = XLua.Utils;
|
||||
public class ISAdQualityConfigWrap
|
||||
{
|
||||
public static void __Register(RealStatePtr L)
|
||||
{
|
||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||
System.Type type = typeof(ISAdQualityConfig);
|
||||
Utils.BeginObjectRegister(type, L, translator, 0, 0, 7, 7);
|
||||
|
||||
|
||||
|
||||
Utils.RegisterFunc(L, Utils.GETTER_IDX, "UserId", _g_get_UserId);
|
||||
Utils.RegisterFunc(L, Utils.GETTER_IDX, "TestMode", _g_get_TestMode);
|
||||
Utils.RegisterFunc(L, Utils.GETTER_IDX, "LogLevel", _g_get_LogLevel);
|
||||
Utils.RegisterFunc(L, Utils.GETTER_IDX, "AdQualityInitCallback", _g_get_AdQualityInitCallback);
|
||||
Utils.RegisterFunc(L, Utils.GETTER_IDX, "InitializationSource", _g_get_InitializationSource);
|
||||
Utils.RegisterFunc(L, Utils.GETTER_IDX, "Coppa", _g_get_Coppa);
|
||||
Utils.RegisterFunc(L, Utils.GETTER_IDX, "DeviceIdType", _g_get_DeviceIdType);
|
||||
|
||||
Utils.RegisterFunc(L, Utils.SETTER_IDX, "UserId", _s_set_UserId);
|
||||
Utils.RegisterFunc(L, Utils.SETTER_IDX, "TestMode", _s_set_TestMode);
|
||||
Utils.RegisterFunc(L, Utils.SETTER_IDX, "LogLevel", _s_set_LogLevel);
|
||||
Utils.RegisterFunc(L, Utils.SETTER_IDX, "AdQualityInitCallback", _s_set_AdQualityInitCallback);
|
||||
Utils.RegisterFunc(L, Utils.SETTER_IDX, "InitializationSource", _s_set_InitializationSource);
|
||||
Utils.RegisterFunc(L, Utils.SETTER_IDX, "Coppa", _s_set_Coppa);
|
||||
Utils.RegisterFunc(L, Utils.SETTER_IDX, "DeviceIdType", _s_set_DeviceIdType);
|
||||
|
||||
|
||||
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 ISAdQualityConfig();
|
||||
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 ISAdQualityConfig constructor!");
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int _g_get_UserId(RealStatePtr L)
|
||||
{
|
||||
try {
|
||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||
|
||||
ISAdQualityConfig gen_to_be_invoked = (ISAdQualityConfig)translator.FastGetCSObj(L, 1);
|
||||
LuaAPI.lua_pushstring(L, gen_to_be_invoked.UserId);
|
||||
} catch(System.Exception gen_e) {
|
||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int _g_get_TestMode(RealStatePtr L)
|
||||
{
|
||||
try {
|
||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||
|
||||
ISAdQualityConfig gen_to_be_invoked = (ISAdQualityConfig)translator.FastGetCSObj(L, 1);
|
||||
LuaAPI.lua_pushboolean(L, gen_to_be_invoked.TestMode);
|
||||
} catch(System.Exception gen_e) {
|
||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int _g_get_LogLevel(RealStatePtr L)
|
||||
{
|
||||
try {
|
||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||
|
||||
ISAdQualityConfig gen_to_be_invoked = (ISAdQualityConfig)translator.FastGetCSObj(L, 1);
|
||||
translator.PushISAdQualityLogLevel(L, gen_to_be_invoked.LogLevel);
|
||||
} catch(System.Exception gen_e) {
|
||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int _g_get_AdQualityInitCallback(RealStatePtr L)
|
||||
{
|
||||
try {
|
||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||
|
||||
ISAdQualityConfig gen_to_be_invoked = (ISAdQualityConfig)translator.FastGetCSObj(L, 1);
|
||||
translator.PushAny(L, gen_to_be_invoked.AdQualityInitCallback);
|
||||
} catch(System.Exception gen_e) {
|
||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int _g_get_InitializationSource(RealStatePtr L)
|
||||
{
|
||||
try {
|
||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||
|
||||
ISAdQualityConfig gen_to_be_invoked = (ISAdQualityConfig)translator.FastGetCSObj(L, 1);
|
||||
LuaAPI.lua_pushstring(L, gen_to_be_invoked.InitializationSource);
|
||||
} catch(System.Exception gen_e) {
|
||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int _g_get_Coppa(RealStatePtr L)
|
||||
{
|
||||
try {
|
||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||
|
||||
ISAdQualityConfig gen_to_be_invoked = (ISAdQualityConfig)translator.FastGetCSObj(L, 1);
|
||||
LuaAPI.lua_pushboolean(L, gen_to_be_invoked.Coppa);
|
||||
} catch(System.Exception gen_e) {
|
||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int _g_get_DeviceIdType(RealStatePtr L)
|
||||
{
|
||||
try {
|
||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||
|
||||
ISAdQualityConfig gen_to_be_invoked = (ISAdQualityConfig)translator.FastGetCSObj(L, 1);
|
||||
translator.PushISAdQualityDeviceIdType(L, gen_to_be_invoked.DeviceIdType);
|
||||
} catch(System.Exception gen_e) {
|
||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int _s_set_UserId(RealStatePtr L)
|
||||
{
|
||||
try {
|
||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||
|
||||
ISAdQualityConfig gen_to_be_invoked = (ISAdQualityConfig)translator.FastGetCSObj(L, 1);
|
||||
gen_to_be_invoked.UserId = LuaAPI.lua_tostring(L, 2);
|
||||
|
||||
} catch(System.Exception gen_e) {
|
||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int _s_set_TestMode(RealStatePtr L)
|
||||
{
|
||||
try {
|
||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||
|
||||
ISAdQualityConfig gen_to_be_invoked = (ISAdQualityConfig)translator.FastGetCSObj(L, 1);
|
||||
gen_to_be_invoked.TestMode = LuaAPI.lua_toboolean(L, 2);
|
||||
|
||||
} catch(System.Exception gen_e) {
|
||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int _s_set_LogLevel(RealStatePtr L)
|
||||
{
|
||||
try {
|
||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||
|
||||
ISAdQualityConfig gen_to_be_invoked = (ISAdQualityConfig)translator.FastGetCSObj(L, 1);
|
||||
ISAdQualityLogLevel gen_value;translator.Get(L, 2, out gen_value);
|
||||
gen_to_be_invoked.LogLevel = gen_value;
|
||||
|
||||
} catch(System.Exception gen_e) {
|
||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int _s_set_AdQualityInitCallback(RealStatePtr L)
|
||||
{
|
||||
try {
|
||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||
|
||||
ISAdQualityConfig gen_to_be_invoked = (ISAdQualityConfig)translator.FastGetCSObj(L, 1);
|
||||
gen_to_be_invoked.AdQualityInitCallback = (ISAdQualityInitCallback)translator.GetObject(L, 2, typeof(ISAdQualityInitCallback));
|
||||
|
||||
} catch(System.Exception gen_e) {
|
||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int _s_set_InitializationSource(RealStatePtr L)
|
||||
{
|
||||
try {
|
||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||
|
||||
ISAdQualityConfig gen_to_be_invoked = (ISAdQualityConfig)translator.FastGetCSObj(L, 1);
|
||||
gen_to_be_invoked.InitializationSource = LuaAPI.lua_tostring(L, 2);
|
||||
|
||||
} catch(System.Exception gen_e) {
|
||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int _s_set_Coppa(RealStatePtr L)
|
||||
{
|
||||
try {
|
||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||
|
||||
ISAdQualityConfig gen_to_be_invoked = (ISAdQualityConfig)translator.FastGetCSObj(L, 1);
|
||||
gen_to_be_invoked.Coppa = LuaAPI.lua_toboolean(L, 2);
|
||||
|
||||
} catch(System.Exception gen_e) {
|
||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int _s_set_DeviceIdType(RealStatePtr L)
|
||||
{
|
||||
try {
|
||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||
|
||||
ISAdQualityConfig gen_to_be_invoked = (ISAdQualityConfig)translator.FastGetCSObj(L, 1);
|
||||
ISAdQualityDeviceIdType gen_value;translator.Get(L, 2, out gen_value);
|
||||
gen_to_be_invoked.DeviceIdType = gen_value;
|
||||
|
||||
} catch(System.Exception gen_e) {
|
||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
@ -1,210 +0,0 @@
|
||||
#if USE_UNI_LUA
|
||||
using LuaAPI = UniLua.Lua;
|
||||
using RealStatePtr = UniLua.ILuaState;
|
||||
using LuaCSFunction = UniLua.CSharpFunctionDelegate;
|
||||
#else
|
||||
using LuaAPI = XLua.LuaDLL.Lua;
|
||||
using RealStatePtr = System.IntPtr;
|
||||
using LuaCSFunction = XLua.LuaDLL.lua_CSFunction;
|
||||
#endif
|
||||
|
||||
using XLua;
|
||||
using System.Collections.Generic;
|
||||
|
||||
|
||||
namespace XLua.CSObjectWrap
|
||||
{
|
||||
using Utils = XLua.Utils;
|
||||
public class ISAdQualityCustomMediationRevenueWrap
|
||||
{
|
||||
public static void __Register(RealStatePtr L)
|
||||
{
|
||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||
System.Type type = typeof(ISAdQualityCustomMediationRevenue);
|
||||
Utils.BeginObjectRegister(type, L, translator, 0, 0, 4, 4);
|
||||
|
||||
|
||||
|
||||
Utils.RegisterFunc(L, Utils.GETTER_IDX, "MediationNetwork", _g_get_MediationNetwork);
|
||||
Utils.RegisterFunc(L, Utils.GETTER_IDX, "AdType", _g_get_AdType);
|
||||
Utils.RegisterFunc(L, Utils.GETTER_IDX, "Revenue", _g_get_Revenue);
|
||||
Utils.RegisterFunc(L, Utils.GETTER_IDX, "Placement", _g_get_Placement);
|
||||
|
||||
Utils.RegisterFunc(L, Utils.SETTER_IDX, "MediationNetwork", _s_set_MediationNetwork);
|
||||
Utils.RegisterFunc(L, Utils.SETTER_IDX, "AdType", _s_set_AdType);
|
||||
Utils.RegisterFunc(L, Utils.SETTER_IDX, "Revenue", _s_set_Revenue);
|
||||
Utils.RegisterFunc(L, Utils.SETTER_IDX, "Placement", _s_set_Placement);
|
||||
|
||||
|
||||
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 ISAdQualityCustomMediationRevenue();
|
||||
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 ISAdQualityCustomMediationRevenue constructor!");
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int _g_get_MediationNetwork(RealStatePtr L)
|
||||
{
|
||||
try {
|
||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||
|
||||
ISAdQualityCustomMediationRevenue gen_to_be_invoked = (ISAdQualityCustomMediationRevenue)translator.FastGetCSObj(L, 1);
|
||||
translator.PushISAdQualityMediationNetwork(L, gen_to_be_invoked.MediationNetwork);
|
||||
} catch(System.Exception gen_e) {
|
||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int _g_get_AdType(RealStatePtr L)
|
||||
{
|
||||
try {
|
||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||
|
||||
ISAdQualityCustomMediationRevenue gen_to_be_invoked = (ISAdQualityCustomMediationRevenue)translator.FastGetCSObj(L, 1);
|
||||
translator.PushISAdQualityAdType(L, gen_to_be_invoked.AdType);
|
||||
} catch(System.Exception gen_e) {
|
||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int _g_get_Revenue(RealStatePtr L)
|
||||
{
|
||||
try {
|
||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||
|
||||
ISAdQualityCustomMediationRevenue gen_to_be_invoked = (ISAdQualityCustomMediationRevenue)translator.FastGetCSObj(L, 1);
|
||||
LuaAPI.lua_pushnumber(L, gen_to_be_invoked.Revenue);
|
||||
} catch(System.Exception gen_e) {
|
||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int _g_get_Placement(RealStatePtr L)
|
||||
{
|
||||
try {
|
||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||
|
||||
ISAdQualityCustomMediationRevenue gen_to_be_invoked = (ISAdQualityCustomMediationRevenue)translator.FastGetCSObj(L, 1);
|
||||
LuaAPI.lua_pushstring(L, gen_to_be_invoked.Placement);
|
||||
} catch(System.Exception gen_e) {
|
||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int _s_set_MediationNetwork(RealStatePtr L)
|
||||
{
|
||||
try {
|
||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||
|
||||
ISAdQualityCustomMediationRevenue gen_to_be_invoked = (ISAdQualityCustomMediationRevenue)translator.FastGetCSObj(L, 1);
|
||||
ISAdQualityMediationNetwork gen_value;translator.Get(L, 2, out gen_value);
|
||||
gen_to_be_invoked.MediationNetwork = gen_value;
|
||||
|
||||
} catch(System.Exception gen_e) {
|
||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int _s_set_AdType(RealStatePtr L)
|
||||
{
|
||||
try {
|
||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||
|
||||
ISAdQualityCustomMediationRevenue gen_to_be_invoked = (ISAdQualityCustomMediationRevenue)translator.FastGetCSObj(L, 1);
|
||||
ISAdQualityAdType gen_value;translator.Get(L, 2, out gen_value);
|
||||
gen_to_be_invoked.AdType = gen_value;
|
||||
|
||||
} catch(System.Exception gen_e) {
|
||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int _s_set_Revenue(RealStatePtr L)
|
||||
{
|
||||
try {
|
||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||
|
||||
ISAdQualityCustomMediationRevenue gen_to_be_invoked = (ISAdQualityCustomMediationRevenue)translator.FastGetCSObj(L, 1);
|
||||
gen_to_be_invoked.Revenue = LuaAPI.lua_tonumber(L, 2);
|
||||
|
||||
} catch(System.Exception gen_e) {
|
||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int _s_set_Placement(RealStatePtr L)
|
||||
{
|
||||
try {
|
||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||
|
||||
ISAdQualityCustomMediationRevenue gen_to_be_invoked = (ISAdQualityCustomMediationRevenue)translator.FastGetCSObj(L, 1);
|
||||
gen_to_be_invoked.Placement = LuaAPI.lua_tostring(L, 2);
|
||||
|
||||
} catch(System.Exception gen_e) {
|
||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
@ -1,84 +0,0 @@
|
||||
#if USE_UNI_LUA
|
||||
using LuaAPI = UniLua.Lua;
|
||||
using RealStatePtr = UniLua.ILuaState;
|
||||
using LuaCSFunction = UniLua.CSharpFunctionDelegate;
|
||||
#else
|
||||
using LuaAPI = XLua.LuaDLL.Lua;
|
||||
using RealStatePtr = System.IntPtr;
|
||||
using LuaCSFunction = XLua.LuaDLL.lua_CSFunction;
|
||||
#endif
|
||||
|
||||
using XLua;
|
||||
using System.Collections.Generic;
|
||||
|
||||
|
||||
namespace XLua.CSObjectWrap
|
||||
{
|
||||
using Utils = XLua.Utils;
|
||||
public class ISAdQualityEditorScriptWrap
|
||||
{
|
||||
public static void __Register(RealStatePtr L)
|
||||
{
|
||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||
System.Type type = typeof(ISAdQualityEditorScript);
|
||||
Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
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 ISAdQualityEditorScript();
|
||||
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 ISAdQualityEditorScript constructor!");
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
@ -1,125 +0,0 @@
|
||||
#if USE_UNI_LUA
|
||||
using LuaAPI = UniLua.Lua;
|
||||
using RealStatePtr = UniLua.ILuaState;
|
||||
using LuaCSFunction = UniLua.CSharpFunctionDelegate;
|
||||
#else
|
||||
using LuaAPI = XLua.LuaDLL.Lua;
|
||||
using RealStatePtr = System.IntPtr;
|
||||
using LuaCSFunction = XLua.LuaDLL.lua_CSFunction;
|
||||
#endif
|
||||
|
||||
using XLua;
|
||||
using System.Collections.Generic;
|
||||
|
||||
|
||||
namespace XLua.CSObjectWrap
|
||||
{
|
||||
using Utils = XLua.Utils;
|
||||
public class ISAdQualityInitCallbackWrap
|
||||
{
|
||||
public static void __Register(RealStatePtr L)
|
||||
{
|
||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||
System.Type type = typeof(ISAdQualityInitCallback);
|
||||
Utils.BeginObjectRegister(type, L, translator, 0, 2, 0, 0);
|
||||
|
||||
Utils.RegisterFunc(L, Utils.METHOD_IDX, "adQualitySdkInitSuccess", _m_adQualitySdkInitSuccess);
|
||||
Utils.RegisterFunc(L, Utils.METHOD_IDX, "adQualitySdkInitFailed", _m_adQualitySdkInitFailed);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
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, "ISAdQualityInitCallback does not have a constructor!");
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int _m_adQualitySdkInitSuccess(RealStatePtr L)
|
||||
{
|
||||
try {
|
||||
|
||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||
|
||||
|
||||
ISAdQualityInitCallback gen_to_be_invoked = (ISAdQualityInitCallback)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);
|
||||
|
||||
|
||||
ISAdQualityInitCallback gen_to_be_invoked = (ISAdQualityInitCallback)translator.FastGetCSObj(L, 1);
|
||||
|
||||
|
||||
|
||||
{
|
||||
ISAdQualityInitError _adQualityInitError;translator.Get(L, 2, out _adQualityInitError);
|
||||
string _errorMessage = LuaAPI.lua_tostring(L, 3);
|
||||
|
||||
gen_to_be_invoked.adQualitySdkInitFailed( _adQualityInitError, _errorMessage );
|
||||
|
||||
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
} catch(System.Exception gen_e) {
|
||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
@ -1,115 +0,0 @@
|
||||
#if USE_UNI_LUA
|
||||
using LuaAPI = UniLua.Lua;
|
||||
using RealStatePtr = UniLua.ILuaState;
|
||||
using LuaCSFunction = UniLua.CSharpFunctionDelegate;
|
||||
#else
|
||||
using LuaAPI = XLua.LuaDLL.Lua;
|
||||
using RealStatePtr = System.IntPtr;
|
||||
using LuaCSFunction = XLua.LuaDLL.lua_CSFunction;
|
||||
#endif
|
||||
|
||||
using XLua;
|
||||
using System.Collections.Generic;
|
||||
|
||||
|
||||
namespace XLua.CSObjectWrap
|
||||
{
|
||||
using Utils = XLua.Utils;
|
||||
public class ISAdQualityInitCallbackWrapperWrap
|
||||
{
|
||||
public static void __Register(RealStatePtr L)
|
||||
{
|
||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||
System.Type type = typeof(ISAdQualityInitCallbackWrapper);
|
||||
Utils.BeginObjectRegister(type, L, translator, 0, 0, 1, 1);
|
||||
|
||||
|
||||
|
||||
Utils.RegisterFunc(L, Utils.GETTER_IDX, "AdQualityInitCallback", _g_get_AdQualityInitCallback);
|
||||
|
||||
Utils.RegisterFunc(L, Utils.SETTER_IDX, "AdQualityInitCallback", _s_set_AdQualityInitCallback);
|
||||
|
||||
|
||||
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 ISAdQualityInitCallbackWrapper();
|
||||
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 ISAdQualityInitCallbackWrapper constructor!");
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int _g_get_AdQualityInitCallback(RealStatePtr L)
|
||||
{
|
||||
try {
|
||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||
|
||||
ISAdQualityInitCallbackWrapper gen_to_be_invoked = (ISAdQualityInitCallbackWrapper)translator.FastGetCSObj(L, 1);
|
||||
translator.PushAny(L, gen_to_be_invoked.AdQualityInitCallback);
|
||||
} catch(System.Exception gen_e) {
|
||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int _s_set_AdQualityInitCallback(RealStatePtr L)
|
||||
{
|
||||
try {
|
||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||
|
||||
ISAdQualityInitCallbackWrapper gen_to_be_invoked = (ISAdQualityInitCallbackWrapper)translator.FastGetCSObj(L, 1);
|
||||
gen_to_be_invoked.AdQualityInitCallback = (ISAdQualityInitCallback)translator.GetObject(L, 2, typeof(ISAdQualityInitCallback));
|
||||
|
||||
} catch(System.Exception gen_e) {
|
||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
@ -1,123 +0,0 @@
|
||||
#if USE_UNI_LUA
|
||||
using LuaAPI = UniLua.Lua;
|
||||
using RealStatePtr = UniLua.ILuaState;
|
||||
using LuaCSFunction = UniLua.CSharpFunctionDelegate;
|
||||
#else
|
||||
using LuaAPI = XLua.LuaDLL.Lua;
|
||||
using RealStatePtr = System.IntPtr;
|
||||
using LuaCSFunction = XLua.LuaDLL.lua_CSFunction;
|
||||
#endif
|
||||
|
||||
using XLua;
|
||||
using System.Collections.Generic;
|
||||
|
||||
|
||||
namespace XLua.CSObjectWrap
|
||||
{
|
||||
using Utils = XLua.Utils;
|
||||
public class ISAdQualityJSONJsonWrap
|
||||
{
|
||||
public static void __Register(RealStatePtr L)
|
||||
{
|
||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||
System.Type type = typeof(ISAdQualityJSON.Json);
|
||||
Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Utils.EndObjectRegister(type, L, translator, null, null,
|
||||
null, null, null);
|
||||
|
||||
Utils.BeginClassRegister(type, L, __CreateInstance, 3, 0, 0);
|
||||
Utils.RegisterFunc(L, Utils.CLS_IDX, "Deserialize", _m_Deserialize_xlua_st_);
|
||||
Utils.RegisterFunc(L, Utils.CLS_IDX, "Serialize", _m_Serialize_xlua_st_);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Utils.EndClassRegister(type, L, translator);
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int __CreateInstance(RealStatePtr L)
|
||||
{
|
||||
return LuaAPI.luaL_error(L, "ISAdQualityJSON.Json does not have a constructor!");
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int _m_Deserialize_xlua_st_(RealStatePtr L)
|
||||
{
|
||||
try {
|
||||
|
||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||
|
||||
|
||||
|
||||
|
||||
{
|
||||
string _json = LuaAPI.lua_tostring(L, 1);
|
||||
|
||||
var gen_ret = ISAdQualityJSON.Json.Deserialize( _json );
|
||||
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_Serialize_xlua_st_(RealStatePtr L)
|
||||
{
|
||||
try {
|
||||
|
||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||
|
||||
|
||||
|
||||
|
||||
{
|
||||
object _obj = translator.GetObject(L, 1, typeof(object));
|
||||
|
||||
var gen_ret = ISAdQualityJSON.Json.Serialize( _obj );
|
||||
LuaAPI.lua_pushstring(L, gen_ret);
|
||||
|
||||
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
} catch(System.Exception gen_e) {
|
||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
@ -1,391 +0,0 @@
|
||||
#if USE_UNI_LUA
|
||||
using LuaAPI = UniLua.Lua;
|
||||
using RealStatePtr = UniLua.ILuaState;
|
||||
using LuaCSFunction = UniLua.CSharpFunctionDelegate;
|
||||
#else
|
||||
using LuaAPI = XLua.LuaDLL.Lua;
|
||||
using RealStatePtr = System.IntPtr;
|
||||
using LuaCSFunction = XLua.LuaDLL.lua_CSFunction;
|
||||
#endif
|
||||
|
||||
using XLua;
|
||||
using System.Collections.Generic;
|
||||
|
||||
|
||||
namespace XLua.CSObjectWrap
|
||||
{
|
||||
using Utils = XLua.Utils;
|
||||
public class ISAdQualitySegmentWrap
|
||||
{
|
||||
public static void __Register(RealStatePtr L)
|
||||
{
|
||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||
System.Type type = typeof(ISAdQualitySegment);
|
||||
Utils.BeginObjectRegister(type, L, translator, 0, 2, 8, 8);
|
||||
|
||||
Utils.RegisterFunc(L, Utils.METHOD_IDX, "setCustom", _m_setCustom);
|
||||
Utils.RegisterFunc(L, Utils.METHOD_IDX, "getSegmentAsDict", _m_getSegmentAsDict);
|
||||
|
||||
|
||||
Utils.RegisterFunc(L, Utils.GETTER_IDX, "name", _g_get_name);
|
||||
Utils.RegisterFunc(L, Utils.GETTER_IDX, "age", _g_get_age);
|
||||
Utils.RegisterFunc(L, Utils.GETTER_IDX, "gender", _g_get_gender);
|
||||
Utils.RegisterFunc(L, Utils.GETTER_IDX, "level", _g_get_level);
|
||||
Utils.RegisterFunc(L, Utils.GETTER_IDX, "isPaying", _g_get_isPaying);
|
||||
Utils.RegisterFunc(L, Utils.GETTER_IDX, "inAppPurchasesTotal", _g_get_inAppPurchasesTotal);
|
||||
Utils.RegisterFunc(L, Utils.GETTER_IDX, "userCreationDate", _g_get_userCreationDate);
|
||||
Utils.RegisterFunc(L, Utils.GETTER_IDX, "customs", _g_get_customs);
|
||||
|
||||
Utils.RegisterFunc(L, Utils.SETTER_IDX, "name", _s_set_name);
|
||||
Utils.RegisterFunc(L, Utils.SETTER_IDX, "age", _s_set_age);
|
||||
Utils.RegisterFunc(L, Utils.SETTER_IDX, "gender", _s_set_gender);
|
||||
Utils.RegisterFunc(L, Utils.SETTER_IDX, "level", _s_set_level);
|
||||
Utils.RegisterFunc(L, Utils.SETTER_IDX, "isPaying", _s_set_isPaying);
|
||||
Utils.RegisterFunc(L, Utils.SETTER_IDX, "inAppPurchasesTotal", _s_set_inAppPurchasesTotal);
|
||||
Utils.RegisterFunc(L, Utils.SETTER_IDX, "userCreationDate", _s_set_userCreationDate);
|
||||
Utils.RegisterFunc(L, Utils.SETTER_IDX, "customs", _s_set_customs);
|
||||
|
||||
|
||||
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 ISAdQualitySegment();
|
||||
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 ISAdQualitySegment constructor!");
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int _m_setCustom(RealStatePtr L)
|
||||
{
|
||||
try {
|
||||
|
||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||
|
||||
|
||||
ISAdQualitySegment gen_to_be_invoked = (ISAdQualitySegment)translator.FastGetCSObj(L, 1);
|
||||
|
||||
|
||||
|
||||
{
|
||||
string _key = LuaAPI.lua_tostring(L, 2);
|
||||
string _value = LuaAPI.lua_tostring(L, 3);
|
||||
|
||||
gen_to_be_invoked.setCustom( _key, _value );
|
||||
|
||||
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
} catch(System.Exception gen_e) {
|
||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int _m_getSegmentAsDict(RealStatePtr L)
|
||||
{
|
||||
try {
|
||||
|
||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||
|
||||
|
||||
ISAdQualitySegment gen_to_be_invoked = (ISAdQualitySegment)translator.FastGetCSObj(L, 1);
|
||||
|
||||
|
||||
|
||||
{
|
||||
|
||||
var gen_ret = gen_to_be_invoked.getSegmentAsDict( );
|
||||
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_name(RealStatePtr L)
|
||||
{
|
||||
try {
|
||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||
|
||||
ISAdQualitySegment gen_to_be_invoked = (ISAdQualitySegment)translator.FastGetCSObj(L, 1);
|
||||
LuaAPI.lua_pushstring(L, gen_to_be_invoked.name);
|
||||
} catch(System.Exception gen_e) {
|
||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int _g_get_age(RealStatePtr L)
|
||||
{
|
||||
try {
|
||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||
|
||||
ISAdQualitySegment gen_to_be_invoked = (ISAdQualitySegment)translator.FastGetCSObj(L, 1);
|
||||
LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.age);
|
||||
} catch(System.Exception gen_e) {
|
||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int _g_get_gender(RealStatePtr L)
|
||||
{
|
||||
try {
|
||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||
|
||||
ISAdQualitySegment gen_to_be_invoked = (ISAdQualitySegment)translator.FastGetCSObj(L, 1);
|
||||
LuaAPI.lua_pushstring(L, gen_to_be_invoked.gender);
|
||||
} catch(System.Exception gen_e) {
|
||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int _g_get_level(RealStatePtr L)
|
||||
{
|
||||
try {
|
||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||
|
||||
ISAdQualitySegment gen_to_be_invoked = (ISAdQualitySegment)translator.FastGetCSObj(L, 1);
|
||||
LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.level);
|
||||
} catch(System.Exception gen_e) {
|
||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int _g_get_isPaying(RealStatePtr L)
|
||||
{
|
||||
try {
|
||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||
|
||||
ISAdQualitySegment gen_to_be_invoked = (ISAdQualitySegment)translator.FastGetCSObj(L, 1);
|
||||
LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.isPaying);
|
||||
} catch(System.Exception gen_e) {
|
||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int _g_get_inAppPurchasesTotal(RealStatePtr L)
|
||||
{
|
||||
try {
|
||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||
|
||||
ISAdQualitySegment gen_to_be_invoked = (ISAdQualitySegment)translator.FastGetCSObj(L, 1);
|
||||
LuaAPI.lua_pushnumber(L, gen_to_be_invoked.inAppPurchasesTotal);
|
||||
} catch(System.Exception gen_e) {
|
||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int _g_get_userCreationDate(RealStatePtr L)
|
||||
{
|
||||
try {
|
||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||
|
||||
ISAdQualitySegment gen_to_be_invoked = (ISAdQualitySegment)translator.FastGetCSObj(L, 1);
|
||||
LuaAPI.lua_pushint64(L, gen_to_be_invoked.userCreationDate);
|
||||
} catch(System.Exception gen_e) {
|
||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int _g_get_customs(RealStatePtr L)
|
||||
{
|
||||
try {
|
||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||
|
||||
ISAdQualitySegment gen_to_be_invoked = (ISAdQualitySegment)translator.FastGetCSObj(L, 1);
|
||||
translator.Push(L, gen_to_be_invoked.customs);
|
||||
} catch(System.Exception gen_e) {
|
||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int _s_set_name(RealStatePtr L)
|
||||
{
|
||||
try {
|
||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||
|
||||
ISAdQualitySegment gen_to_be_invoked = (ISAdQualitySegment)translator.FastGetCSObj(L, 1);
|
||||
gen_to_be_invoked.name = LuaAPI.lua_tostring(L, 2);
|
||||
|
||||
} catch(System.Exception gen_e) {
|
||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int _s_set_age(RealStatePtr L)
|
||||
{
|
||||
try {
|
||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||
|
||||
ISAdQualitySegment gen_to_be_invoked = (ISAdQualitySegment)translator.FastGetCSObj(L, 1);
|
||||
gen_to_be_invoked.age = LuaAPI.xlua_tointeger(L, 2);
|
||||
|
||||
} catch(System.Exception gen_e) {
|
||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int _s_set_gender(RealStatePtr L)
|
||||
{
|
||||
try {
|
||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||
|
||||
ISAdQualitySegment gen_to_be_invoked = (ISAdQualitySegment)translator.FastGetCSObj(L, 1);
|
||||
gen_to_be_invoked.gender = LuaAPI.lua_tostring(L, 2);
|
||||
|
||||
} catch(System.Exception gen_e) {
|
||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int _s_set_level(RealStatePtr L)
|
||||
{
|
||||
try {
|
||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||
|
||||
ISAdQualitySegment gen_to_be_invoked = (ISAdQualitySegment)translator.FastGetCSObj(L, 1);
|
||||
gen_to_be_invoked.level = LuaAPI.xlua_tointeger(L, 2);
|
||||
|
||||
} catch(System.Exception gen_e) {
|
||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int _s_set_isPaying(RealStatePtr L)
|
||||
{
|
||||
try {
|
||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||
|
||||
ISAdQualitySegment gen_to_be_invoked = (ISAdQualitySegment)translator.FastGetCSObj(L, 1);
|
||||
gen_to_be_invoked.isPaying = LuaAPI.xlua_tointeger(L, 2);
|
||||
|
||||
} catch(System.Exception gen_e) {
|
||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int _s_set_inAppPurchasesTotal(RealStatePtr L)
|
||||
{
|
||||
try {
|
||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||
|
||||
ISAdQualitySegment gen_to_be_invoked = (ISAdQualitySegment)translator.FastGetCSObj(L, 1);
|
||||
gen_to_be_invoked.inAppPurchasesTotal = LuaAPI.lua_tonumber(L, 2);
|
||||
|
||||
} catch(System.Exception gen_e) {
|
||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int _s_set_userCreationDate(RealStatePtr L)
|
||||
{
|
||||
try {
|
||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||
|
||||
ISAdQualitySegment gen_to_be_invoked = (ISAdQualitySegment)translator.FastGetCSObj(L, 1);
|
||||
gen_to_be_invoked.userCreationDate = LuaAPI.lua_toint64(L, 2);
|
||||
|
||||
} catch(System.Exception gen_e) {
|
||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int _s_set_customs(RealStatePtr L)
|
||||
{
|
||||
try {
|
||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||
|
||||
ISAdQualitySegment gen_to_be_invoked = (ISAdQualitySegment)translator.FastGetCSObj(L, 1);
|
||||
gen_to_be_invoked.customs = (System.Collections.Generic.Dictionary<string, string>)translator.GetObject(L, 2, typeof(System.Collections.Generic.Dictionary<string, string>));
|
||||
|
||||
} catch(System.Exception gen_e) {
|
||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
@ -1,173 +0,0 @@
|
||||
#if USE_UNI_LUA
|
||||
using LuaAPI = UniLua.Lua;
|
||||
using RealStatePtr = UniLua.ILuaState;
|
||||
using LuaCSFunction = UniLua.CSharpFunctionDelegate;
|
||||
#else
|
||||
using LuaAPI = XLua.LuaDLL.Lua;
|
||||
using RealStatePtr = System.IntPtr;
|
||||
using LuaCSFunction = XLua.LuaDLL.lua_CSFunction;
|
||||
#endif
|
||||
|
||||
using XLua;
|
||||
using System.Collections.Generic;
|
||||
|
||||
|
||||
namespace XLua.CSObjectWrap
|
||||
{
|
||||
using Utils = XLua.Utils;
|
||||
public class ISAdQualityUtilsWrap
|
||||
{
|
||||
public static void __Register(RealStatePtr L)
|
||||
{
|
||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||
System.Type type = typeof(ISAdQualityUtils);
|
||||
Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Utils.EndObjectRegister(type, L, translator, null, null,
|
||||
null, null, null);
|
||||
|
||||
Utils.BeginClassRegister(type, L, __CreateInstance, 5, 0, 0);
|
||||
Utils.RegisterFunc(L, Utils.CLS_IDX, "LogDebug", _m_LogDebug_xlua_st_);
|
||||
Utils.RegisterFunc(L, Utils.CLS_IDX, "LogError", _m_LogError_xlua_st_);
|
||||
Utils.RegisterFunc(L, Utils.CLS_IDX, "LogWarning", _m_LogWarning_xlua_st_);
|
||||
Utils.RegisterFunc(L, Utils.CLS_IDX, "GetClassName", _m_GetClassName_xlua_st_);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Utils.EndClassRegister(type, L, translator);
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int __CreateInstance(RealStatePtr L)
|
||||
{
|
||||
return LuaAPI.luaL_error(L, "ISAdQualityUtils does not have a constructor!");
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int _m_LogDebug_xlua_st_(RealStatePtr L)
|
||||
{
|
||||
try {
|
||||
|
||||
|
||||
|
||||
|
||||
{
|
||||
string _tag = LuaAPI.lua_tostring(L, 1);
|
||||
string _message = LuaAPI.lua_tostring(L, 2);
|
||||
|
||||
ISAdQualityUtils.LogDebug( _tag, _message );
|
||||
|
||||
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
} catch(System.Exception gen_e) {
|
||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int _m_LogError_xlua_st_(RealStatePtr L)
|
||||
{
|
||||
try {
|
||||
|
||||
|
||||
|
||||
|
||||
{
|
||||
string _tag = LuaAPI.lua_tostring(L, 1);
|
||||
string _message = LuaAPI.lua_tostring(L, 2);
|
||||
|
||||
ISAdQualityUtils.LogError( _tag, _message );
|
||||
|
||||
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
} catch(System.Exception gen_e) {
|
||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int _m_LogWarning_xlua_st_(RealStatePtr L)
|
||||
{
|
||||
try {
|
||||
|
||||
|
||||
|
||||
|
||||
{
|
||||
string _tag = LuaAPI.lua_tostring(L, 1);
|
||||
string _message = LuaAPI.lua_tostring(L, 2);
|
||||
|
||||
ISAdQualityUtils.LogWarning( _tag, _message );
|
||||
|
||||
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
} catch(System.Exception gen_e) {
|
||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int _m_GetClassName_xlua_st_(RealStatePtr L)
|
||||
{
|
||||
try {
|
||||
|
||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||
|
||||
|
||||
|
||||
|
||||
{
|
||||
object _target = translator.GetObject(L, 1, typeof(object));
|
||||
|
||||
var gen_ret = ISAdQualityUtils.GetClassName( _target );
|
||||
LuaAPI.lua_pushstring(L, gen_ret);
|
||||
|
||||
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
} catch(System.Exception gen_e) {
|
||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
@ -1,554 +0,0 @@
|
||||
#if USE_UNI_LUA
|
||||
using LuaAPI = UniLua.Lua;
|
||||
using RealStatePtr = UniLua.ILuaState;
|
||||
using LuaCSFunction = UniLua.CSharpFunctionDelegate;
|
||||
#else
|
||||
using LuaAPI = XLua.LuaDLL.Lua;
|
||||
using RealStatePtr = System.IntPtr;
|
||||
using LuaCSFunction = XLua.LuaDLL.lua_CSFunction;
|
||||
#endif
|
||||
|
||||
using XLua;
|
||||
using System.Collections.Generic;
|
||||
|
||||
|
||||
namespace XLua.CSObjectWrap
|
||||
{
|
||||
using Utils = XLua.Utils;
|
||||
public class IronSourceAdQualityManifestToolsWrap
|
||||
{
|
||||
public static void __Register(RealStatePtr L)
|
||||
{
|
||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||
System.Type type = typeof(IronSourceAdQualityManifestTools);
|
||||
Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Utils.EndObjectRegister(type, L, translator, null, null,
|
||||
null, null, null);
|
||||
|
||||
Utils.BeginClassRegister(type, L, __CreateInstance, 18, 0, 0);
|
||||
Utils.RegisterFunc(L, Utils.CLS_IDX, "GenerateManifest", _m_GenerateManifest_xlua_st_);
|
||||
Utils.RegisterFunc(L, Utils.CLS_IDX, "UpdateManifest", _m_UpdateManifest_xlua_st_);
|
||||
Utils.RegisterFunc(L, Utils.CLS_IDX, "AddActivity", _m_AddActivity_xlua_st_);
|
||||
Utils.RegisterFunc(L, Utils.CLS_IDX, "RemoveActivity", _m_RemoveActivity_xlua_st_);
|
||||
Utils.RegisterFunc(L, Utils.CLS_IDX, "SetPermission", _m_SetPermission_xlua_st_);
|
||||
Utils.RegisterFunc(L, Utils.CLS_IDX, "RemovePermission", _m_RemovePermission_xlua_st_);
|
||||
Utils.RegisterFunc(L, Utils.CLS_IDX, "AppendApplicationElement", _m_AppendApplicationElement_xlua_st_);
|
||||
Utils.RegisterFunc(L, Utils.CLS_IDX, "RemoveApplicationElement", _m_RemoveApplicationElement_xlua_st_);
|
||||
Utils.RegisterFunc(L, Utils.CLS_IDX, "PrependManifestElement", _m_PrependManifestElement_xlua_st_);
|
||||
Utils.RegisterFunc(L, Utils.CLS_IDX, "RemoveManifestElement", _m_RemoveManifestElement_xlua_st_);
|
||||
Utils.RegisterFunc(L, Utils.CLS_IDX, "AddMetaDataTag", _m_AddMetaDataTag_xlua_st_);
|
||||
Utils.RegisterFunc(L, Utils.CLS_IDX, "AppendElementIfMissing", _m_AppendElementIfMissing_xlua_st_);
|
||||
Utils.RegisterFunc(L, Utils.CLS_IDX, "PrependElementIfMissing", _m_PrependElementIfMissing_xlua_st_);
|
||||
Utils.RegisterFunc(L, Utils.CLS_IDX, "RemoveElement", _m_RemoveElement_xlua_st_);
|
||||
Utils.RegisterFunc(L, Utils.CLS_IDX, "FindChildNode", _m_FindChildNode_xlua_st_);
|
||||
Utils.RegisterFunc(L, Utils.CLS_IDX, "FindChildElement", _m_FindChildElement_xlua_st_);
|
||||
Utils.RegisterFunc(L, Utils.CLS_IDX, "FindElementWithTagAndName", _m_FindElementWithTagAndName_xlua_st_);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Utils.EndClassRegister(type, L, translator);
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int __CreateInstance(RealStatePtr L)
|
||||
{
|
||||
|
||||
try {
|
||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||
if(LuaAPI.lua_gettop(L) == 1)
|
||||
{
|
||||
|
||||
var gen_ret = new IronSourceAdQualityManifestTools();
|
||||
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 IronSourceAdQualityManifestTools constructor!");
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int _m_GenerateManifest_xlua_st_(RealStatePtr L)
|
||||
{
|
||||
try {
|
||||
|
||||
|
||||
|
||||
|
||||
{
|
||||
|
||||
IronSourceAdQualityManifestTools.GenerateManifest( );
|
||||
|
||||
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
} catch(System.Exception gen_e) {
|
||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int _m_UpdateManifest_xlua_st_(RealStatePtr L)
|
||||
{
|
||||
try {
|
||||
|
||||
|
||||
|
||||
|
||||
{
|
||||
|
||||
IronSourceAdQualityManifestTools.UpdateManifest( );
|
||||
|
||||
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
} catch(System.Exception gen_e) {
|
||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int _m_AddActivity_xlua_st_(RealStatePtr L)
|
||||
{
|
||||
try {
|
||||
|
||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||
|
||||
|
||||
|
||||
|
||||
{
|
||||
string _activityName = LuaAPI.lua_tostring(L, 1);
|
||||
System.Collections.Generic.Dictionary<string, string> _attributes = (System.Collections.Generic.Dictionary<string, string>)translator.GetObject(L, 2, typeof(System.Collections.Generic.Dictionary<string, string>));
|
||||
|
||||
IronSourceAdQualityManifestTools.AddActivity( _activityName, _attributes );
|
||||
|
||||
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
} catch(System.Exception gen_e) {
|
||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int _m_RemoveActivity_xlua_st_(RealStatePtr L)
|
||||
{
|
||||
try {
|
||||
|
||||
|
||||
|
||||
|
||||
{
|
||||
string _activityName = LuaAPI.lua_tostring(L, 1);
|
||||
|
||||
IronSourceAdQualityManifestTools.RemoveActivity( _activityName );
|
||||
|
||||
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
} catch(System.Exception gen_e) {
|
||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int _m_SetPermission_xlua_st_(RealStatePtr L)
|
||||
{
|
||||
try {
|
||||
|
||||
|
||||
|
||||
|
||||
{
|
||||
string _permissionName = LuaAPI.lua_tostring(L, 1);
|
||||
|
||||
IronSourceAdQualityManifestTools.SetPermission( _permissionName );
|
||||
|
||||
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
} catch(System.Exception gen_e) {
|
||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int _m_RemovePermission_xlua_st_(RealStatePtr L)
|
||||
{
|
||||
try {
|
||||
|
||||
|
||||
|
||||
|
||||
{
|
||||
string _permissionName = LuaAPI.lua_tostring(L, 1);
|
||||
|
||||
IronSourceAdQualityManifestTools.RemovePermission( _permissionName );
|
||||
|
||||
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
} catch(System.Exception gen_e) {
|
||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int _m_AppendApplicationElement_xlua_st_(RealStatePtr L)
|
||||
{
|
||||
try {
|
||||
|
||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||
|
||||
|
||||
|
||||
|
||||
{
|
||||
string _tagName = LuaAPI.lua_tostring(L, 1);
|
||||
string _name = LuaAPI.lua_tostring(L, 2);
|
||||
System.Collections.Generic.Dictionary<string, string> _attributes = (System.Collections.Generic.Dictionary<string, string>)translator.GetObject(L, 3, typeof(System.Collections.Generic.Dictionary<string, string>));
|
||||
|
||||
var gen_ret = IronSourceAdQualityManifestTools.AppendApplicationElement( _tagName, _name, _attributes );
|
||||
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_RemoveApplicationElement_xlua_st_(RealStatePtr L)
|
||||
{
|
||||
try {
|
||||
|
||||
|
||||
|
||||
|
||||
{
|
||||
string _tagName = LuaAPI.lua_tostring(L, 1);
|
||||
string _name = LuaAPI.lua_tostring(L, 2);
|
||||
|
||||
IronSourceAdQualityManifestTools.RemoveApplicationElement( _tagName, _name );
|
||||
|
||||
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
} catch(System.Exception gen_e) {
|
||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int _m_PrependManifestElement_xlua_st_(RealStatePtr L)
|
||||
{
|
||||
try {
|
||||
|
||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||
|
||||
|
||||
|
||||
|
||||
{
|
||||
string _tagName = LuaAPI.lua_tostring(L, 1);
|
||||
string _name = LuaAPI.lua_tostring(L, 2);
|
||||
|
||||
var gen_ret = IronSourceAdQualityManifestTools.PrependManifestElement( _tagName, _name );
|
||||
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_RemoveManifestElement_xlua_st_(RealStatePtr L)
|
||||
{
|
||||
try {
|
||||
|
||||
|
||||
|
||||
|
||||
{
|
||||
string _tagName = LuaAPI.lua_tostring(L, 1);
|
||||
string _name = LuaAPI.lua_tostring(L, 2);
|
||||
|
||||
IronSourceAdQualityManifestTools.RemoveManifestElement( _tagName, _name );
|
||||
|
||||
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
} catch(System.Exception gen_e) {
|
||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int _m_AddMetaDataTag_xlua_st_(RealStatePtr L)
|
||||
{
|
||||
try {
|
||||
|
||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||
|
||||
|
||||
|
||||
|
||||
{
|
||||
string _mdName = LuaAPI.lua_tostring(L, 1);
|
||||
string _mdValue = LuaAPI.lua_tostring(L, 2);
|
||||
|
||||
var gen_ret = IronSourceAdQualityManifestTools.AddMetaDataTag( _mdName, _mdValue );
|
||||
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_AppendElementIfMissing_xlua_st_(RealStatePtr L)
|
||||
{
|
||||
try {
|
||||
|
||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||
|
||||
|
||||
|
||||
|
||||
{
|
||||
string _tagName = LuaAPI.lua_tostring(L, 1);
|
||||
string _name = LuaAPI.lua_tostring(L, 2);
|
||||
System.Collections.Generic.Dictionary<string, string> _otherAttributes = (System.Collections.Generic.Dictionary<string, string>)translator.GetObject(L, 3, typeof(System.Collections.Generic.Dictionary<string, string>));
|
||||
System.Xml.XmlNode _parent = (System.Xml.XmlNode)translator.GetObject(L, 4, typeof(System.Xml.XmlNode));
|
||||
|
||||
var gen_ret = IronSourceAdQualityManifestTools.AppendElementIfMissing( _tagName, _name, _otherAttributes, _parent );
|
||||
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_PrependElementIfMissing_xlua_st_(RealStatePtr L)
|
||||
{
|
||||
try {
|
||||
|
||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||
|
||||
|
||||
|
||||
|
||||
{
|
||||
string _tagName = LuaAPI.lua_tostring(L, 1);
|
||||
string _name = LuaAPI.lua_tostring(L, 2);
|
||||
System.Collections.Generic.Dictionary<string, string> _otherAttributes = (System.Collections.Generic.Dictionary<string, string>)translator.GetObject(L, 3, typeof(System.Collections.Generic.Dictionary<string, string>));
|
||||
System.Xml.XmlNode _parent = (System.Xml.XmlNode)translator.GetObject(L, 4, typeof(System.Xml.XmlNode));
|
||||
|
||||
var gen_ret = IronSourceAdQualityManifestTools.PrependElementIfMissing( _tagName, _name, _otherAttributes, _parent );
|
||||
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_RemoveElement_xlua_st_(RealStatePtr L)
|
||||
{
|
||||
try {
|
||||
|
||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||
|
||||
|
||||
|
||||
|
||||
{
|
||||
string _tagName = LuaAPI.lua_tostring(L, 1);
|
||||
string _name = LuaAPI.lua_tostring(L, 2);
|
||||
System.Xml.XmlNode _parent = (System.Xml.XmlNode)translator.GetObject(L, 3, typeof(System.Xml.XmlNode));
|
||||
|
||||
IronSourceAdQualityManifestTools.RemoveElement( _tagName, _name, _parent );
|
||||
|
||||
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
} catch(System.Exception gen_e) {
|
||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int _m_FindChildNode_xlua_st_(RealStatePtr L)
|
||||
{
|
||||
try {
|
||||
|
||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||
|
||||
|
||||
|
||||
|
||||
{
|
||||
System.Xml.XmlNode _parent = (System.Xml.XmlNode)translator.GetObject(L, 1, typeof(System.Xml.XmlNode));
|
||||
string _tagName = LuaAPI.lua_tostring(L, 2);
|
||||
|
||||
var gen_ret = IronSourceAdQualityManifestTools.FindChildNode( _parent, _tagName );
|
||||
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_FindChildElement_xlua_st_(RealStatePtr L)
|
||||
{
|
||||
try {
|
||||
|
||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||
|
||||
|
||||
|
||||
|
||||
{
|
||||
System.Xml.XmlNode _parent = (System.Xml.XmlNode)translator.GetObject(L, 1, typeof(System.Xml.XmlNode));
|
||||
string _tagName = LuaAPI.lua_tostring(L, 2);
|
||||
|
||||
var gen_ret = IronSourceAdQualityManifestTools.FindChildElement( _parent, _tagName );
|
||||
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_FindElementWithTagAndName_xlua_st_(RealStatePtr L)
|
||||
{
|
||||
try {
|
||||
|
||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||
|
||||
|
||||
|
||||
|
||||
{
|
||||
string _tagName = LuaAPI.lua_tostring(L, 1);
|
||||
string _name = LuaAPI.lua_tostring(L, 2);
|
||||
System.Xml.XmlNode _parent = (System.Xml.XmlNode)translator.GetObject(L, 3, typeof(System.Xml.XmlNode));
|
||||
|
||||
var gen_ret = IronSourceAdQualityManifestTools.FindElementWithTagAndName( _tagName, _name, _parent );
|
||||
translator.Push(L, gen_ret);
|
||||
|
||||
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
} catch(System.Exception gen_e) {
|
||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
@ -1,205 +0,0 @@
|
||||
#if USE_UNI_LUA
|
||||
using LuaAPI = UniLua.Lua;
|
||||
using RealStatePtr = UniLua.ILuaState;
|
||||
using LuaCSFunction = UniLua.CSharpFunctionDelegate;
|
||||
#else
|
||||
using LuaAPI = XLua.LuaDLL.Lua;
|
||||
using RealStatePtr = System.IntPtr;
|
||||
using LuaCSFunction = XLua.LuaDLL.lua_CSFunction;
|
||||
#endif
|
||||
|
||||
using XLua;
|
||||
using System.Collections.Generic;
|
||||
|
||||
|
||||
namespace XLua.CSObjectWrap
|
||||
{
|
||||
using Utils = XLua.Utils;
|
||||
public class IronSourceAdQualityWrap
|
||||
{
|
||||
public static void __Register(RealStatePtr L)
|
||||
{
|
||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||
System.Type type = typeof(IronSourceAdQuality);
|
||||
Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Utils.EndObjectRegister(type, L, translator, null, null,
|
||||
null, null, null);
|
||||
|
||||
Utils.BeginClassRegister(type, L, __CreateInstance, 5, 0, 0);
|
||||
Utils.RegisterFunc(L, Utils.CLS_IDX, "Initialize", _m_Initialize_xlua_st_);
|
||||
Utils.RegisterFunc(L, Utils.CLS_IDX, "ChangeUserId", _m_ChangeUserId_xlua_st_);
|
||||
Utils.RegisterFunc(L, Utils.CLS_IDX, "SendCustomMediationRevenue", _m_SendCustomMediationRevenue_xlua_st_);
|
||||
Utils.RegisterFunc(L, Utils.CLS_IDX, "setSegment", _m_setSegment_xlua_st_);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Utils.EndClassRegister(type, L, translator);
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int __CreateInstance(RealStatePtr L)
|
||||
{
|
||||
|
||||
try {
|
||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||
if(LuaAPI.lua_gettop(L) == 1)
|
||||
{
|
||||
|
||||
var gen_ret = new IronSourceAdQuality();
|
||||
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 IronSourceAdQuality constructor!");
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int _m_Initialize_xlua_st_(RealStatePtr L)
|
||||
{
|
||||
try {
|
||||
|
||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||
|
||||
|
||||
|
||||
int gen_param_count = LuaAPI.lua_gettop(L);
|
||||
|
||||
if(gen_param_count == 1&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING))
|
||||
{
|
||||
string _appKey = LuaAPI.lua_tostring(L, 1);
|
||||
|
||||
IronSourceAdQuality.Initialize( _appKey );
|
||||
|
||||
|
||||
|
||||
return 0;
|
||||
}
|
||||
if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 1) || LuaAPI.lua_type(L, 1) == LuaTypes.LUA_TSTRING)&& translator.Assignable<ISAdQualityConfig>(L, 2))
|
||||
{
|
||||
string _appKey = LuaAPI.lua_tostring(L, 1);
|
||||
ISAdQualityConfig _adQualityConfig = (ISAdQualityConfig)translator.GetObject(L, 2, typeof(ISAdQualityConfig));
|
||||
|
||||
IronSourceAdQuality.Initialize( _appKey, _adQualityConfig );
|
||||
|
||||
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
} catch(System.Exception gen_e) {
|
||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||
}
|
||||
|
||||
return LuaAPI.luaL_error(L, "invalid arguments to IronSourceAdQuality.Initialize!");
|
||||
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int _m_ChangeUserId_xlua_st_(RealStatePtr L)
|
||||
{
|
||||
try {
|
||||
|
||||
|
||||
|
||||
|
||||
{
|
||||
string _userId = LuaAPI.lua_tostring(L, 1);
|
||||
|
||||
IronSourceAdQuality.ChangeUserId( _userId );
|
||||
|
||||
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
} catch(System.Exception gen_e) {
|
||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int _m_SendCustomMediationRevenue_xlua_st_(RealStatePtr L)
|
||||
{
|
||||
try {
|
||||
|
||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||
|
||||
|
||||
|
||||
|
||||
{
|
||||
ISAdQualityCustomMediationRevenue _customMediationRevenue = (ISAdQualityCustomMediationRevenue)translator.GetObject(L, 1, typeof(ISAdQualityCustomMediationRevenue));
|
||||
|
||||
IronSourceAdQuality.SendCustomMediationRevenue( _customMediationRevenue );
|
||||
|
||||
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
} catch(System.Exception gen_e) {
|
||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int _m_setSegment_xlua_st_(RealStatePtr L)
|
||||
{
|
||||
try {
|
||||
|
||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||
|
||||
|
||||
|
||||
|
||||
{
|
||||
ISAdQualitySegment _segment = (ISAdQualitySegment)translator.GetObject(L, 1, typeof(ISAdQualitySegment));
|
||||
|
||||
IronSourceAdQuality.setSegment( _segment );
|
||||
|
||||
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
} catch(System.Exception gen_e) {
|
||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
@ -1,175 +0,0 @@
|
||||
#if USE_UNI_LUA
|
||||
using LuaAPI = UniLua.Lua;
|
||||
using RealStatePtr = UniLua.ILuaState;
|
||||
using LuaCSFunction = UniLua.CSharpFunctionDelegate;
|
||||
#else
|
||||
using LuaAPI = XLua.LuaDLL.Lua;
|
||||
using RealStatePtr = System.IntPtr;
|
||||
using LuaCSFunction = XLua.LuaDLL.lua_CSFunction;
|
||||
#endif
|
||||
|
||||
using XLua;
|
||||
using System.Collections.Generic;
|
||||
|
||||
|
||||
namespace XLua.CSObjectWrap
|
||||
{
|
||||
using Utils = XLua.Utils;
|
||||
public class ObjectDictionaryWrap
|
||||
{
|
||||
public static void __Register(RealStatePtr L)
|
||||
{
|
||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||
System.Type type = typeof(ObjectDictionary);
|
||||
Utils.BeginObjectRegister(type, L, translator, 0, 2, 1, 1);
|
||||
|
||||
Utils.RegisterFunc(L, Utils.METHOD_IDX, "ConvertUkvp", _m_ConvertUkvp);
|
||||
Utils.RegisterFunc(L, Utils.METHOD_IDX, "ConvertOkvp", _m_ConvertOkvp);
|
||||
|
||||
|
||||
Utils.RegisterFunc(L, Utils.GETTER_IDX, "values", _g_get_values);
|
||||
|
||||
Utils.RegisterFunc(L, Utils.SETTER_IDX, "values", _s_set_values);
|
||||
|
||||
|
||||
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 ObjectDictionary();
|
||||
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 ObjectDictionary constructor!");
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int _m_ConvertUkvp(RealStatePtr L)
|
||||
{
|
||||
try {
|
||||
|
||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||
|
||||
|
||||
ObjectDictionary gen_to_be_invoked = (ObjectDictionary)translator.FastGetCSObj(L, 1);
|
||||
|
||||
|
||||
|
||||
{
|
||||
UnityKeyValuePair<string, string> _ukvp = (UnityKeyValuePair<string, string>)translator.GetObject(L, 2, typeof(UnityKeyValuePair<string, string>));
|
||||
|
||||
var gen_ret = gen_to_be_invoked.ConvertUkvp( _ukvp );
|
||||
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_ConvertOkvp(RealStatePtr L)
|
||||
{
|
||||
try {
|
||||
|
||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||
|
||||
|
||||
ObjectDictionary gen_to_be_invoked = (ObjectDictionary)translator.FastGetCSObj(L, 1);
|
||||
|
||||
|
||||
|
||||
{
|
||||
ObjectKvp _okvp = (ObjectKvp)translator.GetObject(L, 2, typeof(ObjectKvp));
|
||||
|
||||
var gen_ret = gen_to_be_invoked.ConvertOkvp( _okvp );
|
||||
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_values(RealStatePtr L)
|
||||
{
|
||||
try {
|
||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||
|
||||
ObjectDictionary gen_to_be_invoked = (ObjectDictionary)translator.FastGetCSObj(L, 1);
|
||||
translator.Push(L, gen_to_be_invoked.values);
|
||||
} catch(System.Exception gen_e) {
|
||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int _s_set_values(RealStatePtr L)
|
||||
{
|
||||
try {
|
||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||
|
||||
ObjectDictionary gen_to_be_invoked = (ObjectDictionary)translator.FastGetCSObj(L, 1);
|
||||
gen_to_be_invoked.values = (System.Collections.Generic.List<ObjectKvp>)translator.GetObject(L, 2, typeof(System.Collections.Generic.List<ObjectKvp>));
|
||||
|
||||
} catch(System.Exception gen_e) {
|
||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
@ -1,148 +0,0 @@
|
||||
#if USE_UNI_LUA
|
||||
using LuaAPI = UniLua.Lua;
|
||||
using RealStatePtr = UniLua.ILuaState;
|
||||
using LuaCSFunction = UniLua.CSharpFunctionDelegate;
|
||||
#else
|
||||
using LuaAPI = XLua.LuaDLL.Lua;
|
||||
using RealStatePtr = System.IntPtr;
|
||||
using LuaCSFunction = XLua.LuaDLL.lua_CSFunction;
|
||||
#endif
|
||||
|
||||
using XLua;
|
||||
using System.Collections.Generic;
|
||||
|
||||
|
||||
namespace XLua.CSObjectWrap
|
||||
{
|
||||
using Utils = XLua.Utils;
|
||||
public class ObjectKvpWrap
|
||||
{
|
||||
public static void __Register(RealStatePtr L)
|
||||
{
|
||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||
System.Type type = typeof(ObjectKvp);
|
||||
Utils.BeginObjectRegister(type, L, translator, 0, 0, 2, 2);
|
||||
|
||||
|
||||
|
||||
Utils.RegisterFunc(L, Utils.GETTER_IDX, "Value", _g_get_Value);
|
||||
Utils.RegisterFunc(L, Utils.GETTER_IDX, "value", _g_get_value);
|
||||
|
||||
Utils.RegisterFunc(L, Utils.SETTER_IDX, "Value", _s_set_Value);
|
||||
Utils.RegisterFunc(L, Utils.SETTER_IDX, "value", _s_set_value);
|
||||
|
||||
|
||||
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) == 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);
|
||||
|
||||
var gen_ret = new ObjectKvp(_key, _value);
|
||||
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 ObjectKvp constructor!");
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int _g_get_Value(RealStatePtr L)
|
||||
{
|
||||
try {
|
||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||
|
||||
ObjectKvp gen_to_be_invoked = (ObjectKvp)translator.FastGetCSObj(L, 1);
|
||||
LuaAPI.lua_pushstring(L, gen_to_be_invoked.Value);
|
||||
} catch(System.Exception gen_e) {
|
||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int _g_get_value(RealStatePtr L)
|
||||
{
|
||||
try {
|
||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||
|
||||
ObjectKvp gen_to_be_invoked = (ObjectKvp)translator.FastGetCSObj(L, 1);
|
||||
LuaAPI.lua_pushstring(L, gen_to_be_invoked.value);
|
||||
} catch(System.Exception gen_e) {
|
||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int _s_set_Value(RealStatePtr L)
|
||||
{
|
||||
try {
|
||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||
|
||||
ObjectKvp gen_to_be_invoked = (ObjectKvp)translator.FastGetCSObj(L, 1);
|
||||
gen_to_be_invoked.Value = LuaAPI.lua_tostring(L, 2);
|
||||
|
||||
} catch(System.Exception gen_e) {
|
||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||
static int _s_set_value(RealStatePtr L)
|
||||
{
|
||||
try {
|
||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||
|
||||
ObjectKvp gen_to_be_invoked = (ObjectKvp)translator.FastGetCSObj(L, 1);
|
||||
gen_to_be_invoked.value = LuaAPI.lua_tostring(L, 2);
|
||||
|
||||
} catch(System.Exception gen_e) {
|
||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
@ -1,67 +0,0 @@
|
||||
#if USE_UNI_LUA
|
||||
using LuaAPI = UniLua.Lua;
|
||||
using RealStatePtr = UniLua.ILuaState;
|
||||
using LuaCSFunction = UniLua.CSharpFunctionDelegate;
|
||||
#else
|
||||
using LuaAPI = XLua.LuaDLL.Lua;
|
||||
using RealStatePtr = System.IntPtr;
|
||||
using LuaCSFunction = XLua.LuaDLL.lua_CSFunction;
|
||||
#endif
|
||||
|
||||
using XLua;
|
||||
using System.Collections.Generic;
|
||||
|
||||
|
||||
namespace XLua.CSObjectWrap
|
||||
{
|
||||
using Utils = XLua.Utils;
|
||||
public class SceneSingletonWrap
|
||||
{
|
||||
public static void __Register(RealStatePtr L)
|
||||
{
|
||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||
System.Type type = typeof(SceneSingleton);
|
||||
Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
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, "SceneSingleton does not have a constructor!");
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
@ -1,67 +0,0 @@
|
||||
#if USE_UNI_LUA
|
||||
using LuaAPI = UniLua.Lua;
|
||||
using RealStatePtr = UniLua.ILuaState;
|
||||
using LuaCSFunction = UniLua.CSharpFunctionDelegate;
|
||||
#else
|
||||
using LuaAPI = XLua.LuaDLL.Lua;
|
||||
using RealStatePtr = System.IntPtr;
|
||||
using LuaCSFunction = XLua.LuaDLL.lua_CSFunction;
|
||||
#endif
|
||||
|
||||
using XLua;
|
||||
using System.Collections.Generic;
|
||||
|
||||
|
||||
namespace XLua.CSObjectWrap
|
||||
{
|
||||
using Utils = XLua.Utils;
|
||||
public class UnitySingletonWrap
|
||||
{
|
||||
public static void __Register(RealStatePtr L)
|
||||
{
|
||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||
System.Type type = typeof(UnitySingleton);
|
||||
Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0);
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
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, "UnitySingleton does not have a constructor!");
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
@ -36,11 +36,6 @@ namespace XLua
|
||||
translator.RegisterPushAndGetAndUpdate<UnityEngine.Ray2D>(translator.PushUnityEngineRay2D, translator.Get, translator.UpdateUnityEngineRay2D);
|
||||
translator.RegisterPushAndGetAndUpdate<AdFormat>(translator.PushAdFormat, translator.Get, translator.UpdateAdFormat);
|
||||
translator.RegisterPushAndGetAndUpdate<IronSourceBannerPosition>(translator.PushIronSourceBannerPosition, translator.Get, translator.UpdateIronSourceBannerPosition);
|
||||
translator.RegisterPushAndGetAndUpdate<ISAdQualityDeviceIdType>(translator.PushISAdQualityDeviceIdType, translator.Get, translator.UpdateISAdQualityDeviceIdType);
|
||||
translator.RegisterPushAndGetAndUpdate<ISAdQualityAdType>(translator.PushISAdQualityAdType, translator.Get, translator.UpdateISAdQualityAdType);
|
||||
translator.RegisterPushAndGetAndUpdate<ISAdQualityInitError>(translator.PushISAdQualityInitError, translator.Get, translator.UpdateISAdQualityInitError);
|
||||
translator.RegisterPushAndGetAndUpdate<ISAdQualityLogLevel>(translator.PushISAdQualityLogLevel, translator.Get, translator.UpdateISAdQualityLogLevel);
|
||||
translator.RegisterPushAndGetAndUpdate<ISAdQualityMediationNetwork>(translator.PushISAdQualityMediationNetwork, translator.Get, translator.UpdateISAdQualityMediationNetwork);
|
||||
translator.RegisterPushAndGetAndUpdate<UIImageSheetAnimation.AnimationType>(translator.PushUIImageSheetAnimationAnimationType, translator.Get, translator.UpdateUIImageSheetAnimationAnimationType);
|
||||
translator.RegisterPushAndGetAndUpdate<UIImageSheetAnimation.TimeType>(translator.PushUIImageSheetAnimationTimeType, translator.Get, translator.UpdateUIImageSheetAnimationTimeType);
|
||||
translator.RegisterPushAndGetAndUpdate<UIImageSheetAnimation.StartFrameType>(translator.PushUIImageSheetAnimationStartFrameType, translator.Get, translator.UpdateUIImageSheetAnimationStartFrameType);
|
||||
@ -822,426 +817,6 @@ namespace XLua
|
||||
}
|
||||
}
|
||||
|
||||
int ISAdQualityDeviceIdType_TypeID = -1;
|
||||
int ISAdQualityDeviceIdType_EnumRef = -1;
|
||||
|
||||
public void PushISAdQualityDeviceIdType(RealStatePtr L, ISAdQualityDeviceIdType val)
|
||||
{
|
||||
if (ISAdQualityDeviceIdType_TypeID == -1)
|
||||
{
|
||||
bool is_first;
|
||||
ISAdQualityDeviceIdType_TypeID = getTypeId(L, typeof(ISAdQualityDeviceIdType), out is_first);
|
||||
|
||||
if (ISAdQualityDeviceIdType_EnumRef == -1)
|
||||
{
|
||||
Utils.LoadCSTable(L, typeof(ISAdQualityDeviceIdType));
|
||||
ISAdQualityDeviceIdType_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
if (LuaAPI.xlua_tryget_cachedud(L, (int)val, ISAdQualityDeviceIdType_EnumRef) == 1)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, ISAdQualityDeviceIdType_TypeID);
|
||||
if (!CopyByValue.Pack(buff, 0, (int)val))
|
||||
{
|
||||
throw new Exception("pack fail fail for ISAdQualityDeviceIdType ,value="+val);
|
||||
}
|
||||
|
||||
LuaAPI.lua_getref(L, ISAdQualityDeviceIdType_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 ISAdQualityDeviceIdType val)
|
||||
{
|
||||
LuaTypes type = LuaAPI.lua_type(L, index);
|
||||
if (type == LuaTypes.LUA_TUSERDATA )
|
||||
{
|
||||
if (LuaAPI.xlua_gettypeid(L, index) != ISAdQualityDeviceIdType_TypeID)
|
||||
{
|
||||
throw new Exception("invalid userdata for ISAdQualityDeviceIdType");
|
||||
}
|
||||
|
||||
IntPtr buff = LuaAPI.lua_touserdata(L, index);
|
||||
int e;
|
||||
if (!CopyByValue.UnPack(buff, 0, out e))
|
||||
{
|
||||
throw new Exception("unpack fail for ISAdQualityDeviceIdType");
|
||||
}
|
||||
val = (ISAdQualityDeviceIdType)e;
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
val = (ISAdQualityDeviceIdType)objectCasters.GetCaster(typeof(ISAdQualityDeviceIdType))(L, index, null);
|
||||
}
|
||||
}
|
||||
|
||||
public void UpdateISAdQualityDeviceIdType(RealStatePtr L, int index, ISAdQualityDeviceIdType val)
|
||||
{
|
||||
|
||||
if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA)
|
||||
{
|
||||
if (LuaAPI.xlua_gettypeid(L, index) != ISAdQualityDeviceIdType_TypeID)
|
||||
{
|
||||
throw new Exception("invalid userdata for ISAdQualityDeviceIdType");
|
||||
}
|
||||
|
||||
IntPtr buff = LuaAPI.lua_touserdata(L, index);
|
||||
if (!CopyByValue.Pack(buff, 0, (int)val))
|
||||
{
|
||||
throw new Exception("pack fail for ISAdQualityDeviceIdType ,value="+val);
|
||||
}
|
||||
}
|
||||
|
||||
else
|
||||
{
|
||||
throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index));
|
||||
}
|
||||
}
|
||||
|
||||
int ISAdQualityAdType_TypeID = -1;
|
||||
int ISAdQualityAdType_EnumRef = -1;
|
||||
|
||||
public void PushISAdQualityAdType(RealStatePtr L, ISAdQualityAdType val)
|
||||
{
|
||||
if (ISAdQualityAdType_TypeID == -1)
|
||||
{
|
||||
bool is_first;
|
||||
ISAdQualityAdType_TypeID = getTypeId(L, typeof(ISAdQualityAdType), out is_first);
|
||||
|
||||
if (ISAdQualityAdType_EnumRef == -1)
|
||||
{
|
||||
Utils.LoadCSTable(L, typeof(ISAdQualityAdType));
|
||||
ISAdQualityAdType_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
if (LuaAPI.xlua_tryget_cachedud(L, (int)val, ISAdQualityAdType_EnumRef) == 1)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, ISAdQualityAdType_TypeID);
|
||||
if (!CopyByValue.Pack(buff, 0, (int)val))
|
||||
{
|
||||
throw new Exception("pack fail fail for ISAdQualityAdType ,value="+val);
|
||||
}
|
||||
|
||||
LuaAPI.lua_getref(L, ISAdQualityAdType_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 ISAdQualityAdType val)
|
||||
{
|
||||
LuaTypes type = LuaAPI.lua_type(L, index);
|
||||
if (type == LuaTypes.LUA_TUSERDATA )
|
||||
{
|
||||
if (LuaAPI.xlua_gettypeid(L, index) != ISAdQualityAdType_TypeID)
|
||||
{
|
||||
throw new Exception("invalid userdata for ISAdQualityAdType");
|
||||
}
|
||||
|
||||
IntPtr buff = LuaAPI.lua_touserdata(L, index);
|
||||
int e;
|
||||
if (!CopyByValue.UnPack(buff, 0, out e))
|
||||
{
|
||||
throw new Exception("unpack fail for ISAdQualityAdType");
|
||||
}
|
||||
val = (ISAdQualityAdType)e;
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
val = (ISAdQualityAdType)objectCasters.GetCaster(typeof(ISAdQualityAdType))(L, index, null);
|
||||
}
|
||||
}
|
||||
|
||||
public void UpdateISAdQualityAdType(RealStatePtr L, int index, ISAdQualityAdType val)
|
||||
{
|
||||
|
||||
if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA)
|
||||
{
|
||||
if (LuaAPI.xlua_gettypeid(L, index) != ISAdQualityAdType_TypeID)
|
||||
{
|
||||
throw new Exception("invalid userdata for ISAdQualityAdType");
|
||||
}
|
||||
|
||||
IntPtr buff = LuaAPI.lua_touserdata(L, index);
|
||||
if (!CopyByValue.Pack(buff, 0, (int)val))
|
||||
{
|
||||
throw new Exception("pack fail for ISAdQualityAdType ,value="+val);
|
||||
}
|
||||
}
|
||||
|
||||
else
|
||||
{
|
||||
throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index));
|
||||
}
|
||||
}
|
||||
|
||||
int ISAdQualityInitError_TypeID = -1;
|
||||
int ISAdQualityInitError_EnumRef = -1;
|
||||
|
||||
public void PushISAdQualityInitError(RealStatePtr L, ISAdQualityInitError val)
|
||||
{
|
||||
if (ISAdQualityInitError_TypeID == -1)
|
||||
{
|
||||
bool is_first;
|
||||
ISAdQualityInitError_TypeID = getTypeId(L, typeof(ISAdQualityInitError), out is_first);
|
||||
|
||||
if (ISAdQualityInitError_EnumRef == -1)
|
||||
{
|
||||
Utils.LoadCSTable(L, typeof(ISAdQualityInitError));
|
||||
ISAdQualityInitError_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
if (LuaAPI.xlua_tryget_cachedud(L, (int)val, ISAdQualityInitError_EnumRef) == 1)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, ISAdQualityInitError_TypeID);
|
||||
if (!CopyByValue.Pack(buff, 0, (int)val))
|
||||
{
|
||||
throw new Exception("pack fail fail for ISAdQualityInitError ,value="+val);
|
||||
}
|
||||
|
||||
LuaAPI.lua_getref(L, ISAdQualityInitError_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 ISAdQualityInitError val)
|
||||
{
|
||||
LuaTypes type = LuaAPI.lua_type(L, index);
|
||||
if (type == LuaTypes.LUA_TUSERDATA )
|
||||
{
|
||||
if (LuaAPI.xlua_gettypeid(L, index) != ISAdQualityInitError_TypeID)
|
||||
{
|
||||
throw new Exception("invalid userdata for ISAdQualityInitError");
|
||||
}
|
||||
|
||||
IntPtr buff = LuaAPI.lua_touserdata(L, index);
|
||||
int e;
|
||||
if (!CopyByValue.UnPack(buff, 0, out e))
|
||||
{
|
||||
throw new Exception("unpack fail for ISAdQualityInitError");
|
||||
}
|
||||
val = (ISAdQualityInitError)e;
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
val = (ISAdQualityInitError)objectCasters.GetCaster(typeof(ISAdQualityInitError))(L, index, null);
|
||||
}
|
||||
}
|
||||
|
||||
public void UpdateISAdQualityInitError(RealStatePtr L, int index, ISAdQualityInitError val)
|
||||
{
|
||||
|
||||
if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA)
|
||||
{
|
||||
if (LuaAPI.xlua_gettypeid(L, index) != ISAdQualityInitError_TypeID)
|
||||
{
|
||||
throw new Exception("invalid userdata for ISAdQualityInitError");
|
||||
}
|
||||
|
||||
IntPtr buff = LuaAPI.lua_touserdata(L, index);
|
||||
if (!CopyByValue.Pack(buff, 0, (int)val))
|
||||
{
|
||||
throw new Exception("pack fail for ISAdQualityInitError ,value="+val);
|
||||
}
|
||||
}
|
||||
|
||||
else
|
||||
{
|
||||
throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index));
|
||||
}
|
||||
}
|
||||
|
||||
int ISAdQualityLogLevel_TypeID = -1;
|
||||
int ISAdQualityLogLevel_EnumRef = -1;
|
||||
|
||||
public void PushISAdQualityLogLevel(RealStatePtr L, ISAdQualityLogLevel val)
|
||||
{
|
||||
if (ISAdQualityLogLevel_TypeID == -1)
|
||||
{
|
||||
bool is_first;
|
||||
ISAdQualityLogLevel_TypeID = getTypeId(L, typeof(ISAdQualityLogLevel), out is_first);
|
||||
|
||||
if (ISAdQualityLogLevel_EnumRef == -1)
|
||||
{
|
||||
Utils.LoadCSTable(L, typeof(ISAdQualityLogLevel));
|
||||
ISAdQualityLogLevel_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
if (LuaAPI.xlua_tryget_cachedud(L, (int)val, ISAdQualityLogLevel_EnumRef) == 1)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, ISAdQualityLogLevel_TypeID);
|
||||
if (!CopyByValue.Pack(buff, 0, (int)val))
|
||||
{
|
||||
throw new Exception("pack fail fail for ISAdQualityLogLevel ,value="+val);
|
||||
}
|
||||
|
||||
LuaAPI.lua_getref(L, ISAdQualityLogLevel_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 ISAdQualityLogLevel val)
|
||||
{
|
||||
LuaTypes type = LuaAPI.lua_type(L, index);
|
||||
if (type == LuaTypes.LUA_TUSERDATA )
|
||||
{
|
||||
if (LuaAPI.xlua_gettypeid(L, index) != ISAdQualityLogLevel_TypeID)
|
||||
{
|
||||
throw new Exception("invalid userdata for ISAdQualityLogLevel");
|
||||
}
|
||||
|
||||
IntPtr buff = LuaAPI.lua_touserdata(L, index);
|
||||
int e;
|
||||
if (!CopyByValue.UnPack(buff, 0, out e))
|
||||
{
|
||||
throw new Exception("unpack fail for ISAdQualityLogLevel");
|
||||
}
|
||||
val = (ISAdQualityLogLevel)e;
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
val = (ISAdQualityLogLevel)objectCasters.GetCaster(typeof(ISAdQualityLogLevel))(L, index, null);
|
||||
}
|
||||
}
|
||||
|
||||
public void UpdateISAdQualityLogLevel(RealStatePtr L, int index, ISAdQualityLogLevel val)
|
||||
{
|
||||
|
||||
if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA)
|
||||
{
|
||||
if (LuaAPI.xlua_gettypeid(L, index) != ISAdQualityLogLevel_TypeID)
|
||||
{
|
||||
throw new Exception("invalid userdata for ISAdQualityLogLevel");
|
||||
}
|
||||
|
||||
IntPtr buff = LuaAPI.lua_touserdata(L, index);
|
||||
if (!CopyByValue.Pack(buff, 0, (int)val))
|
||||
{
|
||||
throw new Exception("pack fail for ISAdQualityLogLevel ,value="+val);
|
||||
}
|
||||
}
|
||||
|
||||
else
|
||||
{
|
||||
throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index));
|
||||
}
|
||||
}
|
||||
|
||||
int ISAdQualityMediationNetwork_TypeID = -1;
|
||||
int ISAdQualityMediationNetwork_EnumRef = -1;
|
||||
|
||||
public void PushISAdQualityMediationNetwork(RealStatePtr L, ISAdQualityMediationNetwork val)
|
||||
{
|
||||
if (ISAdQualityMediationNetwork_TypeID == -1)
|
||||
{
|
||||
bool is_first;
|
||||
ISAdQualityMediationNetwork_TypeID = getTypeId(L, typeof(ISAdQualityMediationNetwork), out is_first);
|
||||
|
||||
if (ISAdQualityMediationNetwork_EnumRef == -1)
|
||||
{
|
||||
Utils.LoadCSTable(L, typeof(ISAdQualityMediationNetwork));
|
||||
ISAdQualityMediationNetwork_EnumRef = LuaAPI.luaL_ref(L, LuaIndexes.LUA_REGISTRYINDEX);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
if (LuaAPI.xlua_tryget_cachedud(L, (int)val, ISAdQualityMediationNetwork_EnumRef) == 1)
|
||||
{
|
||||
return;
|
||||
}
|
||||
|
||||
IntPtr buff = LuaAPI.xlua_pushstruct(L, 4, ISAdQualityMediationNetwork_TypeID);
|
||||
if (!CopyByValue.Pack(buff, 0, (int)val))
|
||||
{
|
||||
throw new Exception("pack fail fail for ISAdQualityMediationNetwork ,value="+val);
|
||||
}
|
||||
|
||||
LuaAPI.lua_getref(L, ISAdQualityMediationNetwork_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 ISAdQualityMediationNetwork val)
|
||||
{
|
||||
LuaTypes type = LuaAPI.lua_type(L, index);
|
||||
if (type == LuaTypes.LUA_TUSERDATA )
|
||||
{
|
||||
if (LuaAPI.xlua_gettypeid(L, index) != ISAdQualityMediationNetwork_TypeID)
|
||||
{
|
||||
throw new Exception("invalid userdata for ISAdQualityMediationNetwork");
|
||||
}
|
||||
|
||||
IntPtr buff = LuaAPI.lua_touserdata(L, index);
|
||||
int e;
|
||||
if (!CopyByValue.UnPack(buff, 0, out e))
|
||||
{
|
||||
throw new Exception("unpack fail for ISAdQualityMediationNetwork");
|
||||
}
|
||||
val = (ISAdQualityMediationNetwork)e;
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
val = (ISAdQualityMediationNetwork)objectCasters.GetCaster(typeof(ISAdQualityMediationNetwork))(L, index, null);
|
||||
}
|
||||
}
|
||||
|
||||
public void UpdateISAdQualityMediationNetwork(RealStatePtr L, int index, ISAdQualityMediationNetwork val)
|
||||
{
|
||||
|
||||
if (LuaAPI.lua_type(L, index) == LuaTypes.LUA_TUSERDATA)
|
||||
{
|
||||
if (LuaAPI.xlua_gettypeid(L, index) != ISAdQualityMediationNetwork_TypeID)
|
||||
{
|
||||
throw new Exception("invalid userdata for ISAdQualityMediationNetwork");
|
||||
}
|
||||
|
||||
IntPtr buff = LuaAPI.lua_touserdata(L, index);
|
||||
if (!CopyByValue.Pack(buff, 0, (int)val))
|
||||
{
|
||||
throw new Exception("pack fail for ISAdQualityMediationNetwork ,value="+val);
|
||||
}
|
||||
}
|
||||
|
||||
else
|
||||
{
|
||||
throw new Exception("try to update a data with lua type:" + LuaAPI.lua_type(L, index));
|
||||
}
|
||||
}
|
||||
|
||||
int UIImageSheetAnimationAnimationType_TypeID = -1;
|
||||
int UIImageSheetAnimationAnimationType_EnumRef = -1;
|
||||
|
||||
@ -7781,36 +7356,6 @@ namespace XLua
|
||||
translator.PushIronSourceBannerPosition(L, array[index]);
|
||||
return true;
|
||||
}
|
||||
else if (type == typeof(ISAdQualityDeviceIdType[]))
|
||||
{
|
||||
ISAdQualityDeviceIdType[] array = obj as ISAdQualityDeviceIdType[];
|
||||
translator.PushISAdQualityDeviceIdType(L, array[index]);
|
||||
return true;
|
||||
}
|
||||
else if (type == typeof(ISAdQualityAdType[]))
|
||||
{
|
||||
ISAdQualityAdType[] array = obj as ISAdQualityAdType[];
|
||||
translator.PushISAdQualityAdType(L, array[index]);
|
||||
return true;
|
||||
}
|
||||
else if (type == typeof(ISAdQualityInitError[]))
|
||||
{
|
||||
ISAdQualityInitError[] array = obj as ISAdQualityInitError[];
|
||||
translator.PushISAdQualityInitError(L, array[index]);
|
||||
return true;
|
||||
}
|
||||
else if (type == typeof(ISAdQualityLogLevel[]))
|
||||
{
|
||||
ISAdQualityLogLevel[] array = obj as ISAdQualityLogLevel[];
|
||||
translator.PushISAdQualityLogLevel(L, array[index]);
|
||||
return true;
|
||||
}
|
||||
else if (type == typeof(ISAdQualityMediationNetwork[]))
|
||||
{
|
||||
ISAdQualityMediationNetwork[] array = obj as ISAdQualityMediationNetwork[];
|
||||
translator.PushISAdQualityMediationNetwork(L, array[index]);
|
||||
return true;
|
||||
}
|
||||
else if (type == typeof(UIImageSheetAnimation.AnimationType[]))
|
||||
{
|
||||
UIImageSheetAnimation.AnimationType[] array = obj as UIImageSheetAnimation.AnimationType[];
|
||||
@ -8339,36 +7884,6 @@ namespace XLua
|
||||
translator.Get(L, obj_idx, out array[array_idx]);
|
||||
return true;
|
||||
}
|
||||
else if (type == typeof(ISAdQualityDeviceIdType[]))
|
||||
{
|
||||
ISAdQualityDeviceIdType[] array = obj as ISAdQualityDeviceIdType[];
|
||||
translator.Get(L, obj_idx, out array[array_idx]);
|
||||
return true;
|
||||
}
|
||||
else if (type == typeof(ISAdQualityAdType[]))
|
||||
{
|
||||
ISAdQualityAdType[] array = obj as ISAdQualityAdType[];
|
||||
translator.Get(L, obj_idx, out array[array_idx]);
|
||||
return true;
|
||||
}
|
||||
else if (type == typeof(ISAdQualityInitError[]))
|
||||
{
|
||||
ISAdQualityInitError[] array = obj as ISAdQualityInitError[];
|
||||
translator.Get(L, obj_idx, out array[array_idx]);
|
||||
return true;
|
||||
}
|
||||
else if (type == typeof(ISAdQualityLogLevel[]))
|
||||
{
|
||||
ISAdQualityLogLevel[] array = obj as ISAdQualityLogLevel[];
|
||||
translator.Get(L, obj_idx, out array[array_idx]);
|
||||
return true;
|
||||
}
|
||||
else if (type == typeof(ISAdQualityMediationNetwork[]))
|
||||
{
|
||||
ISAdQualityMediationNetwork[] array = obj as ISAdQualityMediationNetwork[];
|
||||
translator.Get(L, obj_idx, out array[array_idx]);
|
||||
return true;
|
||||
}
|
||||
else if (type == typeof(UIImageSheetAnimation.AnimationType[]))
|
||||
{
|
||||
UIImageSheetAnimation.AnimationType[] array = obj as UIImageSheetAnimation.AnimationType[];
|
||||
|
||||
@ -2440,66 +2440,6 @@ namespace XLua.CSObjectWrap
|
||||
translator.DelayWrapLoader(typeof(WaterfallConfiguration), WaterfallConfigurationWrap.__Register);
|
||||
|
||||
|
||||
translator.DelayWrapLoader(typeof(ISAdQualityDeviceIdType), ISAdQualityDeviceIdTypeWrap.__Register);
|
||||
|
||||
|
||||
translator.DelayWrapLoader(typeof(ISAdQualityAdType), ISAdQualityAdTypeWrap.__Register);
|
||||
|
||||
|
||||
translator.DelayWrapLoader(typeof(ISAdQualityConfig), ISAdQualityConfigWrap.__Register);
|
||||
|
||||
|
||||
translator.DelayWrapLoader(typeof(ISAdQualityCustomMediationRevenue), ISAdQualityCustomMediationRevenueWrap.__Register);
|
||||
|
||||
|
||||
translator.DelayWrapLoader(typeof(ISAdQualityInitCallback), ISAdQualityInitCallbackWrap.__Register);
|
||||
|
||||
|
||||
translator.DelayWrapLoader(typeof(ISAdQualityInitCallbackWrapper), ISAdQualityInitCallbackWrapperWrap.__Register);
|
||||
|
||||
|
||||
translator.DelayWrapLoader(typeof(ISAdQualityInitError), ISAdQualityInitErrorWrap.__Register);
|
||||
|
||||
|
||||
translator.DelayWrapLoader(typeof(ISAdQualityLogLevel), ISAdQualityLogLevelWrap.__Register);
|
||||
|
||||
|
||||
translator.DelayWrapLoader(typeof(ISAdQualityMediationNetwork), ISAdQualityMediationNetworkWrap.__Register);
|
||||
|
||||
|
||||
translator.DelayWrapLoader(typeof(ISAdQualitySegment), ISAdQualitySegmentWrap.__Register);
|
||||
|
||||
|
||||
translator.DelayWrapLoader(typeof(ISAdQualityUtils), ISAdQualityUtilsWrap.__Register);
|
||||
|
||||
|
||||
translator.DelayWrapLoader(typeof(IronSourceAdQuality), IronSourceAdQualityWrap.__Register);
|
||||
|
||||
|
||||
translator.DelayWrapLoader(typeof(ISAdQualityEditorScript), ISAdQualityEditorScriptWrap.__Register);
|
||||
|
||||
|
||||
translator.DelayWrapLoader(typeof(IronSourceAdQualityManifestTools), IronSourceAdQualityManifestToolsWrap.__Register);
|
||||
|
||||
|
||||
translator.DelayWrapLoader(typeof(ObjectKvp), ObjectKvpWrap.__Register);
|
||||
|
||||
|
||||
translator.DelayWrapLoader(typeof(ObjectDictionary), ObjectDictionaryWrap.__Register);
|
||||
|
||||
|
||||
translator.DelayWrapLoader(typeof(BaseBehaviour), BaseBehaviourWrap.__Register);
|
||||
|
||||
|
||||
translator.DelayWrapLoader(typeof(CodeGeneratedSingleton), CodeGeneratedSingletonWrap.__Register);
|
||||
|
||||
|
||||
translator.DelayWrapLoader(typeof(SceneSingleton), SceneSingletonWrap.__Register);
|
||||
|
||||
|
||||
translator.DelayWrapLoader(typeof(UnitySingleton), UnitySingletonWrap.__Register);
|
||||
|
||||
|
||||
translator.DelayWrapLoader(typeof(TAExample), TAExampleWrap.__Register);
|
||||
|
||||
|
||||
@ -2529,10 +2469,6 @@ namespace XLua.CSObjectWrap
|
||||
|
||||
translator.DelayWrapLoader(typeof(ThinkingAnalytics.TDPresetProperties), ThinkingAnalyticsTDPresetPropertiesWrap.__Register);
|
||||
|
||||
}
|
||||
|
||||
static void wrapInit16(LuaEnv luaenv, ObjectTranslator translator)
|
||||
{
|
||||
|
||||
translator.DelayWrapLoader(typeof(ThinkingAnalytics.ThinkingAnalyticsAPI), ThinkingAnalyticsThinkingAnalyticsAPIWrap.__Register);
|
||||
|
||||
@ -2552,9 +2488,6 @@ namespace XLua.CSObjectWrap
|
||||
translator.DelayWrapLoader(typeof(ThinkingAnalytics.TaException.ThinkingSDKExceptionHandler), ThinkingAnalyticsTaExceptionThinkingSDKExceptionHandlerWrap.__Register);
|
||||
|
||||
|
||||
translator.DelayWrapLoader(typeof(ISAdQualityJSON.Json), ISAdQualityJSONJsonWrap.__Register);
|
||||
|
||||
|
||||
translator.DelayWrapLoader(typeof(IronSourceJSON.Json), IronSourceJSONJsonWrap.__Register);
|
||||
|
||||
|
||||
@ -2596,6 +2529,10 @@ namespace XLua.CSObjectWrap
|
||||
|
||||
translator.DelayWrapLoader(typeof(com.adjust.sdk.AdjustEventFailure), comadjustsdkAdjustEventFailureWrap.__Register);
|
||||
|
||||
}
|
||||
|
||||
static void wrapInit16(LuaEnv luaenv, ObjectTranslator translator)
|
||||
{
|
||||
|
||||
translator.DelayWrapLoader(typeof(com.adjust.sdk.AdjustEventSuccess), comadjustsdkAdjustEventSuccessWrap.__Register);
|
||||
|
||||
@ -2686,10 +2623,6 @@ namespace XLua.CSObjectWrap
|
||||
|
||||
translator.DelayWrapLoader(typeof(System.Enum), SystemEnumWrap.__Register);
|
||||
|
||||
}
|
||||
|
||||
static void wrapInit17(LuaEnv luaenv, ObjectTranslator translator)
|
||||
{
|
||||
|
||||
translator.DelayWrapLoader(typeof(System.DateTime), SystemDateTimeWrap.__Register);
|
||||
|
||||
@ -2753,6 +2686,10 @@ namespace XLua.CSObjectWrap
|
||||
|
||||
translator.DelayWrapLoader(typeof(DG.Tweening.Core.TweenerCore<UnityEngine.Vector2, UnityEngine.Vector2, DG.Tweening.Plugins.Options.VectorOptions>), DGTweeningCoreTweenerCore_3_UnityEngineVector2UnityEngineVector2DGTweeningPluginsOptionsVectorOptions_Wrap.__Register);
|
||||
|
||||
}
|
||||
|
||||
static void wrapInit17(LuaEnv luaenv, ObjectTranslator translator)
|
||||
{
|
||||
|
||||
translator.DelayWrapLoader(typeof(UnityEngine.Camera.FieldOfViewAxis), UnityEngineCameraFieldOfViewAxisWrap.__Register);
|
||||
|
||||
@ -2843,10 +2780,6 @@ namespace XLua.CSObjectWrap
|
||||
|
||||
translator.DelayWrapLoader(typeof(UnityEngine.Video.VideoPlayer), UnityEngineVideoVideoPlayerWrap.__Register);
|
||||
|
||||
}
|
||||
|
||||
static void wrapInit18(LuaEnv luaenv, ObjectTranslator translator)
|
||||
{
|
||||
|
||||
translator.DelayWrapLoader(typeof(UnityEngine.Camera.GateFitMode), UnityEngineCameraGateFitModeWrap.__Register);
|
||||
|
||||
@ -2910,6 +2843,10 @@ namespace XLua.CSObjectWrap
|
||||
|
||||
translator.DelayWrapLoader(typeof(UnityEngine.UI.InputField.InputType), UnityEngineUIInputFieldInputTypeWrap.__Register);
|
||||
|
||||
}
|
||||
|
||||
static void wrapInit18(LuaEnv luaenv, ObjectTranslator translator)
|
||||
{
|
||||
|
||||
translator.DelayWrapLoader(typeof(UnityEngine.UI.InputField.CharacterValidation), UnityEngineUIInputFieldCharacterValidationWrap.__Register);
|
||||
|
||||
@ -3000,10 +2937,6 @@ namespace XLua.CSObjectWrap
|
||||
|
||||
translator.DelayWrapLoader(typeof(Spine.Unity.BoneFollower.AxisOrientation), SpineUnityBoneFollowerAxisOrientationWrap.__Register);
|
||||
|
||||
}
|
||||
|
||||
static void wrapInit19(LuaEnv luaenv, ObjectTranslator translator)
|
||||
{
|
||||
|
||||
translator.DelayWrapLoader(typeof(TMPro.TextAlignmentOptions), TMProTextAlignmentOptionsWrap.__Register);
|
||||
|
||||
@ -3067,6 +3000,10 @@ namespace XLua.CSObjectWrap
|
||||
|
||||
translator.DelayWrapLoader(typeof(DG.Tweening.Core.TweenerCore<UnityEngine.Vector3, DG.Tweening.Plugins.Core.PathCore.Path, DG.Tweening.Plugins.Options.PathOptions>), DGTweeningCoreTweenerCore_3_UnityEngineVector3DGTweeningPluginsCorePathCorePathDGTweeningPluginsOptionsPathOptions_Wrap.__Register);
|
||||
|
||||
}
|
||||
|
||||
static void wrapInit19(LuaEnv luaenv, ObjectTranslator translator)
|
||||
{
|
||||
|
||||
translator.DelayWrapLoader(typeof(DG.Tweening.Core.TweenerCore<float, float, DG.Tweening.Plugins.Options.FloatOptions>), DGTweeningCoreTweenerCore_3_SystemSingleSystemSingleDGTweeningPluginsOptionsFloatOptions_Wrap.__Register);
|
||||
|
||||
|
||||
@ -256,26 +256,6 @@
|
||||
<type fullname="IronSourceUtils" preserve="all"/>
|
||||
<type fullname="UnsupportedPlatformAgent" preserve="all"/>
|
||||
<type fullname="WaterfallConfiguration" preserve="all"/>
|
||||
<type fullname="ISAdQualityDeviceIdType" preserve="all"/>
|
||||
<type fullname="ISAdQualityAdType" preserve="all"/>
|
||||
<type fullname="ISAdQualityConfig" preserve="all"/>
|
||||
<type fullname="ISAdQualityCustomMediationRevenue" preserve="all"/>
|
||||
<type fullname="ISAdQualityInitCallback" preserve="all"/>
|
||||
<type fullname="ISAdQualityInitCallbackWrapper" preserve="all"/>
|
||||
<type fullname="ISAdQualityInitError" preserve="all"/>
|
||||
<type fullname="ISAdQualityLogLevel" preserve="all"/>
|
||||
<type fullname="ISAdQualityMediationNetwork" preserve="all"/>
|
||||
<type fullname="ISAdQualitySegment" preserve="all"/>
|
||||
<type fullname="ISAdQualityUtils" preserve="all"/>
|
||||
<type fullname="IronSourceAdQuality" preserve="all"/>
|
||||
<type fullname="ISAdQualityEditorScript" preserve="all"/>
|
||||
<type fullname="IronSourceAdQualityManifestTools" preserve="all"/>
|
||||
<type fullname="ObjectKvp" preserve="all"/>
|
||||
<type fullname="ObjectDictionary" preserve="all"/>
|
||||
<type fullname="BaseBehaviour" preserve="all"/>
|
||||
<type fullname="CodeGeneratedSingleton" preserve="all"/>
|
||||
<type fullname="SceneSingleton" preserve="all"/>
|
||||
<type fullname="UnitySingleton" preserve="all"/>
|
||||
<type fullname="TAExample" preserve="all"/>
|
||||
<type fullname="SignInWithAppleTest_Callbacks" preserve="all"/>
|
||||
<type fullname="SignInWithAppleTest_EventSystem" preserve="all"/>
|
||||
@ -292,7 +272,6 @@
|
||||
<type fullname="ThinkingAnalytics.Utils.TD_MiniJSON" preserve="all"/>
|
||||
<type fullname="ThinkingAnalytics.Utils.TD_PropertiesChecker" preserve="all"/>
|
||||
<type fullname="ThinkingAnalytics.TaException.ThinkingSDKExceptionHandler" preserve="all"/>
|
||||
<type fullname="ISAdQualityJSON.Json" preserve="all"/>
|
||||
<type fullname="IronSourceJSON.Json" preserve="all"/>
|
||||
<type fullname="com.adjust.sdk.JSONNode" preserve="all"/>
|
||||
<type fullname="com.adjust.sdk.JSONArray" preserve="all"/>
|
||||
|
||||
@ -98,8 +98,6 @@ dependencies {
|
||||
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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user