Merge branch 'dev_20230815' of http://git.juzugame.com/b6-client/b6-unity into dev_20230815

This commit is contained in:
xy_tu 2023-08-14 21:33:27 +08:00
commit 961e69e534
286 changed files with 8161 additions and 1011 deletions

View File

@ -28,7 +28,7 @@ public class JenkinsAdapter {
// 设置版本号
PlayerSettings.bundleVersion = buildInfo.version;
//SDK要求
PlayerSettings.iOS.targetOSVersionString = "13.0";
PlayerSettings.iOS.targetOSVersionString = "12.0";
//设置Build每次需要增加
PlayerSettings.iOS.buildNumber = versionCode.ToString();
// 隐藏ios的横条

View File

@ -68,7 +68,8 @@ namespace BFEditor
"TMPro.SortingLayerHelper",
"UnityEngine.CloudStreaming",
"BFEditor.EditorBattleRoleAttackOperate",
"IronSourceBannerEvents", "IronSourceEvents", "IronSourceInterstitialEvents", "IronSourceRewardedVideoEvents"
"IronSourceBannerEvents", "IronSourceEvents", "IronSourceInterstitialEvents", "IronSourceRewardedVideoEvents",
"IronSourceAdQualityManifestTools"
};
static bool isExcluded(Type type)

View File

@ -33,8 +33,19 @@ namespace BF
BFLog.Log("unity-script: IronSource.Agent.init");
IronSource.Agent.init(appKey);
IronSource.Agent.setManualLoadRewardedVideo(true);
// 初始化之前先设置一下用户id
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
// ISAdQualityConfig adQualityConfig = new ISAdQualityConfig();
// adQualityConfig.UserId = SystemInfo.deviceUniqueIdentifier;
// IronSourceAdQuality.Initialize(appKey, adQualityConfig);
#else
// string appKey = "unexpected_platform";
#endif

View File

@ -65,8 +65,6 @@ namespace BF
public BFIronSourceSDKManager BFIronSourceSDKMgr { get; private set; }
public BFNativeSDKManager BFNativeSDKMgr { get; private set; }
public BFThirdReportSDKManager BFThirdReportSDKMgr { get; private set; }
//刘海屏
public DZSDKManager DZSDKMgr { get; private set; }
static SDKManager instance;
public static SDKManager Create()
@ -87,9 +85,6 @@ namespace BF
{
sdkGo = new GameObject("SDKManager");
}
// 刘海屏数据
DZSDKMgr = sdkGo.AddComponent<DZSDKManager>();
// 登陆
BFLoginSDKMgr = sdkGo.AddComponent<BFLoginSDKManager>();
// 支付
@ -127,27 +122,5 @@ namespace BF
{
return NativeUtils.GetTimeZone();
}
// 刘海屏信息 ***************************************************************************************************
public NotchType GetNotchScreenType()
{
return DZSDKMgr.GetNotchScreenType();
}
public bool GetNotchScreenEnable()
{
return DZSDKMgr.GetNotchScreenEnable();
}
public int GetNotchScreenWidth()
{
return DZSDKMgr.GetNotchScreenWidth();
}
public int GetNotchScreenHeight()
{
return DZSDKMgr.GetNotchScreenHeight();
}
}
}

View File

@ -4,10 +4,9 @@ using UnityEngine;
namespace BF {
public class SafeAreaManager {
// public const string NOTCH_SCREEN_SIMULATE = "NOTCH_SCREEN_SIMULATE";
private static SafeAreaManager instance;
public static SafeAreaManager Instance {
public static SafeAreaManager Instance{
get {
if (instance == null) {
instance = new SafeAreaManager();
@ -16,55 +15,23 @@ namespace BF {
}
}
/// <summary>
/// 是否开启模拟模式
/// </summary>
/// <returns></returns>
// public static bool CheckIfSimulate () {
// return PlayerPrefs.GetInt ("NOTCH_SCREEN_SIMULATE", 0) == 1;
// }
/// <summary>
/// 得到安全区域
/// </summary>
/// <returns></returns>
public static Rect GetSafeArea () {
// 当前屏幕尺寸
float screenWidth = Screen.width;
float screenHeight = Screen.height;
#if UNITY_EDITOR
public static Rect GetSafeArea ()
{
return Screen.safeArea;
#elif UNITY_IPHONE
return Screen.safeArea;
#elif UNITY_ANDROID
// 安卓直接用SDK方法 不使用SafeArea
return new Rect (0, 0, screenWidth, screenHeight);
#else
return new Rect (0, 0, screenWidth, screenHeight);
#endif
}
/// <summary>
/// 得到竖屏时的刘海高度
/// </summary>
/// <returns></returns>
public static float GetNotchScreenHeight() {
Rect rect = GetSafeArea ();
#if UNITY_EDITOR
public static float GetNotchScreenHeight()
{
Rect rect = GetSafeArea();
return Screen.height - rect.height - rect.y;
#elif UNITY_ANDROID
float height = Screen.height - rect.height - rect.y;
if (height > 0)
{
return height;
}
else
{
return BFMain.Instance.SDKMgr.GetNotchScreenHeight();
}
#else
return Screen.height - rect.height - rect.y;
#endif
}
}
}

View File

@ -1,42 +0,0 @@
// https://stackoverflow.com/questions/55492214/the-annotation-for-nullable-reference-types-should-only-be-used-in-code-within-a
#nullable enable
using UnityEngine;
using System;
namespace MolocoSdk
{
public class AndroidDelegate : PlatformDelegate
{
internal const string PACKAGE_PREFIX = "com.moloco.sdk.publisher";
public void SetPrivacy(PrivacySettings privacySettings){
var molocoPrivacyJavaClasspath = "com.moloco.sdk.adapter.MolocoPrivacy";
using (var MolocoPrivacyJavaClass = new AndroidJavaClass(molocoPrivacyJavaClasspath))
using (var privacySettingsJavaObject = new AndroidJavaObject($"{molocoPrivacyJavaClasspath}$PrivacySettings"))
{
privacySettingsJavaObject.Set("isUserConsent", privacySettings.IsUserConsent.ToBooleanJavaObject());
privacySettingsJavaObject.Set("isAgeRestrictedUser", privacySettings.IsAgeRestrictedUser.ToBooleanJavaObject());
privacySettingsJavaObject.Set("isDoNotSell", privacySettings.IsDoNotSell.ToBooleanJavaObject());
MolocoPrivacyJavaClass.CallStatic("setPrivacy", privacySettingsJavaObject);
}
}
}
internal static class BooleanExtensions
{
internal static AndroidJavaObject? ToBooleanJavaObject(this Boolean? me)
{
using (var BooleanJavaClass = new AndroidJavaClass("java.lang.Boolean")){
var trueJavaObject = BooleanJavaClass.GetStatic<AndroidJavaObject>("TRUE");
var falseJavaObject = BooleanJavaClass.GetStatic<AndroidJavaObject>("FALSE");
if (me == true) return trueJavaObject;
if (me == false) return falseJavaObject;
}
return null;
}
}
}

View File

@ -1,11 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<dependencies>
<androidPackages>
<androidPackage spec="com.moloco.sdk.adapters:ironsource:1.2.3.0">
</androidPackage>
</androidPackages>
<!-- <iosPods>
<iosPod name="MolocoCustomAdapterIronSource" version="~>1.1.0">
</iosPod>
</iosPods> -->
</dependencies>

View File

@ -1,37 +0,0 @@
using UnityEngine;
using System;
namespace MolocoSdk
{
public static class MolocoSDK
{
private static readonly PlatformDelegate platformDelegate;
static MolocoSDK()
{
#if UNITY_ANDROID
platformDelegate = new AndroidDelegate();
#endif
#if UNITY_IOS
platformDelegate = new IOSDelegate();
#endif
}
public static void SetPrivacy(PrivacySettings privacySettings)
{
platformDelegate.SetPrivacy(privacySettings);
}
}
public class PrivacySettings
{
public Boolean? IsUserConsent = null;
public Boolean? IsAgeRestrictedUser = null;
public Boolean? IsDoNotSell = null;
}
interface PlatformDelegate {
void SetPrivacy(PrivacySettings privacySettings);
}
}

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 670c734afec8948daad6b8918af41394
guid: cd642f9c5d7126f47898e5dc9520a8ff
folderAsset: yes
DefaultImporter:
externalObjects: {}

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: bffe607feaf904ee290c809158c77c3e
guid: 6ee27eb8be2558e4482bcaa12bbd4781
folderAsset: yes
DefaultImporter:
externalObjects: {}

View File

@ -0,0 +1,36 @@
<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>

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 899fc029e9d4a447982d2cbb27acbb2e
guid: 0caf106b327a046c5b374834523d4477
TextScriptImporter:
externalObjects: {}
userData:

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: af13f2fbe7195455d9536a2fe52da40a
guid: c104a6ee5617fb048acdd3b2f1cbc512
folderAsset: yes
DefaultImporter:
externalObjects: {}

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: ae460004d99634df8a86e07e1a01faa5
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,6 @@
using System;
public enum ISAdQualityDeviceIdType {
NONE = 0,
GAID = 1,
IDFA = 2
};

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 5930914c0f5874f3899743518ce73c90
guid: 92d1c3826af024ff1a77c6c7d7983c7d
MonoImporter:
externalObjects: {}
serializedVersion: 2

View File

@ -0,0 +1,16 @@
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
};

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: bdacfb2821b5a4918826f91ba4729b3b
guid: 08e1a7bef35354a1883fab85829a4273
MonoImporter:
externalObjects: {}
serializedVersion: 2

View File

@ -0,0 +1,53 @@
#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

View File

@ -1,8 +1,5 @@
fileFormatVersion: 2
guid: f16af8bc1a3477645ad5e39ea50117c4
labels:
- al_max
- al_max_export_path-MaxSdk\Mediation\Moloco\Scripts\Editor\PodfileEditor.cs
guid: c70eb41427c4848d391fa9e66f60daf3
MonoImporter:
externalObjects: {}
serializedVersion: 2

View File

@ -0,0 +1,118 @@
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;
}
}
}

View File

@ -1,8 +1,5 @@
fileFormatVersion: 2
guid: c29941b1bf9c06a498d360afd9b42404
labels:
- al_max
- al_max_export_path-MaxSdk\Mediation\Moloco\Scripts\Editor\MolocoPostProcessBuildiOS.cs
guid: 6ee3acefb6d46481191afc81fb1e4865
MonoImporter:
externalObjects: {}
serializedVersion: 2

View File

@ -0,0 +1,66 @@
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;
}
}
}

View File

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 8bb7937cdf9c640cf8ee92ed1fa34227
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,8 @@
using System;
using UnityEngine;
public interface ISAdQualityInitCallback
{
void adQualitySdkInitSuccess();
void adQualitySdkInitFailed(ISAdQualityInitError adQualityInitError, string errorMessage);
}

View File

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 894fc956cbe6c43e385333baa4651e56
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,88 @@
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
}

View File

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 1f5c838c5a8ff40529569d29728deec4
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,14 @@
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
};

View File

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 6da8d8e07e45042f197fc5f6304a9d62
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,495 @@
/*
* 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&lt;string, object&gt; / List&lt;object&gt;</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 ());
}
}
}
}
}

View File

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: a80f212ad97ca4136b919689ba6ad522
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,9 @@
using System;
public enum ISAdQualityLogLevel {
NONE = 0,
ERROR = 1,
WARNING = 2,
INFO = 3,
DEBUG = 4,
VERBOSE = 5
};

View File

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: c958a1a9721494cefb50a4fad4b6bb8b
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,12 @@
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
};

View File

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: b1c44dbefc86f46d7a84660f64b9ba47
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,66 @@
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;
}
}

View File

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: bbf07b143b428454a85a0dccbb3bd7b0
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,57 @@
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;
}
}

View File

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: ae84ef4134f7e4290bd18d994cd71a5b
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,67 @@
// #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

View File

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: a21b72b3702244ccaa9227784e3fc6f3
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,157 @@
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;
}

View File

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 9316531db81604347bb41857c8e7ea43
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 4338140da312a4c6fb1614cd4725933a
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,22 @@
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
}

View File

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 5e0d3ac0c6a1f4767826e6a49833d7c3
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,208 @@
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;
}
}

View File

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 62494cb2550224675873046db8776006
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,95 @@
// 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));
}
}

View File

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 3d242fa04ee9a4fc79ae19ff5a74303d
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,317 @@
// 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> {
}

View File

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 2b3aeeb1755c04e6f80ffb1e982537f5
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 221bee1d14f6b4afaa10e6a0915411ba
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,16 @@
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() { }
}

View File

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 80937c3c4170b4ff59501e589794ddca
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,17 @@
#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
{
}

View File

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 1a0aa54a1a93447f6a59f4a1534ecbe7
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,17 @@
#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
{
}

View File

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 2b330e7d866904612b12283dfae41b84
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,271 @@
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
}

View File

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: ac12af7b0ebf6409c935fad7857982be
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -1,11 +0,0 @@
fileFormatVersion: 2
guid: a6e954e58c56fb2438b5c2f66d8666e8
labels:
- al_max
- al_max_export_path-MaxSdk\Mediation\Moloco
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -1,11 +0,0 @@
fileFormatVersion: 2
guid: 426b254cd1fef6e4db1a41f112457ab2
labels:
- al_max
- al_max_export_path-MaxSdk\Mediation\Moloco\Editor
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -1,10 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<dependencies>
<androidPackages>
<androidPackage spec="com.moloco.sdk.adapters:applovin:1.2.3.0">
</androidPackage>
</androidPackages>
<iosPods>
<iosPod name="MolocoCustomAdapterAppLovin" version="1.1.0" />
</iosPods>
</dependencies>

View File

@ -1,10 +0,0 @@
fileFormatVersion: 2
guid: b8ccb62a3dfc260408cd3e5c0301f442
labels:
- al_max
- al_max_export_path-MaxSdk\Mediation\Moloco\Editor\ALMolocoAdapterDependencies.xml
TextScriptImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -1,11 +0,0 @@
fileFormatVersion: 2
guid: 5a5da0169be5d8043a9f70b3d4e5c4f2
labels:
- al_max
- al_max_export_path-MaxSdk\Mediation\Moloco\Scripts
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -1,11 +0,0 @@
fileFormatVersion: 2
guid: 5a4d578a58b1e00428f053687d290717
labels:
- al_max
- al_max_export_path-MaxSdk\Mediation\Moloco\Scripts\Editor
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -1,90 +0,0 @@
#if UNITY_IOS || UNITY_IPHONE
using System.Collections.Generic;
using System.IO;
using UnityEditor;
using UnityEditor.Callbacks;
using UnityEditor.iOS.Xcode;
using UnityEditor.iOS.Xcode.Extensions;
namespace Moloco.IOS.Scripts.Editor
{
public class MolocoPostProcessBuildiOS
{
#if !UNITY_2019_3_OR_NEWER
private const string UnityMainTargetName = "Unity-iPhone";
#endif
private static readonly List<string> DynamicLibrariesToEmbed = new List<string>
{
"MolocoSDK.xcframework",
"MolocoCustomAdapter.xcframework"
};
private static void EmbedDynamicLibrariesIfNeeded(string buildPath, PBXProject project, string targetGuid)
{
// Check that the Pods directory exists (it might not if a publisher is building with Generate Podfile setting disabled in EDM).
var podsDirectory = Path.Combine(buildPath, "Pods");
if (!Directory.Exists(podsDirectory)) return;
var dynamicLibraryPathsPresentInProject = new List<string>();
foreach (var dynamicLibraryToSearch in DynamicLibrariesToEmbed)
{
// both .framework and .xcframework are directories, not files
var directories =
Directory.GetDirectories(podsDirectory, dynamicLibraryToSearch, SearchOption.AllDirectories);
if (directories.Length <= 0) continue;
var dynamicLibraryAbsolutePath = directories[0];
var index = dynamicLibraryAbsolutePath.LastIndexOf("Pods");
var relativePath = dynamicLibraryAbsolutePath.Substring(index);
dynamicLibraryPathsPresentInProject.Add(relativePath);
}
if (dynamicLibraryPathsPresentInProject.Count <= 0) return;
#if UNITY_2019_3_OR_NEWER
foreach (var dynamicLibraryPath in dynamicLibraryPathsPresentInProject)
{
var fileGuid = project.AddFile(dynamicLibraryPath, dynamicLibraryPath);
project.AddFileToEmbedFrameworks(targetGuid, fileGuid);
}
#else
string runpathSearchPaths;
#if UNITY_2018_2_OR_NEWER
runpathSearchPaths = project.GetBuildPropertyForAnyConfig(targetGuid, "LD_RUNPATH_SEARCH_PATHS");
#else
runpathSearchPaths = "$(inherited)";
#endif
runpathSearchPaths += string.IsNullOrEmpty(runpathSearchPaths) ? "" : " ";
// Check if runtime search paths already contains the required search paths for dynamic libraries.
if (runpathSearchPaths.Contains("@executable_path/Frameworks"))
return;
runpathSearchPaths += "@executable_path/Frameworks";
project.SetBuildProperty(targetGuid, "LD_RUNPATH_SEARCH_PATHS", runpathSearchPaths);
#endif
}
[PostProcessBuildAttribute(int.MaxValue)]
public static void MolocoPostProcessPbxProject(BuildTarget buildTarget, string buildPath)
{
var projectPath = PBXProject.GetPBXProjectPath(buildPath);
var project = new PBXProject();
project.ReadFromFile(projectPath);
#if UNITY_2019_3_OR_NEWER
var unityMainTargetGuid = project.GetUnityMainTargetGuid();
var unityFrameworkTargetGuid = project.GetUnityFrameworkTargetGuid();
#else
var unityMainTargetGuid = project.TargetGuidByName(UnityMainTargetName);
var unityFrameworkTargetGuid = project.TargetGuidByName(UnityMainTargetName);
#endif
EmbedDynamicLibrariesIfNeeded(buildPath, project, unityMainTargetGuid);
project.WriteToFile(projectPath);
}
}
}
#endif

View File

@ -1,63 +0,0 @@
#if UNITY_IOS || UNITY_IPHONE
using System.IO;
using System.Linq;
using UnityEditor;
using UnityEditor.Callbacks;
using UnityEngine;
namespace Moloco.Scripts.Editor
{
public class PodfileEditor
{
[PostProcessBuild(45)] // Add to the Podfile after it's generated (40) but before "pod install" (50)
public static void OnPostProcessBuild(BuildTarget buildTarget, string pathToBuiltProject)
{
if (buildTarget != BuildTarget.iOS)
{
return;
}
string podfilePath = Path.Combine(pathToBuiltProject, "Podfile");
if (File.Exists(podfilePath))
{
var codeSigningStyle = PlayerSettings.iOS.appleEnableAutomaticSigning ? "Automatic" : "Manual";
var teamId = PlayerSettings.iOS.appleDeveloperTeamID;
var provisioningProfileId = PlayerSettings.iOS.iOSManualProvisioningProfileID;
var provisioningProfileType = PlayerSettings.iOS.iOSManualProvisioningProfileType;
string[] molocoTargets =
{
"MolocoSDKiOS-MolocoSDK",
"MolocoCustomAdapter-MolocoCustomAdapter",
"MolocoCustomAdapterAppLovin-MolocoCustomAdapterAppLovin",
"MolocoCustomAdapterIronSource-MolocoCustomAdapterIronSource"
};
var molocoTargetsString = string.Join(", ", molocoTargets.Select(element => $"'{element}'"));
using var sw = File.AppendText(podfilePath);
sw.WriteLine("\n\n\npost_install do |installer|");
sw.WriteLine(" installer.pods_project.targets.each do |target|");
sw.WriteLine(" target.build_configurations.each do |config|");
sw.WriteLine(" if [" + molocoTargetsString + "].include? target.name");
sw.WriteLine(" config.build_settings['CODE_SIGN_STYLE'] = '" + codeSigningStyle + "'");
sw.WriteLine(" config.build_settings['DEVELOPMENT_TEAM'] = '" + teamId + "'");
if (!PlayerSettings.iOS.appleEnableAutomaticSigning)
{
sw.WriteLine(" config.build_settings['PROVISIONING_PROFILE_APP'] = '" + provisioningProfileId + "\'");
}
sw.WriteLine(" end");
sw.WriteLine(" end");
sw.WriteLine(" end");
sw.WriteLine("end");
}
else
{
Debug.LogWarning("Podfile not found in the Xcode project.");
}
}
}
}
#endif

View File

@ -0,0 +1,286 @@
#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 BFDZSDKManagerWrap
{
public static void __Register(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
System.Type type = typeof(BF.DZSDKManager);
Utils.BeginObjectRegister(type, L, translator, 0, 7, 0, 0);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "CSGetNotchScreenInfo", _m_CSGetNotchScreenInfo);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetNotchScreen", _m_GetNotchScreen);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetNotchScreenInfo", _m_GetNotchScreenInfo);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetNotchScreenType", _m_GetNotchScreenType);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetNotchScreenEnable", _m_GetNotchScreenEnable);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetNotchScreenWidth", _m_GetNotchScreenWidth);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetNotchScreenHeight", _m_GetNotchScreenHeight);
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 BF.DZSDKManager();
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 BF.DZSDKManager constructor!");
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_CSGetNotchScreenInfo(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
BF.DZSDKManager gen_to_be_invoked = (BF.DZSDKManager)translator.FastGetCSObj(L, 1);
{
gen_to_be_invoked.CSGetNotchScreenInfo( );
return 0;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_GetNotchScreen(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
BF.DZSDKManager gen_to_be_invoked = (BF.DZSDKManager)translator.FastGetCSObj(L, 1);
{
string _content = LuaAPI.lua_tostring(L, 2);
gen_to_be_invoked.GetNotchScreen( _content );
return 0;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_GetNotchScreenInfo(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
BF.DZSDKManager gen_to_be_invoked = (BF.DZSDKManager)translator.FastGetCSObj(L, 1);
{
var gen_ret = gen_to_be_invoked.GetNotchScreenInfo( );
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_GetNotchScreenType(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
BF.DZSDKManager gen_to_be_invoked = (BF.DZSDKManager)translator.FastGetCSObj(L, 1);
{
var gen_ret = gen_to_be_invoked.GetNotchScreenType( );
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_GetNotchScreenEnable(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
BF.DZSDKManager gen_to_be_invoked = (BF.DZSDKManager)translator.FastGetCSObj(L, 1);
{
var gen_ret = gen_to_be_invoked.GetNotchScreenEnable( );
LuaAPI.lua_pushboolean(L, gen_ret);
return 1;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_GetNotchScreenWidth(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
BF.DZSDKManager gen_to_be_invoked = (BF.DZSDKManager)translator.FastGetCSObj(L, 1);
{
var gen_ret = gen_to_be_invoked.GetNotchScreenWidth( );
LuaAPI.xlua_pushinteger(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_GetNotchScreenHeight(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
BF.DZSDKManager gen_to_be_invoked = (BF.DZSDKManager)translator.FastGetCSObj(L, 1);
{
var gen_ret = gen_to_be_invoked.GetNotchScreenHeight( );
LuaAPI.xlua_pushinteger(L, gen_ret);
return 1;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
}
}
}

View File

@ -0,0 +1,238 @@
#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 BFNotchScreenInfoWrap
{
public static void __Register(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
System.Type type = typeof(BF.NotchScreenInfo);
Utils.BeginObjectRegister(type, L, translator, 0, 1, 4, 4);
Utils.RegisterFunc(L, Utils.METHOD_IDX, "ToString", _m_ToString);
Utils.RegisterFunc(L, Utils.GETTER_IDX, "notchType", _g_get_notchType);
Utils.RegisterFunc(L, Utils.GETTER_IDX, "enabled", _g_get_enabled);
Utils.RegisterFunc(L, Utils.GETTER_IDX, "width", _g_get_width);
Utils.RegisterFunc(L, Utils.GETTER_IDX, "height", _g_get_height);
Utils.RegisterFunc(L, Utils.SETTER_IDX, "notchType", _s_set_notchType);
Utils.RegisterFunc(L, Utils.SETTER_IDX, "enabled", _s_set_enabled);
Utils.RegisterFunc(L, Utils.SETTER_IDX, "width", _s_set_width);
Utils.RegisterFunc(L, Utils.SETTER_IDX, "height", _s_set_height);
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 BF.NotchScreenInfo();
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 BF.NotchScreenInfo constructor!");
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_ToString(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
BF.NotchScreenInfo gen_to_be_invoked = (BF.NotchScreenInfo)translator.FastGetCSObj(L, 1);
{
var gen_ret = gen_to_be_invoked.ToString( );
LuaAPI.lua_pushstring(L, gen_ret);
return 1;
}
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _g_get_notchType(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
BF.NotchScreenInfo gen_to_be_invoked = (BF.NotchScreenInfo)translator.FastGetCSObj(L, 1);
translator.Push(L, gen_to_be_invoked.notchType);
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return 1;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _g_get_enabled(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
BF.NotchScreenInfo gen_to_be_invoked = (BF.NotchScreenInfo)translator.FastGetCSObj(L, 1);
LuaAPI.lua_pushboolean(L, gen_to_be_invoked.enabled);
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return 1;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _g_get_width(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
BF.NotchScreenInfo gen_to_be_invoked = (BF.NotchScreenInfo)translator.FastGetCSObj(L, 1);
LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.width);
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return 1;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _g_get_height(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
BF.NotchScreenInfo gen_to_be_invoked = (BF.NotchScreenInfo)translator.FastGetCSObj(L, 1);
LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.height);
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return 1;
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _s_set_notchType(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
BF.NotchScreenInfo gen_to_be_invoked = (BF.NotchScreenInfo)translator.FastGetCSObj(L, 1);
BF.NotchType gen_value;translator.Get(L, 2, out gen_value);
gen_to_be_invoked.notchType = 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_enabled(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
BF.NotchScreenInfo gen_to_be_invoked = (BF.NotchScreenInfo)translator.FastGetCSObj(L, 1);
gen_to_be_invoked.enabled = 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_width(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
BF.NotchScreenInfo gen_to_be_invoked = (BF.NotchScreenInfo)translator.FastGetCSObj(L, 1);
gen_to_be_invoked.width = 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_height(RealStatePtr L)
{
try {
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
BF.NotchScreenInfo gen_to_be_invoked = (BF.NotchScreenInfo)translator.FastGetCSObj(L, 1);
gen_to_be_invoked.height = LuaAPI.xlua_tointeger(L, 2);
} catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return 0;
}
}
}

View File

@ -0,0 +1,82 @@
#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;
}
}
}

View File

@ -0,0 +1,67 @@
#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!");
}
}
}

View File

@ -74,6 +74,482 @@ 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)

View File

@ -0,0 +1,303 @@
#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;
}
}
}

View File

@ -0,0 +1,210 @@
#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;
}
}
}

View File

@ -15,12 +15,12 @@ using System.Collections.Generic;
namespace XLua.CSObjectWrap
{
using Utils = XLua.Utils;
public class AFAdRevenueEventWrap
public class ISAdQualityEditorScriptWrap
{
public static void __Register(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
System.Type type = typeof(AFAdRevenueEvent);
System.Type type = typeof(ISAdQualityEditorScript);
Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0);
@ -31,14 +31,9 @@ namespace XLua.CSObjectWrap
Utils.EndObjectRegister(type, L, translator, null, null,
null, null, null);
Utils.BeginClassRegister(type, L, __CreateInstance, 6, 0, 0);
Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "COUNTRY", AFAdRevenueEvent.COUNTRY);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "AD_UNIT", AFAdRevenueEvent.AD_UNIT);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "AD_TYPE", AFAdRevenueEvent.AD_TYPE);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "PLACEMENT", AFAdRevenueEvent.PLACEMENT);
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "ECPM_PAYLOAD", AFAdRevenueEvent.ECPM_PAYLOAD);
@ -55,7 +50,7 @@ namespace XLua.CSObjectWrap
if(LuaAPI.lua_gettop(L) == 1)
{
var gen_ret = new AFAdRevenueEvent();
var gen_ret = new ISAdQualityEditorScript();
translator.Push(L, gen_ret);
return 1;
@ -65,7 +60,7 @@ namespace XLua.CSObjectWrap
catch(System.Exception gen_e) {
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
}
return LuaAPI.luaL_error(L, "invalid arguments to AFAdRevenueEvent constructor!");
return LuaAPI.luaL_error(L, "invalid arguments to ISAdQualityEditorScript constructor!");
}

View File

@ -0,0 +1,125 @@
#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);
}
}
}
}

View File

@ -0,0 +1,115 @@
#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;
}
}
}

View File

@ -0,0 +1,123 @@
#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);
}
}
}
}

View File

@ -0,0 +1,391 @@
#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;
}
}
}

View File

@ -15,12 +15,12 @@ using System.Collections.Generic;
namespace XLua.CSObjectWrap
{
using Utils = XLua.Utils;
public class AppsFlyerSDKAppsFlyerAdRevenueWrap
public class ISAdQualityUtilsWrap
{
public static void __Register(RealStatePtr L)
{
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
System.Type type = typeof(AppsFlyerSDK.AppsFlyerAdRevenue);
System.Type type = typeof(ISAdQualityUtils);
Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0);
@ -32,12 +32,12 @@ namespace XLua.CSObjectWrap
null, null, null);
Utils.BeginClassRegister(type, L, __CreateInstance, 5, 0, 0);
Utils.RegisterFunc(L, Utils.CLS_IDX, "start", _m_start_xlua_st_);
Utils.RegisterFunc(L, Utils.CLS_IDX, "setIsDebug", _m_setIsDebug_xlua_st_);
Utils.RegisterFunc(L, Utils.CLS_IDX, "logAdRevenue", _m_logAdRevenue_xlua_st_);
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.RegisterObject(L, translator, Utils.CLS_IDX, "kAppsFlyerAdRevenueVersion", AppsFlyerSDK.AppsFlyerAdRevenue.kAppsFlyerAdRevenueVersion);
@ -48,24 +48,7 @@ namespace XLua.CSObjectWrap
[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 AppsFlyerSDK.AppsFlyerAdRevenue();
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 AppsFlyerSDK.AppsFlyerAdRevenue constructor!");
return LuaAPI.luaL_error(L, "ISAdQualityUtils does not have a constructor!");
}
@ -76,7 +59,7 @@ namespace XLua.CSObjectWrap
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_start_xlua_st_(RealStatePtr L)
static int _m_LogDebug_xlua_st_(RealStatePtr L)
{
try {
@ -84,8 +67,10 @@ namespace XLua.CSObjectWrap
{
string _tag = LuaAPI.lua_tostring(L, 1);
string _message = LuaAPI.lua_tostring(L, 2);
AppsFlyerSDK.AppsFlyerAdRevenue.start( );
ISAdQualityUtils.LogDebug( _tag, _message );
@ -99,7 +84,7 @@ namespace XLua.CSObjectWrap
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_setIsDebug_xlua_st_(RealStatePtr L)
static int _m_LogError_xlua_st_(RealStatePtr L)
{
try {
@ -107,9 +92,10 @@ namespace XLua.CSObjectWrap
{
bool _isDebug = LuaAPI.lua_toboolean(L, 1);
string _tag = LuaAPI.lua_tostring(L, 1);
string _message = LuaAPI.lua_tostring(L, 2);
AppsFlyerSDK.AppsFlyerAdRevenue.setIsDebug( _isDebug );
ISAdQualityUtils.LogError( _tag, _message );
@ -123,7 +109,32 @@ namespace XLua.CSObjectWrap
}
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
static int _m_logAdRevenue_xlua_st_(RealStatePtr L)
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 {
@ -133,17 +144,14 @@ namespace XLua.CSObjectWrap
{
string _monetizationNetwork = LuaAPI.lua_tostring(L, 1);
AppsFlyerSDK.AppsFlyerAdRevenueMediationNetworkType _mediationNetwork;translator.Get(L, 2, out _mediationNetwork);
double _eventRevenue = LuaAPI.lua_tonumber(L, 3);
string _revenueCurrency = LuaAPI.lua_tostring(L, 4);
System.Collections.Generic.Dictionary<string, string> _additionalParameters = (System.Collections.Generic.Dictionary<string, string>)translator.GetObject(L, 5, typeof(System.Collections.Generic.Dictionary<string, string>));
object _target = translator.GetObject(L, 1, typeof(object));
AppsFlyerSDK.AppsFlyerAdRevenue.logAdRevenue( _monetizationNetwork, _mediationNetwork, _eventRevenue, _revenueCurrency, _additionalParameters );
var gen_ret = ISAdQualityUtils.GetClassName( _target );
LuaAPI.lua_pushstring(L, gen_ret);
return 0;
return 1;
}
} catch(System.Exception gen_e) {

View File

@ -0,0 +1,554 @@
#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);
}
}
}
}

View File

@ -0,0 +1,205 @@
#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);
}
}
}
}

View File

@ -0,0 +1,175 @@
#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;
}
}
}

View File

@ -0,0 +1,148 @@
#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;
}
}
}

View File

@ -0,0 +1,67 @@
#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!");
}
}
}

View File

@ -0,0 +1,67 @@
#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!");
}
}
}

View File

@ -35,6 +35,11 @@ namespace XLua
translator.RegisterPushAndGetAndUpdate<UnityEngine.Bounds>(translator.PushUnityEngineBounds, translator.Get, translator.UpdateUnityEngineBounds);
translator.RegisterPushAndGetAndUpdate<UnityEngine.Ray2D>(translator.PushUnityEngineRay2D, translator.Get, translator.UpdateUnityEngineRay2D);
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);
@ -732,6 +737,426 @@ 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;
@ -7265,6 +7690,36 @@ 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[];
@ -7787,6 +8242,36 @@ 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[];

View File

@ -1386,6 +1386,12 @@ namespace XLua.CSObjectWrap
translator.DelayWrapLoader(typeof(BF.BFThirdReportSDKManager), BFBFThirdReportSDKManagerWrap.__Register);
translator.DelayWrapLoader(typeof(BF.NotchScreenInfo), BFNotchScreenInfoWrap.__Register);
translator.DelayWrapLoader(typeof(BF.DZSDKManager), BFDZSDKManagerWrap.__Register);
translator.DelayWrapLoader(typeof(BF.NativeUtils), BFNativeUtilsWrap.__Register);
@ -1424,16 +1430,16 @@ namespace XLua.CSObjectWrap
translator.DelayWrapLoader(typeof(BF.SoundManager), BFSoundManagerWrap.__Register);
}
static void wrapInit9(LuaEnv luaenv, ObjectTranslator translator)
{
translator.DelayWrapLoader(typeof(BF.Task), BFTaskWrap.__Register);
translator.DelayWrapLoader(typeof(BF.Delayed), BFDelayedWrap.__Register);
}
static void wrapInit9(LuaEnv luaenv, ObjectTranslator translator)
{
translator.DelayWrapLoader(typeof(BF.TaskManager), BFTaskManagerWrap.__Register);
@ -1581,16 +1587,16 @@ namespace XLua.CSObjectWrap
translator.DelayWrapLoader(typeof(BF.BFLayoutBase), BFBFLayoutBaseWrap.__Register);
}
static void wrapInit10(LuaEnv luaenv, ObjectTranslator translator)
{
translator.DelayWrapLoader(typeof(BF.BFCell), BFBFCellWrap.__Register);
translator.DelayWrapLoader(typeof(BF.BFScrollRectBase), BFBFScrollRectBaseWrap.__Register);
}
static void wrapInit10(LuaEnv luaenv, ObjectTranslator translator)
{
translator.DelayWrapLoader(typeof(BF.BFScrollRectCommon), BFBFScrollRectCommonWrap.__Register);
@ -1738,16 +1744,16 @@ namespace XLua.CSObjectWrap
translator.DelayWrapLoader(typeof(TMPro.TMP_MaterialReference), TMProTMP_MaterialReferenceWrap.__Register);
}
static void wrapInit11(LuaEnv luaenv, ObjectTranslator translator)
{
translator.DelayWrapLoader(typeof(TMPro.MaterialReference), TMProMaterialReferenceWrap.__Register);
translator.DelayWrapLoader(typeof(TMPro.TMP_Asset), TMProTMP_AssetWrap.__Register);
}
static void wrapInit11(LuaEnv luaenv, ObjectTranslator translator)
{
translator.DelayWrapLoader(typeof(TMPro.TMP_Character), TMProTMP_CharacterWrap.__Register);
@ -1895,16 +1901,16 @@ namespace XLua.CSObjectWrap
translator.DelayWrapLoader(typeof(TMPro.TMP_TextParsingUtilities), TMProTMP_TextParsingUtilitiesWrap.__Register);
}
static void wrapInit12(LuaEnv luaenv, ObjectTranslator translator)
{
translator.DelayWrapLoader(typeof(TMPro.CaretInfo), TMProCaretInfoWrap.__Register);
translator.DelayWrapLoader(typeof(TMPro.TMP_TextUtilities), TMProTMP_TextUtilitiesWrap.__Register);
}
static void wrapInit12(LuaEnv luaenv, ObjectTranslator translator)
{
translator.DelayWrapLoader(typeof(TMPro.TMP_UpdateManager), TMProTMP_UpdateManagerWrap.__Register);
@ -2052,16 +2058,16 @@ namespace XLua.CSObjectWrap
translator.DelayWrapLoader(typeof(UnityEngine.UI.LayoutUtility), UnityEngineUILayoutUtilityWrap.__Register);
}
static void wrapInit13(LuaEnv luaenv, ObjectTranslator translator)
{
translator.DelayWrapLoader(typeof(UnityEngine.UI.VerticalLayoutGroup), UnityEngineUIVerticalLayoutGroupWrap.__Register);
translator.DelayWrapLoader(typeof(UnityEngine.UI.Mask), UnityEngineUIMaskWrap.__Register);
}
static void wrapInit13(LuaEnv luaenv, ObjectTranslator translator)
{
translator.DelayWrapLoader(typeof(UnityEngine.UI.MaskUtilities), UnityEngineUIMaskUtilitiesWrap.__Register);
@ -2209,16 +2215,16 @@ namespace XLua.CSObjectWrap
translator.DelayWrapLoader(typeof(DG.Tweening.Core.DOTweenSettings.ModulesSetup), DGTweeningCoreDOTweenSettingsModulesSetupWrap.__Register);
}
static void wrapInit14(LuaEnv luaenv, ObjectTranslator translator)
{
translator.DelayWrapLoader(typeof(CloudControl), CloudControlWrap.__Register);
translator.DelayWrapLoader(typeof(AFInAppEventParameterName), AFInAppEventParameterNameWrap.__Register);
}
static void wrapInit14(LuaEnv luaenv, ObjectTranslator translator)
{
translator.DelayWrapLoader(typeof(AFInAppEventType), AFInAppEventTypeWrap.__Register);
@ -2271,9 +2277,6 @@ namespace XLua.CSObjectWrap
translator.DelayWrapLoader(typeof(MonkeyPost), MonkeyPostWrap.__Register);
translator.DelayWrapLoader(typeof(AFAdRevenueEvent), AFAdRevenueEventWrap.__Register);
translator.DelayWrapLoader(typeof(UIInputHelper), UIInputHelperWrap.__Register);
@ -2369,14 +2372,14 @@ namespace XLua.CSObjectWrap
translator.DelayWrapLoader(typeof(IronSourceConfig), IronSourceConfigWrap.__Register);
translator.DelayWrapLoader(typeof(IronSourceConstants), IronSourceConstantsWrap.__Register);
}
static void wrapInit15(LuaEnv luaenv, ObjectTranslator translator)
{
translator.DelayWrapLoader(typeof(IronSourceConstants), IronSourceConstantsWrap.__Register);
translator.DelayWrapLoader(typeof(IronSourceError), IronSourceErrorWrap.__Register);
@ -2431,6 +2434,66 @@ namespace XLua.CSObjectWrap
translator.DelayWrapLoader(typeof(UnsupportedPlatformAgent), UnsupportedPlatformAgentWrap.__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);
@ -2466,6 +2529,10 @@ namespace XLua.CSObjectWrap
translator.DelayWrapLoader(typeof(ThinkingAnalytics.Wrapper.ThinkingAnalyticsWrapper), ThinkingAnalyticsWrapperThinkingAnalyticsWrapperWrap.__Register);
}
static void wrapInit16(LuaEnv luaenv, ObjectTranslator translator)
{
translator.DelayWrapLoader(typeof(ThinkingAnalytics.Utils.TD_Log), ThinkingAnalyticsUtilsTD_LogWrap.__Register);
@ -2479,12 +2546,12 @@ 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);
translator.DelayWrapLoader(typeof(AppsFlyerSDK.AppsFlyerAdRevenue), AppsFlyerSDKAppsFlyerAdRevenueWrap.__Register);
translator.DelayWrapLoader(typeof(com.adjust.sdk.JSONNode), comadjustsdkJSONNodeWrap.__Register);
@ -2529,10 +2596,6 @@ namespace XLua.CSObjectWrap
translator.DelayWrapLoader(typeof(com.adjust.sdk.AdjustLogLevelExtension), comadjustsdkAdjustLogLevelExtensionWrap.__Register);
}
static void wrapInit16(LuaEnv luaenv, ObjectTranslator translator)
{
translator.DelayWrapLoader(typeof(com.adjust.sdk.AdjustPlayStoreSubscription), comadjustsdkAdjustPlayStoreSubscriptionWrap.__Register);
@ -2623,6 +2686,10 @@ namespace XLua.CSObjectWrap
translator.DelayWrapLoader(typeof(System.IO.File), SystemIOFileWrap.__Register);
}
static void wrapInit17(LuaEnv luaenv, ObjectTranslator translator)
{
translator.DelayWrapLoader(typeof(System.DBNull), SystemDBNullWrap.__Register);
@ -2686,10 +2753,6 @@ namespace XLua.CSObjectWrap
translator.DelayWrapLoader(typeof(UnityEngine.Camera.RenderRequestOutputSpace), UnityEngineCameraRenderRequestOutputSpaceWrap.__Register);
}
static void wrapInit17(LuaEnv luaenv, ObjectTranslator translator)
{
translator.DelayWrapLoader(typeof(UnityEngine.TextCore.FaceInfo), UnityEngineTextCoreFaceInfoWrap.__Register);
@ -2780,6 +2843,10 @@ namespace XLua.CSObjectWrap
translator.DelayWrapLoader(typeof(UnityEngine.Camera.MonoOrStereoscopicEye), UnityEngineCameraMonoOrStereoscopicEyeWrap.__Register);
}
static void wrapInit18(LuaEnv luaenv, ObjectTranslator translator)
{
translator.DelayWrapLoader(typeof(UnityEngine.Texture2D.EXRFlags), UnityEngineTexture2DEXRFlagsWrap.__Register);
@ -2843,10 +2910,6 @@ namespace XLua.CSObjectWrap
translator.DelayWrapLoader(typeof(UnityEngine.UI.ScrollRect.MovementType), UnityEngineUIScrollRectMovementTypeWrap.__Register);
}
static void wrapInit18(LuaEnv luaenv, ObjectTranslator translator)
{
translator.DelayWrapLoader(typeof(UnityEngine.UI.ScrollRect.ScrollbarVisibility), UnityEngineUIScrollRectScrollbarVisibilityWrap.__Register);
@ -2937,6 +3000,10 @@ namespace XLua.CSObjectWrap
translator.DelayWrapLoader(typeof(TMPro.TMP_InputField.ContentType), TMProTMP_InputFieldContentTypeWrap.__Register);
}
static void wrapInit19(LuaEnv luaenv, ObjectTranslator translator)
{
translator.DelayWrapLoader(typeof(TMPro.TMP_InputField.InputType), TMProTMP_InputFieldInputTypeWrap.__Register);
@ -3000,10 +3067,6 @@ namespace XLua.CSObjectWrap
translator.DelayWrapLoader(typeof(ThinkingAnalytics.ThinkingAnalyticsAPI.TATimeZone), ThinkingAnalyticsThinkingAnalyticsAPITATimeZoneWrap.__Register);
}
static void wrapInit19(LuaEnv luaenv, ObjectTranslator translator)
{
translator.DelayWrapLoader(typeof(ThinkingAnalytics.ThinkingAnalyticsAPI.TAMode), ThinkingAnalyticsThinkingAnalyticsAPITAModeWrap.__Register);

View File

@ -70,6 +70,8 @@
<type fullname="BF.BFNativeSDKManager" preserve="all"/>
<type fullname="BF.BFPaySDKManager" preserve="all"/>
<type fullname="BF.BFThirdReportSDKManager" preserve="all"/>
<type fullname="BF.NotchScreenInfo" preserve="all"/>
<type fullname="BF.DZSDKManager" preserve="all"/>
<type fullname="BF.NativeUtils" preserve="all"/>
<type fullname="BF.BFParseClientManager" preserve="all"/>
<type fullname="BF.SDKManager" preserve="all"/>
@ -201,7 +203,6 @@
<type fullname="UIOutlineEffect" preserve="all"/>
<type fullname="UIResGhostTweenEffect" preserve="all"/>
<type fullname="MonkeyPost" preserve="all"/>
<type fullname="AFAdRevenueEvent" preserve="all"/>
<type fullname="UIInputHelper" preserve="all"/>
<type fullname="FBWindowsA2UNotificationsManager" preserve="all"/>
<type fullname="FBWindowsADSManager" preserve="all"/>
@ -253,6 +254,26 @@
<type fullname="IronSourceSegmentAndroid" preserve="all"/>
<type fullname="IronSourceUtils" preserve="all"/>
<type fullname="UnsupportedPlatformAgent" 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"/>
@ -269,8 +290,8 @@
<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="AppsFlyerSDK.AppsFlyerAdRevenue" preserve="all"/>
<type fullname="com.adjust.sdk.JSONNode" preserve="all"/>
<type fullname="com.adjust.sdk.JSONArray" preserve="all"/>
<type fullname="com.adjust.sdk.JSONClass" preserve="all"/>

View File

@ -16,6 +16,7 @@ MonoBehaviour:
- {fileID: 21300000, guid: 9e357350e977ba34995eec56fd0eac3f, type: 3}
- {fileID: 21300000, guid: 31bb7f1677899c5489cc9cb12f8efcb2, type: 3}
- {fileID: 21300000, guid: 7688a304dc602c5438e9964659e76ad5, type: 3}
- {fileID: 21300000, guid: ec14b526eecf577428f945beb8d4795a, type: 3}
- {fileID: 21300000, guid: b426fcb41af86c446b56035da14a7078, type: 3}
- {fileID: 21300000, guid: bacdeef037d2e9447ba6a30e69cb47a1, type: 3}
- {fileID: 21300000, guid: 9ad26d4e2e4c6cd4782476fe692d5da2, type: 3}
@ -24,4 +25,4 @@ MonoBehaviour:
- {fileID: 21300000, guid: e8d62598b85dab443859215eef5734ed, type: 3}
- {fileID: 21300000, guid: 9aac967a8882cea4cb65b90cdb6d4057, type: 3}
- {fileID: 21300000, guid: 898c5cf35a33fe94c920ba8347287585, type: 3}
spriteNameList: 310000001f060000200600003200000033000000340000003500000036000000370000003800000039000000
spriteNameList: 310000001f06000020060000210600003200000033000000340000003500000036000000370000003800000039000000

View File

@ -69,6 +69,7 @@ SpriteAtlas:
- {fileID: 21300000, guid: 7688a304dc602c5438e9964659e76ad5, type: 3}
- {fileID: 21300000, guid: b426fcb41af86c446b56035da14a7078, type: 3}
- {fileID: 21300000, guid: 31bb7f1677899c5489cc9cb12f8efcb2, type: 3}
- {fileID: 21300000, guid: ec14b526eecf577428f945beb8d4795a, type: 3}
- {fileID: 21300000, guid: e8d62598b85dab443859215eef5734ed, type: 3}
- {fileID: 21300000, guid: 9aac967a8882cea4cb65b90cdb6d4057, type: 3}
- {fileID: 21300000, guid: 9ad26d4e2e4c6cd4782476fe692d5da2, type: 3}
@ -81,6 +82,7 @@ SpriteAtlas:
- 11
- 2
- 10
- 12
- 7
- 8
- 4

View File

@ -26,6 +26,7 @@ MonoBehaviour:
- {fileID: 21300000, guid: 6fcfdf7ba1e7f4441a15bd5d888541d0, type: 3}
- {fileID: 21300000, guid: 4d5eca674cfc87745bd0c368f2270a6c, type: 3}
- {fileID: 21300000, guid: 7232d781b35ea8742abca796fec7106d, type: 3}
- {fileID: 21300000, guid: b143f69564fbebd479463ddf96a9685a, type: 3}
- {fileID: 21300000, guid: 4c8f9db6b4c3d474ebacc7496c8a9693, type: 3}
- {fileID: 21300000, guid: 88e3c9f601e749946ac9894634ce7894, type: 3}
- {fileID: 21300000, guid: fd69d13156e74d540ae80d30ed9b638f, type: 3}
@ -172,4 +173,4 @@ MonoBehaviour:
- {fileID: 21300000, guid: bb8268a6f00cf454181fe75a9832cdff, type: 3}
- {fileID: 21300000, guid: 56c233d89e320ac4891f34a6706ffc0c, type: 3}
- {fileID: 21300000, guid: d1a0b8eb4c42f7748acb13df7b748132, type: 3}
spriteNameList: e9a43d8deba43d8deca43d8d0ae27a1a2757a7712857a7712957a7712a57a7718b243e8d8c243e8d8d243e8d8e243e8d8f243e8dc48e80a0ec49916fc5f39782c6f39782c7f39782c8f39782c9f39782caf39782cbf39782ccf39782cdf39782ed49916fe3f39782e4f39782e5f39782e6f39782e7f39782e8f39782e9f39782eaf39782ebf39782ecf39782ee49916f02f4978203f4978204f4978205f4978206f4978207f49782ef49916ff049916ff149916ff249916ff349916ff449916ff549916fc58e80a00b4a916f0c4a916f0d4a916f0e4a916f0f4a916f104a916f114a916f124a916f134a916fc68e80a0c78e80a0c88e80a0c98e80a0ca8e80a0cb8e80a0cc8e80a0bed8328da3c7820ca4c7820ca5c7820c01853b19c22f500fbe2eb195bf2eb195c02eb195e8945815e9945815ea9458150c8b0b1a0d8b0b1a0e8b0b1a7d33eeca7e33eeca7f33eecab415951a1fecadc920ecadc922ecadc9a4a12138e0c7a11a50349739513497395234973953349739543497395534973956349739573497395834973959349739e1c7a11a6f34973970349739713497397234973973349739e2c7a11ae3c7a11ae4c7a11ae5c7a11ae6c7a11ae7c7a11ae8c7a11a826e418d7a737b477b737b477c737b477d737b47ffce428d252af848262af848272af848a07f7c4ea17f7c4e3c864f1beef286857351fb6991c62c357451fb69f03a2d357551fb694faf2d357651fb69ae232e357751fb6958aa025459aa0254a15c468d14c42155b6ad7c4f3a0919a03b0919a03c0919a03d0919a03e0919a03f0919a0400919a0410919a0420919a0b7ad7c4fb8ad7c4fb9ad7c4fbaad7c4fbbad7c4fbcad7c4fbdad7c4fbead7c4fc569b158c669b158
spriteNameList: e9a43d8deba43d8deca43d8d0ae27a1a2757a7712857a7712957a7712a57a7718b243e8d8c243e8d8d243e8d8e243e8d8f243e8d90243e8dc48e80a0ec49916fc5f39782c6f39782c7f39782c8f39782c9f39782caf39782cbf39782ccf39782cdf39782ed49916fe3f39782e4f39782e5f39782e6f39782e7f39782e8f39782e9f39782eaf39782ebf39782ecf39782ee49916f02f4978203f4978204f4978205f4978206f4978207f49782ef49916ff049916ff149916ff249916ff349916ff449916ff549916fc58e80a00b4a916f0c4a916f0d4a916f0e4a916f0f4a916f104a916f114a916f124a916f134a916fc68e80a0c78e80a0c88e80a0c98e80a0ca8e80a0cb8e80a0cc8e80a0bed8328da3c7820ca4c7820ca5c7820c01853b19c22f500fbe2eb195bf2eb195c02eb195e8945815e9945815ea9458150c8b0b1a0d8b0b1a0e8b0b1a7d33eeca7e33eeca7f33eecab415951a1fecadc920ecadc922ecadc9a4a12138e0c7a11a50349739513497395234973953349739543497395534973956349739573497395834973959349739e1c7a11a6f34973970349739713497397234973973349739e2c7a11ae3c7a11ae4c7a11ae5c7a11ae6c7a11ae7c7a11ae8c7a11a826e418d7a737b477b737b477c737b477d737b47ffce428d252af848262af848272af848a07f7c4ea17f7c4e3c864f1beef286857351fb6991c62c357451fb69f03a2d357551fb694faf2d357651fb69ae232e357751fb6958aa025459aa0254a15c468d14c42155b6ad7c4f3a0919a03b0919a03c0919a03d0919a03e0919a03f0919a0400919a0410919a0420919a0b7ad7c4fb8ad7c4fb9ad7c4fbaad7c4fbbad7c4fbcad7c4fbdad7c4fbead7c4fc569b158c669b158

View File

@ -1,65 +1,120 @@
fileFormatVersion: 2
guid: 8c885c4fc249699459e17900e486f437
ModelImporter:
serializedVersion: 16
fileIDToRecycleName:
100000: //RootNode
400000: //RootNode
2300000: //RootNode
3300000: //RootNode
4300000: other_dzh_0063
9500000: //RootNode
serializedVersion: 20200
internalIDToNameTable:
- first:
1: 100000
second: //RootNode
- first:
4: 400000
second: //RootNode
- first:
23: 2300000
second: //RootNode
- first:
33: 3300000
second: //RootNode
- first:
43: 4300000
second: other_dzh_0063
- first:
95: 9500000
second: //RootNode
externalObjects: {}
materials:
importMaterials: 1
materialImportMode: 0
materialName: 0
materialSearch: 1
materialLocation: 0
animations:
legacyGenerateAnimations: 4
bakeSimulation: 0
resampleCurves: 1
optimizeGameObjects: 0
motionNodeName:
rigImportErrors:
rigImportWarnings:
animationImportErrors:
animationImportWarnings:
animationRetargetingWarnings:
animationDoRetargetingWarnings: 0
importAnimatedCustomProperties: 0
importConstraints: 0
animationCompression: 1
animationRotationError: .5
animationPositionError: .5
animationScaleError: .5
animationRotationError: 0.5
animationPositionError: 0.5
animationScaleError: 0.5
animationWrapMode: 0
extraExposedTransformPaths: []
extraUserProperties: []
clipAnimations: []
isReadable: 1
meshes:
lODScreenPercentages: []
globalScale: .00999999978
globalScale: 0.01
meshCompression: 0
addColliders: 0
useSRGBMaterialColor: 1
sortHierarchyByName: 1
importVisibility: 0
importBlendShapes: 1
importCameras: 0
importLights: 0
fileIdsGeneration: 1
swapUVChannels: 0
generateSecondaryUV: 0
useFileUnits: 1
optimizeMeshForGPU: 1
keepQuads: 0
weldVertices: 1
bakeAxisConversion: 0
preserveHierarchy: 0
skinWeightsMode: 0
maxBonesPerVertex: 4
minBoneWeight: 0.001
meshOptimizationFlags: -1
indexFormat: 1
secondaryUVAngleDistortion: 8
secondaryUVAreaDistortion: 15.000001
secondaryUVHardAngle: 88
secondaryUVMarginMethod: 0
secondaryUVMinLightmapResolution: 40
secondaryUVMinObjectScale: 1
secondaryUVPackMargin: 4
useFileScale: 0
tangentSpace:
normalSmoothAngle: 60
splitTangentsAcrossUV: 1
normalImportMode: 0
tangentImportMode: 1
tangentImportMode: 4
normalCalculationMode: 0
legacyComputeAllNormalsFromSmoothingGroupsWhenMeshHasBlendShapes: 1
blendShapeNormalImportMode: 1
normalSmoothingSource: 0
referencedClips: []
importAnimation: 0
copyAvatar: 0
humanDescription:
serializedVersion: 3
human: []
skeleton: []
armTwist: .5
foreArmTwist: .5
upperLegTwist: .5
legTwist: .5
armStretch: .0500000007
legStretch: .0500000007
armTwist: 0.5
foreArmTwist: 0.5
upperLegTwist: 0.5
legTwist: 0.5
armStretch: 0.05
legStretch: 0.05
feetSpacing: 0
globalScale: 0.01
rootMotionBoneName:
hasTranslationDoF: 0
hasExtraRoot: 0
skeletonHasParents: 0
lastHumanDescriptionAvatarSource: {instanceID: 0}
autoGenerateAvatarMappingIfUnspecified: 1
animationType: 0
humanoidOversampling: 1
avatarSetup: 0
addHumanoidExtraRootOnlyWhenUsingAvatar: 0
additionalBone: 0
userData:
assetBundleName:
assetBundleVariant:

View File

@ -1,65 +1,120 @@
fileFormatVersion: 2
guid: 01c69dafeea798c4aa30241c60a8fe3e
ModelImporter:
serializedVersion: 16
fileIDToRecycleName:
100000: //RootNode
400000: //RootNode
2300000: //RootNode
3300000: //RootNode
4300000: xuanzhuan_tom_001
9500000: //RootNode
serializedVersion: 20200
internalIDToNameTable:
- first:
1: 100000
second: //RootNode
- first:
4: 400000
second: //RootNode
- first:
23: 2300000
second: //RootNode
- first:
33: 3300000
second: //RootNode
- first:
43: 4300000
second: xuanzhuan_tom_001
- first:
95: 9500000
second: //RootNode
externalObjects: {}
materials:
importMaterials: 1
materialImportMode: 0
materialName: 0
materialSearch: 1
materialLocation: 0
animations:
legacyGenerateAnimations: 4
bakeSimulation: 0
resampleCurves: 1
optimizeGameObjects: 0
motionNodeName:
rigImportErrors:
rigImportWarnings:
animationImportErrors:
animationImportWarnings:
animationRetargetingWarnings:
animationDoRetargetingWarnings: 0
importAnimatedCustomProperties: 0
importConstraints: 0
animationCompression: 1
animationRotationError: .5
animationPositionError: .5
animationScaleError: .5
animationRotationError: 0.5
animationPositionError: 0.5
animationScaleError: 0.5
animationWrapMode: 0
extraExposedTransformPaths: []
extraUserProperties: []
clipAnimations: []
isReadable: 1
meshes:
lODScreenPercentages: []
globalScale: .00999999978
globalScale: 0.01
meshCompression: 0
addColliders: 0
useSRGBMaterialColor: 1
sortHierarchyByName: 1
importVisibility: 0
importBlendShapes: 1
importCameras: 0
importLights: 0
fileIdsGeneration: 1
swapUVChannels: 0
generateSecondaryUV: 0
useFileUnits: 1
optimizeMeshForGPU: 1
keepQuads: 0
weldVertices: 1
bakeAxisConversion: 0
preserveHierarchy: 0
skinWeightsMode: 0
maxBonesPerVertex: 4
minBoneWeight: 0.001
meshOptimizationFlags: -1
indexFormat: 1
secondaryUVAngleDistortion: 8
secondaryUVAreaDistortion: 15.000001
secondaryUVHardAngle: 88
secondaryUVMarginMethod: 0
secondaryUVMinLightmapResolution: 40
secondaryUVMinObjectScale: 1
secondaryUVPackMargin: 4
useFileScale: 0
tangentSpace:
normalSmoothAngle: 60
splitTangentsAcrossUV: 1
normalImportMode: 0
tangentImportMode: 1
importAnimation: 1
copyAvatar: 0
tangentImportMode: 4
normalCalculationMode: 0
legacyComputeAllNormalsFromSmoothingGroupsWhenMeshHasBlendShapes: 1
blendShapeNormalImportMode: 1
normalSmoothingSource: 0
referencedClips: []
importAnimation: 0
humanDescription:
serializedVersion: 3
human: []
skeleton: []
armTwist: .5
foreArmTwist: .5
upperLegTwist: .5
legTwist: .5
armStretch: .0500000007
legStretch: .0500000007
armTwist: 0.5
foreArmTwist: 0.5
upperLegTwist: 0.5
legTwist: 0.5
armStretch: 0.05
legStretch: 0.05
feetSpacing: 0
globalScale: 0.01
rootMotionBoneName:
hasTranslationDoF: 0
hasExtraRoot: 0
skeletonHasParents: 0
lastHumanDescriptionAvatarSource: {instanceID: 0}
autoGenerateAvatarMappingIfUnspecified: 1
animationType: 2
humanoidOversampling: 1
avatarSetup: 1
addHumanoidExtraRootOnlyWhenUsingAvatar: 0
additionalBone: 0
userData:
assetBundleName:
assetBundleVariant:

View File

@ -1,33 +1,43 @@
fileFormatVersion: 2
guid: 95c80c4ea173dc344b01e1663d1906a1
TextureImporter:
fileIDToRecycleName: {}
serializedVersion: 2
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 11
mipmaps:
mipMapMode: 0
enableMipMap: 0
sRGBTexture: 1
linearTexture: 0
correctGamma: 0
fadeOut: 0
borderMipMap: 0
mipMapsPreserveCoverage: 0
alphaTestReferenceValue: 0.5
mipMapFadeDistanceStart: 1
mipMapFadeDistanceEnd: 3
bumpmap:
convertToNormalMap: 0
externalNormalMap: 0
heightScale: .25
heightScale: 0.25
normalMapFilter: 0
isReadable: 0
streamingMipmaps: 0
streamingMipmapsPriority: 0
vTOnly: 0
grayScaleToAlpha: 0
generateCubemap: 0
generateCubemap: 6
cubemapConvolution: 0
seamlessCubemap: 0
textureFormat: -1
maxTextureSize: 128
textureSettings:
filterMode: -1
serializedVersion: 2
filterMode: 1
aniso: 0
mipBias: -1
wrapMode: -1
mipBias: 0
wrapU: 0
wrapV: 0
wrapW: 0
nPOTScale: 1
lightmap: 0
compressionQuality: 50
@ -35,13 +45,76 @@ TextureImporter:
spriteExtrude: 1
spriteMeshType: 1
alignment: 0
spritePivot: {x: .5, y: .5}
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
spritePivot: {x: 0.5, y: 0.5}
spritePixelsToUnits: 100
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
spriteGenerateFallbackPhysicsShape: 1
alphaUsage: 1
alphaIsTransparency: 1
textureType: 5
buildTargetSettings: []
spriteTessellationDetail: -1
textureType: 0
textureShape: 1
singleChannelComponent: 0
flipbookRows: 1
flipbookColumns: 1
maxTextureSizeSet: 0
compressionQualitySet: 0
textureFormatSet: 0
ignorePngGamma: 0
applyGammaDecoding: 1
platformSettings:
- serializedVersion: 3
buildTarget: DefaultTexturePlatform
maxTextureSize: 128
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Android
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: 47
textureCompression: 0
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 1
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: iPhone
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: 50
textureCompression: 0
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 1
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
spriteSheet:
serializedVersion: 2
sprites: []
outline: []
physicsShape: []
bones: []
spriteID:
internalID: 0
vertices: []
indices:
edges: []
weights: []
secondaryTextures: []
spritePackingTag:
pSDRemoveMatte: 0
pSDShowRemoveMatteOption: 0
userData:
assetBundleName:
assetBundleVariant:

View File

@ -1,33 +1,43 @@
fileFormatVersion: 2
guid: 89fe8b36e583d3e40aad9ef7c190faa1
TextureImporter:
fileIDToRecycleName: {}
serializedVersion: 2
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 11
mipmaps:
mipMapMode: 0
enableMipMap: 0
sRGBTexture: 1
linearTexture: 0
correctGamma: 0
fadeOut: 0
borderMipMap: 0
mipMapsPreserveCoverage: 0
alphaTestReferenceValue: 0.5
mipMapFadeDistanceStart: 1
mipMapFadeDistanceEnd: 3
bumpmap:
convertToNormalMap: 0
externalNormalMap: 0
heightScale: .25
heightScale: 0.25
normalMapFilter: 0
isReadable: 0
streamingMipmaps: 0
streamingMipmapsPriority: 0
vTOnly: 0
grayScaleToAlpha: 0
generateCubemap: 0
generateCubemap: 6
cubemapConvolution: 0
seamlessCubemap: 0
textureFormat: -1
maxTextureSize: 128
textureSettings:
filterMode: -1
aniso: -1
mipBias: -1
wrapMode: 1
serializedVersion: 2
filterMode: 1
aniso: 1
mipBias: 0
wrapU: 1
wrapV: 1
wrapW: 1
nPOTScale: 1
lightmap: 0
compressionQuality: 50
@ -35,13 +45,76 @@ TextureImporter:
spriteExtrude: 1
spriteMeshType: 1
alignment: 0
spritePivot: {x: .5, y: .5}
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
spritePivot: {x: 0.5, y: 0.5}
spritePixelsToUnits: 100
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
spriteGenerateFallbackPhysicsShape: 1
alphaUsage: 1
alphaIsTransparency: 1
textureType: -1
buildTargetSettings: []
spriteTessellationDetail: -1
textureType: 0
textureShape: 1
singleChannelComponent: 0
flipbookRows: 1
flipbookColumns: 1
maxTextureSizeSet: 0
compressionQualitySet: 0
textureFormatSet: 0
ignorePngGamma: 0
applyGammaDecoding: 1
platformSettings:
- serializedVersion: 3
buildTarget: DefaultTexturePlatform
maxTextureSize: 128
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Android
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: 47
textureCompression: 0
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 1
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: iPhone
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: 50
textureCompression: 0
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 1
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
spriteSheet:
serializedVersion: 2
sprites: []
outline: []
physicsShape: []
bones: []
spriteID:
internalID: 0
vertices: []
indices:
edges: []
weights: []
secondaryTextures: []
spritePackingTag:
pSDRemoveMatte: 0
pSDShowRemoveMatteOption: 0
userData:
assetBundleName:
assetBundleVariant:

Binary file not shown.

Some files were not shown because too many files have changed in this diff Show More