Merge branch 'dev_hero' of https://git.wdd817.link/puxuan/c1_unity into dev_hero
This commit is contained in:
commit
46488baee7
@ -20,61 +20,32 @@ namespace BFEditor.Build
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public static class BuildMode
|
||||||
|
{
|
||||||
|
public const string DEV = "dev";
|
||||||
|
public const string TEST = "test";
|
||||||
|
public const string PUBLISH = "publish";
|
||||||
|
}
|
||||||
|
|
||||||
[Serializable]
|
[Serializable]
|
||||||
public class BuildInfo
|
public class BuildInfo
|
||||||
{
|
{
|
||||||
public string bundleName; // 包名
|
public string bundleName; // 包名
|
||||||
public string version; // 版本号
|
public string version; // 版本号
|
||||||
public string mode; // 渠道名_debug 或 渠道名_release
|
public string mode; // 内网测试包,外网测试包,外网正式包
|
||||||
public int version_code = 1; // 各自渠道的version_code
|
public int versionCode = 1; // 各自渠道的version code
|
||||||
public List<BulidGitInfo> git_info; // 打包的git信息
|
public List<BulidGitInfo> git_info; // 打包的git信息
|
||||||
|
public bool exportProject = false; // 是否只导出工程
|
||||||
|
public bool onlyAssetBundle = false; // 是否只打ab包
|
||||||
|
|
||||||
[NonSerialized]
|
[NonSerialized]
|
||||||
public bool skipVersion = false; // 是否跳过版本校验
|
public bool skipVersion = false; // 是否跳过版本校验
|
||||||
|
|
||||||
public bool IsGPChannel()
|
|
||||||
{
|
|
||||||
return bundleName == "com.combo.heroes.puzzle.rpg";
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool IsGPOfficial()
|
|
||||||
{
|
|
||||||
return bundleName == "com.combo.heroes.puzzle.rpg";
|
|
||||||
}
|
|
||||||
|
|
||||||
// dev包使用mono编译,不会导出as工程
|
|
||||||
public bool IsDevChannel()
|
|
||||||
{
|
|
||||||
return bundleName == "com.juzu.b6.dev" || bundleName == "com.juzu.b6.dev.android" ||
|
|
||||||
bundleName == "com.juzu.b6.dev.ios";
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool IsReleaseChannel()
|
|
||||||
{
|
|
||||||
return !IsDevChannel();
|
|
||||||
}
|
|
||||||
|
|
||||||
// 是否是内网release
|
|
||||||
public bool IsLanRelease()
|
|
||||||
{
|
|
||||||
return bundleName == "com.juzu.b6.release.android" || bundleName == "com.juzu.b6.release.ios";
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool IsPublish()
|
public bool IsPublish()
|
||||||
{
|
{
|
||||||
return !IsDevChannel() && !IsLanRelease();
|
return mode == BuildMode.PUBLISH;
|
||||||
}
|
}
|
||||||
|
|
||||||
public bool IsIOSPlatform()
|
|
||||||
{
|
|
||||||
return bundleName.Contains("ios");
|
|
||||||
}
|
|
||||||
|
|
||||||
public bool IsAndroidPlatform()
|
|
||||||
{
|
|
||||||
return !IsIOSPlatform();
|
|
||||||
}
|
|
||||||
|
|
||||||
public string GetBundleName()
|
public string GetBundleName()
|
||||||
{
|
{
|
||||||
return bundleName;
|
return bundleName;
|
||||||
|
|||||||
@ -48,6 +48,12 @@ namespace BFEditor.Build
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 只打ab包
|
||||||
|
if (buildInfo.onlyAssetBundle)
|
||||||
|
{
|
||||||
|
AssetDatabase.Refresh();
|
||||||
|
return true;
|
||||||
|
}
|
||||||
// 删除不进包的多语言
|
// 删除不进包的多语言
|
||||||
// if (!DeleteOverLanguageAb(buildInfo))
|
// if (!DeleteOverLanguageAb(buildInfo))
|
||||||
// {
|
// {
|
||||||
@ -73,19 +79,10 @@ namespace BFEditor.Build
|
|||||||
watch.Start();
|
watch.Start();
|
||||||
|
|
||||||
var result = false;
|
var result = false;
|
||||||
|
if (BuildAndroidUtils.BuildAndroidPlayer(buildInfo))
|
||||||
if (buildInfo.IsAndroidPlatform() && BuildAndroidUtils.BuildAndroidPlayer(buildInfo))
|
|
||||||
{
|
{
|
||||||
result = true;
|
result = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
#if UNITY_EDITOR_OSX
|
|
||||||
if (buildInfo.IsIOSPlatform() && BuildIOSUtils.BuildIOSPlayer(buildInfo))
|
|
||||||
{
|
|
||||||
result = true;
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
if (result)
|
if (result)
|
||||||
{
|
{
|
||||||
watch.Stop();
|
watch.Stop();
|
||||||
@ -140,8 +137,7 @@ namespace BFEditor.Build
|
|||||||
var watch = new System.Diagnostics.Stopwatch();
|
var watch = new System.Diagnostics.Stopwatch();
|
||||||
watch.Start();
|
watch.Start();
|
||||||
|
|
||||||
// var buildTarget = buildInfo.IsIOSPlatform() ? BuildTarget.iOS : BuildTarget.Android;
|
var isRelease = true;
|
||||||
var isRelease = buildInfo.IsReleaseChannel();
|
|
||||||
Debug.Log("[bfinfo]开始打包资源, bundleName : " + buildInfo.bundleName + " version : " + buildInfo.version + " mode : " + buildInfo.mode);
|
Debug.Log("[bfinfo]开始打包资源, bundleName : " + buildInfo.bundleName + " version : " + buildInfo.version + " mode : " + buildInfo.mode);
|
||||||
|
|
||||||
// // 检查平台
|
// // 检查平台
|
||||||
@ -197,7 +193,7 @@ namespace BFEditor.Build
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 本地缓存ab
|
// 本地缓存ab
|
||||||
if (buildInfo.IsReleaseChannel())
|
if (buildInfo.IsPublish())
|
||||||
{
|
{
|
||||||
Debug.Log("[bfinfo]正在缓存assetbundles...");
|
Debug.Log("[bfinfo]正在缓存assetbundles...");
|
||||||
BFEditorUtils.CopyDirWithIgnore(outputPath, Path.Combine(AssetBundleCachePath, buildInfo.version), new List<string> { ".meta" });
|
BFEditorUtils.CopyDirWithIgnore(outputPath, Path.Combine(AssetBundleCachePath, buildInfo.version), new List<string> { ".meta" });
|
||||||
|
|||||||
@ -6,77 +6,116 @@ namespace BFEditor.Build
|
|||||||
public enum BFPlatformOptions
|
public enum BFPlatformOptions
|
||||||
{
|
{
|
||||||
AndroidDev = 1,
|
AndroidDev = 1,
|
||||||
IOSDev,
|
AndroidTest,
|
||||||
AndroidRelease,
|
|
||||||
AndroidGP,
|
AndroidGP,
|
||||||
|
AndroidGPRU
|
||||||
}
|
}
|
||||||
|
|
||||||
public class BuildProjectWindow : EditorWindow
|
public class BuildProjectWindow : EditorWindow
|
||||||
{
|
{
|
||||||
private static int versionCode = 18;
|
private static int VersionCode = 4;
|
||||||
private static string versionName = "1.6.5";
|
private static string VersionName = "1.2.10";
|
||||||
|
private static int VersionCodeRU = 12;
|
||||||
|
private static string VersionNameRU = "0.4.9";
|
||||||
BFPlatformOptions platform = BFPlatformOptions.AndroidDev;
|
BFPlatformOptions platform = BFPlatformOptions.AndroidDev;
|
||||||
const string ANDROID_DEV_PACKAGE_NAME = "com.juzu.b6.dev.android";
|
const string ANDROID_GP_PACKAGE_NAME = "com.c1.dev.android";
|
||||||
const string ANDROID_RELEASE_PACKAGE_NAME = "com.juzu.b6.release.android";
|
|
||||||
const string ANDROID_GP_PACKAGE_NAME = "com.combo.heroes.puzzle.rpg";
|
|
||||||
const string IOS_PACKAGE_NAME = "com.juzu.b6.dev.ios";
|
|
||||||
|
|
||||||
public BuildProjectWindow()
|
public BuildProjectWindow()
|
||||||
{
|
{
|
||||||
titleContent = new GUIContent("打包");
|
titleContent = new GUIContent("打包");
|
||||||
}
|
}
|
||||||
|
|
||||||
private void OnEnable() { }
|
private void OnEnable() { }
|
||||||
|
|
||||||
void OnGUI()
|
void OnGUI()
|
||||||
{
|
{
|
||||||
GUILayout.BeginVertical("box");
|
|
||||||
|
|
||||||
EditorGUILayout.LabelField("选择渠道");
|
|
||||||
platform = (BFPlatformOptions)EditorGUILayout.EnumPopup("", platform);
|
|
||||||
EditorGUILayout.Space();
|
|
||||||
|
|
||||||
EditorGUILayout.LabelField("版本: " + versionName);
|
|
||||||
EditorGUILayout.Space();
|
|
||||||
|
|
||||||
string packageName;
|
string packageName;
|
||||||
string mode;
|
string mode;
|
||||||
|
string versionName = VersionName;
|
||||||
|
int versionCode = VersionCode;
|
||||||
bool skipVersion = false;
|
bool skipVersion = false;
|
||||||
|
string appType;
|
||||||
if (platform == BFPlatformOptions.AndroidDev)
|
if (platform == BFPlatformOptions.AndroidDev)
|
||||||
{
|
{
|
||||||
packageName = ANDROID_DEV_PACKAGE_NAME;
|
packageName = ANDROID_GP_PACKAGE_NAME;
|
||||||
skipVersion = true;
|
skipVersion = true;
|
||||||
mode = "dev_debug";
|
mode = BuildMode.DEV;
|
||||||
|
versionName = "0.1.0";
|
||||||
|
versionCode = 1;
|
||||||
|
appType = "内网测试包";
|
||||||
}
|
}
|
||||||
else if(platform == BFPlatformOptions.AndroidRelease)
|
else if(platform == BFPlatformOptions.AndroidTest)
|
||||||
{
|
{
|
||||||
packageName = ANDROID_RELEASE_PACKAGE_NAME;
|
packageName = ANDROID_GP_PACKAGE_NAME;
|
||||||
mode = "release_release";
|
mode = BuildMode.TEST;
|
||||||
|
versionName = "0.1.0";
|
||||||
|
versionCode = 1;
|
||||||
|
appType = "外网测试包";
|
||||||
}
|
}
|
||||||
else if(platform == BFPlatformOptions.AndroidGP)
|
else if(platform == BFPlatformOptions.AndroidGP)
|
||||||
{
|
{
|
||||||
packageName = ANDROID_GP_PACKAGE_NAME;
|
packageName = ANDROID_GP_PACKAGE_NAME;
|
||||||
mode = "publish_release";
|
mode = BuildMode.PUBLISH;
|
||||||
|
appType = "外网正式包";
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
packageName = IOS_PACKAGE_NAME;
|
packageName = ANDROID_GP_PACKAGE_NAME;
|
||||||
mode = "dev_debug";
|
skipVersion = true;
|
||||||
|
mode = BuildMode.DEV;
|
||||||
|
versionName = "0.1.0";
|
||||||
|
versionCode = 1;
|
||||||
|
appType = "内网测试包";
|
||||||
}
|
}
|
||||||
|
GUILayout.BeginVertical("box");
|
||||||
|
EditorGUILayout.LabelField("选择");
|
||||||
|
platform = (BFPlatformOptions)EditorGUILayout.EnumPopup("", platform);
|
||||||
|
EditorGUILayout.Space();
|
||||||
|
EditorGUILayout.LabelField("版本: " + versionName);
|
||||||
|
EditorGUILayout.Space();
|
||||||
EditorGUILayout.LabelField("包名: " + packageName);
|
EditorGUILayout.LabelField("包名: " + packageName);
|
||||||
EditorGUILayout.LabelField("mode: " + mode);
|
EditorGUILayout.Space();
|
||||||
|
EditorGUILayout.LabelField(appType);
|
||||||
|
EditorGUILayout.Space();
|
||||||
EditorGUILayout.Space();
|
EditorGUILayout.Space();
|
||||||
|
|
||||||
EditorGUILayout.Space();
|
var buildInfo = new BuildInfo();
|
||||||
|
buildInfo.version = versionName;
|
||||||
|
buildInfo.versionCode = versionCode;
|
||||||
|
buildInfo.mode = mode;
|
||||||
|
buildInfo.bundleName = packageName;
|
||||||
|
buildInfo.skipVersion = skipVersion;
|
||||||
|
|
||||||
if (GUILayout.Button("一键打包"))
|
if (GUILayout.Button("一键APK"))
|
||||||
{
|
{
|
||||||
var buildInfo = new BuildInfo();
|
buildInfo.exportProject = false;
|
||||||
buildInfo.version = versionName;
|
buildInfo.onlyAssetBundle = false;
|
||||||
buildInfo.version_code = versionCode;
|
BuildProjectTools.BuildBFPlayer(buildInfo);
|
||||||
buildInfo.mode = mode;
|
}
|
||||||
buildInfo.bundleName = packageName;
|
|
||||||
buildInfo.skipVersion = skipVersion;
|
EditorGUILayout.Space();
|
||||||
|
EditorGUILayout.Space();
|
||||||
|
EditorGUILayout.Space();
|
||||||
|
EditorGUILayout.Space();
|
||||||
|
EditorGUILayout.Space();
|
||||||
|
|
||||||
|
if (GUILayout.Button("仅导出工程"))
|
||||||
|
{
|
||||||
|
buildInfo.exportProject = true;
|
||||||
|
buildInfo.onlyAssetBundle = false;
|
||||||
|
BuildProjectTools.BuildBFPlayer(buildInfo);
|
||||||
|
}
|
||||||
|
|
||||||
|
EditorGUILayout.Space();
|
||||||
|
EditorGUILayout.Space();
|
||||||
|
EditorGUILayout.Space();
|
||||||
|
EditorGUILayout.Space();
|
||||||
|
EditorGUILayout.Space();
|
||||||
|
|
||||||
|
if (GUILayout.Button("仅打ab包"))
|
||||||
|
{
|
||||||
|
buildInfo.exportProject = true;
|
||||||
|
buildInfo.onlyAssetBundle = true;
|
||||||
BuildProjectTools.BuildBFPlayer(buildInfo);
|
BuildProjectTools.BuildBFPlayer(buildInfo);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -77,25 +77,12 @@ namespace BFEditor.Build
|
|||||||
Directory.CreateDirectory(outputPath);
|
Directory.CreateDirectory(outputPath);
|
||||||
}
|
}
|
||||||
|
|
||||||
AssetBundleManifest manifest;
|
AssetBundleManifest manifest = BuildPipeline.BuildAssetBundles(outputPath, options |
|
||||||
if (release)
|
BuildAssetBundleOptions.StrictMode |
|
||||||
{
|
BuildAssetBundleOptions.DisableLoadAssetByFileName |
|
||||||
manifest = BuildPipeline.BuildAssetBundles(outputPath, options |
|
BuildAssetBundleOptions.DisableLoadAssetByFileNameWithExtension |
|
||||||
BuildAssetBundleOptions.StrictMode |
|
BuildAssetBundleOptions.DeterministicAssetBundle,
|
||||||
BuildAssetBundleOptions.DisableLoadAssetByFileName |
|
target);
|
||||||
BuildAssetBundleOptions.DisableLoadAssetByFileNameWithExtension |
|
|
||||||
BuildAssetBundleOptions.DeterministicAssetBundle,
|
|
||||||
target);
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
manifest = BuildPipeline.BuildAssetBundles(outputPath, options |
|
|
||||||
BuildAssetBundleOptions.StrictMode |
|
|
||||||
BuildAssetBundleOptions.DisableLoadAssetByFileName |
|
|
||||||
BuildAssetBundleOptions.DisableLoadAssetByFileNameWithExtension |
|
|
||||||
BuildAssetBundleOptions.DeterministicAssetBundle,
|
|
||||||
target);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (manifest == null)
|
if (manifest == null)
|
||||||
{
|
{
|
||||||
@ -365,12 +352,12 @@ namespace BFEditor.Build
|
|||||||
SetProtoABName(Path.Combine(Application.dataPath, "proto"), index++ / total);
|
SetProtoABName(Path.Combine(Application.dataPath, "proto"), index++ / total);
|
||||||
SetSpineABName(Path.Combine(Application.dataPath, "arts", "spines"), index++ / total);
|
SetSpineABName(Path.Combine(Application.dataPath, "arts", "spines"), index++ / total);
|
||||||
SetFirstABName(Path.Combine(Application.dataPath, "first"), index++ / total);
|
SetFirstABName(Path.Combine(Application.dataPath, "first"), index++ / total);
|
||||||
// SetTimelineABName(Path.Combine(Application.dataPath, "arts", "timeline"), 16f / total);
|
// SetTimelineABName(Path.Combine(Application.dataPath, "arts", "timeline"), index++ / total);
|
||||||
SetVideoABName(Path.Combine(Application.dataPath, "arts", "video"), index++ / total);
|
SetVideoABName(Path.Combine(Application.dataPath, "arts", "video"), index++ / total);
|
||||||
// SetLanguageResABName(Resource.ResourceProcessConfig.LANGUAGE_PATH, 19f / total);
|
// SetLanguageResABName(Resource.ResourceProcessConfig.LANGUAGE_PATH, index++ / total);
|
||||||
// SetBakedatasABName(Path.Combine(Application.dataPath, "arts", "bakedatas"), 21f / total);
|
// SetBakedatasABName(Path.Combine(Application.dataPath, "arts", "bakedatas"), index++ / total);
|
||||||
// SetLightProbesABName(Path.Combine(Application.dataPath, "arts", "lightprobes"), 22f / total);
|
// SetLightProbesABName(Path.Combine(Application.dataPath, "arts", "lightprobes"), index++ / total);
|
||||||
// SetReflectionsABName(Path.Combine(Application.dataPath, "arts", "reflections"), 23f / total);
|
// SetReflectionsABName(Path.Combine(Application.dataPath, "arts", "reflections"), index++ / total);
|
||||||
|
|
||||||
EditorUtility.ClearProgressBar();
|
EditorUtility.ClearProgressBar();
|
||||||
AssetDatabase.SaveAssets();
|
AssetDatabase.SaveAssets();
|
||||||
@ -572,11 +559,11 @@ namespace BFEditor.Build
|
|||||||
{
|
{
|
||||||
EditorUtility.DisplayProgressBar("提示", "正在设置spine ABName", progress);
|
EditorUtility.DisplayProgressBar("提示", "正在设置spine ABName", progress);
|
||||||
|
|
||||||
var dirInfo = new DirectoryInfo(dirPath);
|
string[] dirList = { "ui" , "characters" };
|
||||||
var dirs = dirInfo.GetDirectories();
|
for (var i = 0; i < dirList.Length; ++i)
|
||||||
for (var i = 0; i < dirs.Length; i++)
|
|
||||||
{
|
{
|
||||||
SetABNameBySubDir(dirs[i]);
|
var dirInfo = new DirectoryInfo(Path.Combine(dirPath, dirList[i]));
|
||||||
|
SetABNameBySubDir(dirInfo);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -596,6 +583,11 @@ namespace BFEditor.Build
|
|||||||
var dirInfo = new DirectoryInfo(Path.Combine(dirPath, dirList[i]));
|
var dirInfo = new DirectoryInfo(Path.Combine(dirPath, dirList[i]));
|
||||||
SetABNameBySubDir(dirInfo);
|
SetABNameBySubDir(dirInfo);
|
||||||
}
|
}
|
||||||
|
var dirInfo2 = new DirectoryInfo(Path.Combine(dirPath, "ui", "activity"));
|
||||||
|
if (dirInfo2.Exists)
|
||||||
|
{
|
||||||
|
SetABNameBySubDir(dirInfo2);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static void SetBackgroundABName(string dirPath)
|
static void SetBackgroundABName(string dirPath)
|
||||||
|
|||||||
@ -3,12 +3,12 @@ using UnityEditor;
|
|||||||
using System.IO;
|
using System.IO;
|
||||||
using UnityEditor.Build.Reporting;
|
using UnityEditor.Build.Reporting;
|
||||||
using System.Text.RegularExpressions;
|
using System.Text.RegularExpressions;
|
||||||
using System.Collections.Generic;
|
|
||||||
using System;
|
using System;
|
||||||
using System.Threading;
|
using System.Threading;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
|
||||||
namespace BFEditor.Build
|
namespace BFEditor.Build
|
||||||
{
|
{
|
||||||
public static class BuildAndroidUtils
|
public static class BuildAndroidUtils
|
||||||
{
|
{
|
||||||
const string JAVA_HOME_ENVIRONMENT = "JAVA_HOME";
|
const string JAVA_HOME_ENVIRONMENT = "JAVA_HOME";
|
||||||
@ -18,19 +18,19 @@ namespace BFEditor.Build
|
|||||||
const string GRADLE_PATH = "/Users/aoddabao/.gradle/wrapper/dists/gradle-5.6.4-all/ankdp27end7byghfw1q2sw75f/gradle-5.6.4/bin/gradle";
|
const string GRADLE_PATH = "/Users/aoddabao/.gradle/wrapper/dists/gradle-5.6.4-all/ankdp27end7byghfw1q2sw75f/gradle-5.6.4/bin/gradle";
|
||||||
const string BUGLY_APP_ID = "1eb4e5e560";
|
const string BUGLY_APP_ID = "1eb4e5e560";
|
||||||
const string BUGLY_APP_KEY = "99e249db-4eeb-440e-83e7-c2bd80e8b5e4";
|
const string BUGLY_APP_KEY = "99e249db-4eeb-440e-83e7-c2bd80e8b5e4";
|
||||||
|
|
||||||
static Thread buglyUploadThread;
|
static Thread buglyUploadThread;
|
||||||
static string ReleaseSOPath = Application.dataPath + "/../BFVersions/android/ub-release/src/main/jniLibs";
|
static string ReleaseSOPath = Application.dataPath + "/../BFVersions/android/ub-release/src/main/jniLibs";
|
||||||
static string BuglyPath = Application.dataPath + "/../Bugly";
|
static string BuglyPath = Application.dataPath + "/../Bugly";
|
||||||
static string BuglySOPath = Application.dataPath + "/../Bugly/so";
|
static string BuglySOPath = Application.dataPath + "/../Bugly/so";
|
||||||
static string GradleExcuteProjectPath = Application.dataPath + "/../BFVersions/android/ub-release";
|
static string GradleExcuteProjectPath = Application.dataPath + "/../BFVersions/android/ub-release";
|
||||||
static string DevAsProjectPath = Application.dataPath + "/../BFVersions/android/dz_dev";
|
|
||||||
static string LanReleaseAsProjectPath = Application.dataPath + "/../BFVersions/android/dz_release";
|
|
||||||
static string GoogleAsProjectPath = Application.dataPath + "/../BFVersions/android/dz_google_apk";
|
static string GoogleAsProjectPath = Application.dataPath + "/../BFVersions/android/dz_google_apk";
|
||||||
static string GoogleCommonProjectPath = Application.dataPath + "/../BFVersions/android/google_common";
|
static string GoogleCommonProjectPath = Application.dataPath + "/../BFVersions/android/google_common";
|
||||||
static string GPAsProjectPath = Application.dataPath + "/../BFVersions/android/ub-gp"; // gp删档测试渠道
|
static string RuStoreProjectPath = Application.dataPath + "/../BFVersions/android/ru_store";
|
||||||
static string GPOfficialAsProjectPath = Application.dataPath + "/../BFVersions/android/ub-google"; // gp正式渠道
|
static string RuProjectPath = Application.dataPath + "/../BFVersions/android/ru";
|
||||||
|
static string GoogleServicesProjectPath = Application.dataPath + "/../BFVersions/android/google-services";
|
||||||
static string PublishAsProjectPath = Application.dataPath + "/../BFVersions/android/publish_release";
|
static string PublishAsProjectPath = Application.dataPath + "/../BFVersions/android/publish_release";
|
||||||
|
static string KeystoreFilePath = Application.dataPath + "/../BFVersions/android/keystore/dz_keystore.txt";
|
||||||
static string SignShellPath = Application.dataPath + "/../BFFiles/androidkey";
|
static string SignShellPath = Application.dataPath + "/../BFFiles/androidkey";
|
||||||
static string GpAlginShellPath = Application.dataPath + "/../BFFiles/androidkey";
|
static string GpAlginShellPath = Application.dataPath + "/../BFFiles/androidkey";
|
||||||
static HashSet<string> AABInPackageFileHashSet = new HashSet<string>()
|
static HashSet<string> AABInPackageFileHashSet = new HashSet<string>()
|
||||||
@ -38,12 +38,12 @@ namespace BFEditor.Build
|
|||||||
"bin",
|
"bin",
|
||||||
"UnityServicesProjectConfiguration.json"
|
"UnityServicesProjectConfiguration.json"
|
||||||
};
|
};
|
||||||
|
|
||||||
static BuildAndroidUtils()
|
static BuildAndroidUtils()
|
||||||
{
|
{
|
||||||
EnsureJavaHome();
|
EnsureJavaHome();
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void EnsureJavaHome()
|
public static void EnsureJavaHome()
|
||||||
{
|
{
|
||||||
// var javaHomeEnvironment = Environment.GetEnvironmentVariable(JAVA_HOME_ENVIRONMENT);
|
// var javaHomeEnvironment = Environment.GetEnvironmentVariable(JAVA_HOME_ENVIRONMENT);
|
||||||
@ -52,35 +52,44 @@ namespace BFEditor.Build
|
|||||||
// Environment.SetEnvironmentVariable(JAVA_HOME_ENVIRONMENT, JAVA_HOME_ENVIRONMENT_PATH);
|
// Environment.SetEnvironmentVariable(JAVA_HOME_ENVIRONMENT, JAVA_HOME_ENVIRONMENT_PATH);
|
||||||
// }
|
// }
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 打包android
|
/// 打包android
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public static bool BuildAndroidPlayer(BuildInfo buildInfo)
|
public static bool BuildAndroidPlayer(BuildInfo buildInfo)
|
||||||
{
|
{
|
||||||
var buildTarget = BuildTarget.Android;
|
var buildTarget = BuildTarget.Android;
|
||||||
|
|
||||||
// 检查平台
|
// 检查平台
|
||||||
if (EditorUserBuildSettings.activeBuildTarget != buildTarget)
|
if (EditorUserBuildSettings.activeBuildTarget != buildTarget)
|
||||||
{
|
{
|
||||||
Debug.LogError("[bferror]当前没有在对应平台");
|
Debug.LogError("[bferror]当前没有在对应平台");
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
// 重新生成XLua
|
// 重新生成XLua
|
||||||
CompileScriptsUtils.RegenerateXLuaCode(true);
|
CompileScriptsUtils.RegenerateXLuaCode(true);
|
||||||
|
|
||||||
// 打包设置
|
// 打包设置
|
||||||
BuildSettings(buildInfo);
|
BuildSettings(buildInfo);
|
||||||
|
|
||||||
// 开始打包
|
// 开始打包
|
||||||
var bpOptions = GetBuildOptions(buildInfo);
|
var bpOptions = GetBuildOptions(buildInfo);
|
||||||
var report = BuildPipeline.BuildPlayer(bpOptions);
|
var report = BuildPipeline.BuildPlayer(bpOptions);
|
||||||
|
|
||||||
// 打包成功
|
// 导出工程成功
|
||||||
if (report.summary.result == BuildResult.Succeeded)
|
if (report.summary.result == BuildResult.Succeeded)
|
||||||
{
|
{
|
||||||
return BuildAndroidAPK(buildInfo);
|
MergeProject(buildInfo, GoogleAsProjectPath);
|
||||||
|
FixGradleVersion(buildInfo.versionCode, buildInfo.version);
|
||||||
|
if (buildInfo.exportProject)
|
||||||
|
{
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
return BuildAPK(buildInfo);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@ -88,7 +97,7 @@ namespace BFEditor.Build
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 打包设置
|
/// 打包设置
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -96,66 +105,58 @@ namespace BFEditor.Build
|
|||||||
{
|
{
|
||||||
// 设置bundleVersion
|
// 设置bundleVersion
|
||||||
PlayerSettings.bundleVersion = buildInfo.version;
|
PlayerSettings.bundleVersion = buildInfo.version;
|
||||||
|
|
||||||
// 设置VersionCode
|
// 设置VersionCode
|
||||||
PlayerSettings.Android.bundleVersionCode = buildInfo.version_code;
|
PlayerSettings.Android.bundleVersionCode = buildInfo.versionCode;
|
||||||
|
|
||||||
// 设置竖屏
|
// 设置竖屏
|
||||||
PlayerSettings.defaultInterfaceOrientation = UIOrientation.Portrait;
|
PlayerSettings.defaultInterfaceOrientation = UIOrientation.Portrait;
|
||||||
PlayerSettings.allowedAutorotateToPortrait = false;
|
PlayerSettings.allowedAutorotateToPortrait = false;
|
||||||
PlayerSettings.allowedAutorotateToPortraitUpsideDown = false;
|
PlayerSettings.allowedAutorotateToPortraitUpsideDown = false;
|
||||||
PlayerSettings.allowedAutorotateToLandscapeLeft = false;
|
PlayerSettings.allowedAutorotateToLandscapeLeft = false;
|
||||||
PlayerSettings.allowedAutorotateToLandscapeRight = false;
|
PlayerSettings.allowedAutorotateToLandscapeRight = false;
|
||||||
|
|
||||||
// 安卓构建目标CPU架构
|
// 安卓构建目标CPU架构
|
||||||
PlayerSettings.Android.targetArchitectures = AndroidArchitecture.ARMv7 | AndroidArchitecture.ARM64;
|
PlayerSettings.Android.targetArchitectures = AndroidArchitecture.ARMv7 | AndroidArchitecture.ARM64;
|
||||||
|
|
||||||
// 强加Internet权限
|
// 强加Internet权限
|
||||||
PlayerSettings.Android.forceInternetPermission = true;
|
PlayerSettings.Android.forceInternetPermission = true;
|
||||||
|
|
||||||
// 关闭启动动画
|
// 关闭启动动画
|
||||||
PlayerSettings.SplashScreen.show = false;
|
PlayerSettings.SplashScreen.show = false;
|
||||||
|
|
||||||
// 设置包名
|
// 设置包名
|
||||||
PlayerSettings.SetApplicationIdentifier(BuildTargetGroup.Android, buildInfo.bundleName);
|
PlayerSettings.SetApplicationIdentifier(BuildTargetGroup.Android, buildInfo.bundleName);
|
||||||
Debug.Log("[bfinfo]设置包名:" + buildInfo.bundleName);
|
|
||||||
|
|
||||||
// 跳过版本控制
|
// 跳过版本控制
|
||||||
var symbols = ANDROID_DEFINE_SYMBOLS;
|
var symbols = ANDROID_DEFINE_SYMBOLS;
|
||||||
if (buildInfo.skipVersion)
|
if (buildInfo.skipVersion)
|
||||||
{
|
{
|
||||||
symbols = symbols + ";SKIP_VERSION;";
|
symbols = symbols + ";SKIP_VERSION";
|
||||||
|
}
|
||||||
|
if (buildInfo.mode == BuildMode.DEV)
|
||||||
|
{
|
||||||
|
symbols = symbols + ";BF_APP_DEV";
|
||||||
|
}
|
||||||
|
else if (buildInfo.mode == BuildMode.TEST)
|
||||||
|
{
|
||||||
|
symbols = symbols + ";BF_APP_TEST";
|
||||||
}
|
}
|
||||||
|
|
||||||
PlayerSettings.SetScriptingDefineSymbolsForGroup(BuildTargetGroup.Android, symbols);
|
PlayerSettings.SetScriptingDefineSymbolsForGroup(BuildTargetGroup.Android, symbols);
|
||||||
Debug.Log("[bfinfo]设置defineSymbols: " + symbols);
|
Debug.Log("[bfinfo]设置defineSymbols: " + symbols);
|
||||||
|
|
||||||
// 是否是dev
|
|
||||||
var development = buildInfo.IsDevChannel() ? true : false;
|
|
||||||
EditorUserBuildSettings.development = development;
|
|
||||||
|
|
||||||
// 商品名称
|
PlayerSettings.productName = "Pull Pull Pull Heroes";
|
||||||
// 应用名
|
EditorUserBuildSettings.development = false;
|
||||||
if (buildInfo.IsPublish())
|
EditorUserBuildSettings.androidBuildType = AndroidBuildType.Release;
|
||||||
{
|
|
||||||
PlayerSettings.productName = "Knights Combo";
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
PlayerSettings.productName = development ? "b6-dev" : "b6-release";
|
|
||||||
}
|
|
||||||
// BuildType设置dev/release
|
|
||||||
EditorUserBuildSettings.androidBuildType = development ? AndroidBuildType.Debug : AndroidBuildType.Release;
|
|
||||||
|
|
||||||
// 是否导出as工程
|
// 是否导出as工程
|
||||||
// EditorUserBuildSettings.exportAsGoogleAndroidProject = development ? false : true;
|
|
||||||
EditorUserBuildSettings.exportAsGoogleAndroidProject = true;
|
EditorUserBuildSettings.exportAsGoogleAndroidProject = true;
|
||||||
|
|
||||||
// dev使用Mono release使用IL2CPP
|
var scriptImp = ScriptingImplementation.IL2CPP;
|
||||||
var scriptImp = development ? ScriptingImplementation.Mono2x : ScriptingImplementation.IL2CPP;
|
|
||||||
PlayerSettings.SetScriptingBackend(BuildTargetGroup.Android, scriptImp);
|
PlayerSettings.SetScriptingBackend(BuildTargetGroup.Android, scriptImp);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 获取打包参数
|
/// 获取打包参数
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -164,43 +165,23 @@ namespace BFEditor.Build
|
|||||||
var bpOptions = new BuildPlayerOptions();
|
var bpOptions = new BuildPlayerOptions();
|
||||||
bpOptions.scenes = AssetBundleUtils.GetBuildScenes();
|
bpOptions.scenes = AssetBundleUtils.GetBuildScenes();
|
||||||
bpOptions.target = BuildTarget.Android;
|
bpOptions.target = BuildTarget.Android;
|
||||||
|
|
||||||
// if (buildInfo.IsDevChannel())
|
|
||||||
// {
|
|
||||||
// bpOptions.locationPathName = GetDevApkPathName(buildInfo);
|
|
||||||
// Debug.Log("[bfinfo]apk path : " + bpOptions.locationPathName);
|
|
||||||
// }
|
|
||||||
// else
|
|
||||||
// {
|
|
||||||
// bpOptions.locationPathName = GetASProjectPathName();
|
|
||||||
// Debug.Log("[bfinfo]asProject path : " + bpOptions.locationPathName);
|
|
||||||
// }
|
|
||||||
bpOptions.locationPathName = GetASProjectPathName(buildInfo);
|
bpOptions.locationPathName = GetASProjectPathName(buildInfo);
|
||||||
|
|
||||||
BuildOptions options;
|
BuildOptions options = BuildOptions.None;
|
||||||
if (buildInfo.IsReleaseChannel())
|
|
||||||
{
|
|
||||||
options = BuildOptions.None;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
options = BuildOptions.Development;
|
|
||||||
}
|
|
||||||
|
|
||||||
bpOptions.options = options;
|
bpOptions.options = options;
|
||||||
return bpOptions;
|
return bpOptions;
|
||||||
}
|
}
|
||||||
|
|
||||||
static string GetDevApkPathName(BuildInfo buildInfo)
|
static string GetDevApkPathName(BuildInfo buildInfo)
|
||||||
{
|
{
|
||||||
var apkName = buildInfo.skipVersion ? "dz_dev_skip_version.apk" : "dz_dev_debug.apk";
|
var apkName = buildInfo.skipVersion ? "dz_dev_skip_version.apk" : "dz_dev_debug.apk";
|
||||||
var path = Path.Combine(AS_PROJECT_PATH, apkName);
|
var path = Path.Combine(AS_PROJECT_PATH, apkName);
|
||||||
return path;
|
return path;
|
||||||
}
|
}
|
||||||
|
|
||||||
static string GetASProjectPathName(BuildInfo buildInfo)
|
static string GetASProjectPathName(BuildInfo buildInfo)
|
||||||
{
|
{
|
||||||
var dir = Path.Combine(AS_PROJECT_PATH, buildInfo.mode);
|
var dir = Path.Combine(AS_PROJECT_PATH, "publish_release");
|
||||||
if (Directory.Exists(dir))
|
if (Directory.Exists(dir))
|
||||||
{
|
{
|
||||||
Directory.Delete(dir, true);
|
Directory.Delete(dir, true);
|
||||||
@ -208,32 +189,53 @@ namespace BFEditor.Build
|
|||||||
return dir;
|
return dir;
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool BuildAPK(BuildInfo buildInfo)
|
static bool BuildAPK(BuildInfo buildInfo, bool isAAB = false)
|
||||||
{
|
{
|
||||||
if (buildInfo.IsGPChannel())
|
// 设置jdk环境变量
|
||||||
{
|
string javaHomePath = System.Environment.GetEnvironmentVariable("JAVE_HOME");
|
||||||
MergeGPToReleaseProject(buildInfo);
|
if (string.IsNullOrEmpty(javaHomePath))
|
||||||
FixGradleVersion(buildInfo.version_code, buildInfo.version);
|
{
|
||||||
}
|
Debug.LogError("[bferror] 找不到环境变量JAVE_HOME");
|
||||||
|
return false;
|
||||||
if (buildInfo.IsLanRelease())
|
}
|
||||||
{
|
var gradleFilePath = Path.Combine(PublishAsProjectPath, "gradle.properties");
|
||||||
AddBuglyParamsToReleaseProject();
|
var gradleFileText = File.ReadAllText(gradleFilePath);
|
||||||
}
|
if (!gradleFileText.Contains("org.gradle.java.home"))
|
||||||
|
{
|
||||||
|
gradleFileText = gradleFileText + "\norg.gradle.java.home=" + javaHomePath.Replace("\\", "/");
|
||||||
|
}
|
||||||
|
File.WriteAllText(gradleFilePath, gradleFileText);
|
||||||
|
|
||||||
|
// 设置密钥密码
|
||||||
|
if (File.Exists(KeystoreFilePath))
|
||||||
|
{
|
||||||
|
var password = File.ReadAllText(KeystoreFilePath).Replace("\n", "").Replace("\r", "");
|
||||||
|
var buildGradlePath = Path.Combine(PublishAsProjectPath, "launcher/build.gradle");
|
||||||
|
var text = File.ReadAllText(buildGradlePath);
|
||||||
|
var regex = new Regex("REPLACE_PASSWORD");
|
||||||
|
text = regex.Replace(text, password);
|
||||||
|
File.WriteAllText(buildGradlePath, text);
|
||||||
|
}
|
||||||
|
|
||||||
Debug.Log("[bfinfo]正在buildApk...");
|
Debug.Log("[bfinfo]正在buildApk...");
|
||||||
var success = true;
|
var success = true;
|
||||||
var args = "";
|
var args = "assembleRelease";
|
||||||
if (buildInfo.IsReleaseChannel())
|
if (isAAB)
|
||||||
{
|
{
|
||||||
args += " assembleRelease";
|
args = "bundleRelease";
|
||||||
}
|
}
|
||||||
else
|
string gradleHomePath = System.Environment.GetEnvironmentVariable("GRADLE_HOME");
|
||||||
{
|
if (string.IsNullOrEmpty(gradleHomePath))
|
||||||
args += " assembleDebug";
|
{
|
||||||
}
|
Debug.LogError("[bferror] 找不到环境变量GRADLE_HOME");
|
||||||
|
return false;
|
||||||
BFEditorUtils.RunCommond(GRADLE_PATH, args, GradleExcuteProjectPath,
|
}
|
||||||
|
#if UNITY_EDITOR_OSX
|
||||||
|
var gradleCommondPath = Path.Combine(gradleHomePath, "gradle");
|
||||||
|
#else
|
||||||
|
var gradleCommondPath = Path.Combine(gradleHomePath, "gradle.bat");
|
||||||
|
#endif
|
||||||
|
BFEditorUtils.RunCommond(gradleCommondPath, args, PublishAsProjectPath,
|
||||||
(msg) =>
|
(msg) =>
|
||||||
{
|
{
|
||||||
},
|
},
|
||||||
@ -245,80 +247,35 @@ namespace BFEditor.Build
|
|||||||
Debug.LogError("[bferror] " + errorMsg);
|
Debug.LogError("[bferror] " + errorMsg);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
if (buildInfo.IsGPChannel())
|
|
||||||
{
|
|
||||||
// 尝试制作并上传bugly符号表 开新Thread不影响打包流程
|
|
||||||
if (success)
|
|
||||||
{
|
|
||||||
CopySOAndUploadBuglySymbol(buildInfo.bundleName, buildInfo.version);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return success;
|
return success;
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool BuildAAB(BuildInfo buildInfo)
|
|
||||||
{
|
|
||||||
var result = true;
|
|
||||||
if(buildInfo.IsGPChannel())
|
|
||||||
{
|
|
||||||
// MergeGPToReleaseProject(buildInfo);
|
|
||||||
// FixGradleVersion(buildInfo.version_code, buildInfo.version);
|
|
||||||
}
|
|
||||||
|
|
||||||
return result;
|
|
||||||
}
|
|
||||||
|
|
||||||
static bool BuildAndroidAPK(BuildInfo buildInfo)
|
|
||||||
{
|
|
||||||
var result = true;
|
|
||||||
if(buildInfo.IsDevChannel())
|
|
||||||
{
|
|
||||||
MergeProject(buildInfo, DevAsProjectPath);
|
|
||||||
var dir = Path.Combine(Application.dataPath, "../", AS_PROJECT_PATH, buildInfo.mode);
|
|
||||||
BFEditorUtils.RunCommond("gradle", " assembleDebug", dir, (msg) => {
|
|
||||||
}, (errorMsg) => {
|
|
||||||
Debug.LogError("[bferror] " + errorMsg);
|
|
||||||
});
|
|
||||||
}
|
|
||||||
else if(buildInfo.IsLanRelease())
|
|
||||||
{
|
|
||||||
MergeProject(buildInfo, LanReleaseAsProjectPath);
|
|
||||||
}
|
|
||||||
else if(buildInfo.IsGPChannel())
|
|
||||||
{
|
|
||||||
MergeProject(buildInfo, GoogleAsProjectPath);
|
|
||||||
FixGradleVersion(buildInfo.version_code, buildInfo.version);
|
|
||||||
}
|
|
||||||
return result;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 合并dev工程
|
/// 合并工程
|
||||||
/// </summary>
|
/// </summary>
|
||||||
static void MergeProject(BuildInfo buildInfo, String asProjectPath)
|
static void MergeProject(BuildInfo buildInfo, String asProjectPath)
|
||||||
{
|
{
|
||||||
Debug.Log("[bfinfo]正在整合dev project...");
|
Debug.Log("[bfinfo]正在整合 project...");
|
||||||
|
|
||||||
var dir = Path.Combine(Application.dataPath, "../", AS_PROJECT_PATH, buildInfo.mode);
|
var dir = Path.Combine(Application.dataPath, "../", AS_PROJECT_PATH, "publish_release");
|
||||||
|
|
||||||
var javaPath = Path.Combine(dir, "unityLibrary/src/main/java");
|
var javaPath = Path.Combine(dir, "unityLibrary/src/main/java");
|
||||||
var manifestPath = Path.Combine(dir, "unityLibrary/src/main/AndroidManifest.xml");
|
var manifestPath = Path.Combine(dir, "unityLibrary/src/main/AndroidManifest.xml");
|
||||||
|
|
||||||
|
// 老版本unity需要替换这个,2021之后的新版本不需要
|
||||||
// 获取到unity打出的build-id
|
// 获取到unity打出的build-id
|
||||||
var reader = new StreamReader(new FileStream(manifestPath, FileMode.Open));
|
// var reader = new StreamReader(new FileStream(manifestPath, FileMode.Open));
|
||||||
string buildIdLine;
|
// string buildIdLine;
|
||||||
while ((buildIdLine = reader.ReadLine()) != null)
|
// while ((buildIdLine = reader.ReadLine()) != null)
|
||||||
{
|
// {
|
||||||
if (buildIdLine.Contains("unity.build-id"))
|
// if (buildIdLine.Contains("unity.build-id"))
|
||||||
{
|
// {
|
||||||
Debug.Log("[bfinfo]修正build-id: " + buildIdLine);
|
// Debug.Log("[bfinfo]修正build-id: " + buildIdLine);
|
||||||
break;
|
// break;
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
reader.Close();
|
// reader.Close();
|
||||||
reader.Dispose();
|
// reader.Dispose();
|
||||||
|
|
||||||
if (Directory.Exists(javaPath))
|
if (Directory.Exists(javaPath))
|
||||||
{
|
{
|
||||||
@ -326,71 +283,62 @@ namespace BFEditor.Build
|
|||||||
di.Delete(true);
|
di.Delete(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
BFEditorUtils.CopyDir(GoogleCommonProjectPath, dir);
|
// 如果是俄罗斯支付 则需要覆盖为俄罗斯相关文件
|
||||||
// 获取到google_common复制过去的build.gradle和AndroidManifest
|
// if (buildInfo.bundleName == BF.BFPlatform.ANDROID_GP_PACKAGE_NAME_RU)
|
||||||
var buildGradlePath = Path.Combine(dir, "launcher/build.gradle");
|
// {
|
||||||
var text = File.ReadAllText(buildGradlePath);
|
// BFEditorUtils.CopyDir(RuProjectPath, dir);
|
||||||
var regex = new Regex("REPLACE_APPLICATION_ID");
|
// // 获取到build.gradle和AndroidManifest
|
||||||
text = regex.Replace(text, buildInfo.bundleName);
|
// var buildGradlePath = Path.Combine(dir, "launcher/build.gradle");
|
||||||
File.WriteAllText(buildGradlePath, text);
|
// var text = File.ReadAllText(buildGradlePath);
|
||||||
|
// var regex = new Regex("REPLACE_APPLICATION_ID");
|
||||||
|
// text = regex.Replace(text, buildInfo.bundleName);
|
||||||
|
// File.WriteAllText(buildGradlePath, text);
|
||||||
|
|
||||||
var androidManifestPath = Path.Combine(dir, "launcher/src/main/AndroidManifest.xml");
|
// var androidManifestPath = Path.Combine(dir, "launcher/src/main/AndroidManifest.xml");
|
||||||
text = File.ReadAllText(androidManifestPath);
|
// text = File.ReadAllText(androidManifestPath);
|
||||||
regex = new Regex("REPLACE_APPLICATION_ID");
|
// regex = new Regex("REPLACE_APPLICATION_ID");
|
||||||
text = regex.Replace(text, buildInfo.bundleName);
|
// text = regex.Replace(text, buildInfo.bundleName);
|
||||||
File.WriteAllText(androidManifestPath, text);
|
// File.WriteAllText(androidManifestPath, text);
|
||||||
|
|
||||||
BFEditorUtils.CopyDir(asProjectPath, dir);
|
// // 还有另一个AndroidManifest
|
||||||
|
// androidManifestPath = Path.Combine(dir, "unityLibrary/src/main/AndroidManifest.xml");
|
||||||
|
// text = File.ReadAllText(androidManifestPath);
|
||||||
|
// regex = new Regex("REPLACE_APPLICATION_ID");
|
||||||
|
// text = regex.Replace(text, buildInfo.bundleName);
|
||||||
|
// File.WriteAllText(androidManifestPath, text);
|
||||||
|
// }
|
||||||
|
// // 否则使用通用谷歌
|
||||||
|
// else
|
||||||
|
// {
|
||||||
|
BFEditorUtils.CopyDir(GoogleCommonProjectPath, dir);
|
||||||
|
// 获取到google_common复制过去的build.gradle和AndroidManifest
|
||||||
|
var buildGradlePath = Path.Combine(dir, "launcher/build.gradle");
|
||||||
|
var text = File.ReadAllText(buildGradlePath);
|
||||||
|
var regex = new Regex("REPLACE_APPLICATION_ID");
|
||||||
|
text = regex.Replace(text, buildInfo.bundleName);
|
||||||
|
File.WriteAllText(buildGradlePath, text);
|
||||||
|
|
||||||
text = File.ReadAllText(manifestPath);
|
var androidManifestPath = Path.Combine(dir, "launcher/src/main/AndroidManifest.xml");
|
||||||
regex = new Regex("REPLACE_BUILD_ID");
|
text = File.ReadAllText(androidManifestPath);
|
||||||
text = regex.Replace(text, buildIdLine);
|
regex = new Regex("REPLACE_APPLICATION_ID");
|
||||||
File.WriteAllText(manifestPath, text);
|
text = regex.Replace(text, buildInfo.bundleName);
|
||||||
}
|
File.WriteAllText(androidManifestPath, text);
|
||||||
|
|
||||||
/// <summary>
|
BFEditorUtils.CopyDir(asProjectPath, dir);
|
||||||
/// 合并gp工程
|
// 还有dz_google_apk下的AndroidManifest
|
||||||
/// </summary>
|
androidManifestPath = Path.Combine(dir, "unityLibrary/src/main/AndroidManifest.xml");
|
||||||
static void MergeGPToReleaseProject(BuildInfo buildInfo)
|
text = File.ReadAllText(androidManifestPath);
|
||||||
{
|
regex = new Regex("REPLACE_APPLICATION_ID");
|
||||||
Debug.Log("[bfinfo]正在整合gp渠道sdk...");
|
text = regex.Replace(text, buildInfo.bundleName);
|
||||||
|
File.WriteAllText(androidManifestPath, text);
|
||||||
var javaPath = GradleExcuteProjectPath + "/src/main/java";
|
// }
|
||||||
var manifestPath = GradleExcuteProjectPath + "/src/main/AndroidManifest.xml";
|
// 统一替换google-services文件
|
||||||
|
var gsPath = Path.Combine(GoogleServicesProjectPath, Path.Combine(buildInfo.bundleName, "google-services.json"));
|
||||||
// 获取到unity打出的build-id
|
if (File.Exists(gsPath))
|
||||||
var reader = new StreamReader(new FileStream(manifestPath, FileMode.Open));
|
|
||||||
string buildIdLine;
|
|
||||||
while ((buildIdLine = reader.ReadLine()) != null)
|
|
||||||
{
|
|
||||||
if (buildIdLine.Contains("unity.build-id"))
|
|
||||||
{
|
|
||||||
Debug.Log("[bfinfo]修正build-id: " + buildIdLine);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
reader.Close();
|
|
||||||
reader.Dispose();
|
|
||||||
|
|
||||||
if (Directory.Exists(javaPath))
|
|
||||||
{
|
|
||||||
var di = new DirectoryInfo(javaPath);
|
|
||||||
di.Delete(true);
|
|
||||||
}
|
|
||||||
|
|
||||||
if (buildInfo.IsGPOfficial())
|
|
||||||
{
|
{
|
||||||
BFEditorUtils.CopyDir(GPOfficialAsProjectPath, GradleExcuteProjectPath);
|
var destFilePath = Path.Combine(dir, "launcher/google-services.json");
|
||||||
|
File.Copy(gsPath, destFilePath, true);
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
BFEditorUtils.CopyDir(GPAsProjectPath, GradleExcuteProjectPath);
|
|
||||||
}
|
|
||||||
|
|
||||||
var text = File.ReadAllText(manifestPath);
|
|
||||||
var regex = new Regex("REPLACE_BUILD_ID");
|
|
||||||
text = regex.Replace(text, buildIdLine);
|
|
||||||
File.WriteAllText(manifestPath, text);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
@ -413,7 +361,7 @@ namespace BFEditor.Build
|
|||||||
text2 = regex2.Replace(text2, string.Format("versionName '{0}'", versionName));
|
text2 = regex2.Replace(text2, string.Format("versionName '{0}'", versionName));
|
||||||
File.WriteAllText(gradleFilePath2, text2);
|
File.WriteAllText(gradleFilePath2, text2);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 内网Release包接入Bugly
|
/// 内网Release包接入Bugly
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -429,7 +377,7 @@ namespace BFEditor.Build
|
|||||||
"implementation 'com.tencent.bugly:crashreport:latest.release'\n" +
|
"implementation 'com.tencent.bugly:crashreport:latest.release'\n" +
|
||||||
"implementation 'com.tencent.bugly:nativecrashreport:latest.release'\n");
|
"implementation 'com.tencent.bugly:nativecrashreport:latest.release'\n");
|
||||||
File.WriteAllText(gradleFilePath, text);
|
File.WriteAllText(gradleFilePath, text);
|
||||||
|
|
||||||
// 修改AndroidManifest.xml
|
// 修改AndroidManifest.xml
|
||||||
var manifestPath = GradleExcuteProjectPath + "/src/main/AndroidManifest.xml";
|
var manifestPath = GradleExcuteProjectPath + "/src/main/AndroidManifest.xml";
|
||||||
text = File.ReadAllText(manifestPath);
|
text = File.ReadAllText(manifestPath);
|
||||||
@ -442,7 +390,7 @@ namespace BFEditor.Build
|
|||||||
"<uses-permission android:name='android.permission.READ_LOGS' />\n" +
|
"<uses-permission android:name='android.permission.READ_LOGS' />\n" +
|
||||||
"<uses-permission android:name='android.permission.POST_NOTIFICATIONS'/>\n");
|
"<uses-permission android:name='android.permission.POST_NOTIFICATIONS'/>\n");
|
||||||
File.WriteAllText(manifestPath, text);
|
File.WriteAllText(manifestPath, text);
|
||||||
|
|
||||||
// 修改UnityPlayerActivity.java
|
// 修改UnityPlayerActivity.java
|
||||||
var javaPath = GradleExcuteProjectPath + "/src/main/java/com/juzu/ub/release/android/UnityPlayerActivity.java";
|
var javaPath = GradleExcuteProjectPath + "/src/main/java/com/juzu/ub/release/android/UnityPlayerActivity.java";
|
||||||
text = File.ReadAllText(javaPath);
|
text = File.ReadAllText(javaPath);
|
||||||
@ -458,7 +406,7 @@ namespace BFEditor.Build
|
|||||||
text = text.Insert(index + length, formatInsertString);
|
text = text.Insert(index + length, formatInsertString);
|
||||||
File.WriteAllText(javaPath, text);
|
File.WriteAllText(javaPath, text);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// release包加密后签名
|
/// release包加密后签名
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -477,7 +425,7 @@ namespace BFEditor.Build
|
|||||||
});
|
});
|
||||||
return success;
|
return success;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// gp包对齐
|
/// gp包对齐
|
||||||
/// </summary>
|
/// </summary>
|
||||||
@ -524,7 +472,7 @@ namespace BFEditor.Build
|
|||||||
{
|
{
|
||||||
// 将release的so复制到bugly文件下
|
// 将release的so复制到bugly文件下
|
||||||
BFEditorUtils.CopyDir(ReleaseSOPath, BuglySOPath);
|
BFEditorUtils.CopyDir(ReleaseSOPath, BuglySOPath);
|
||||||
|
|
||||||
// 开启Thread处理打包so和上传
|
// 开启Thread处理打包so和上传
|
||||||
TryCloseUploadThread();
|
TryCloseUploadThread();
|
||||||
var args = "bugly.sh" + " " + BUGLY_APP_ID + " " + BUGLY_APP_KEY + " " + bundleName + " " + version;
|
var args = "bugly.sh" + " " + BUGLY_APP_ID + " " + BUGLY_APP_KEY + " " + bundleName + " " + version;
|
||||||
@ -532,7 +480,7 @@ namespace BFEditor.Build
|
|||||||
buglyUploadThread.IsBackground = true;
|
buglyUploadThread.IsBackground = true;
|
||||||
buglyUploadThread.Start();
|
buglyUploadThread.Start();
|
||||||
}
|
}
|
||||||
|
|
||||||
static void UploadBuglySymbol(string args)
|
static void UploadBuglySymbol(string args)
|
||||||
{
|
{
|
||||||
BFEditorUtils.RunCommond("sh", args, BuglyPath,
|
BFEditorUtils.RunCommond("sh", args, BuglyPath,
|
||||||
@ -544,10 +492,10 @@ namespace BFEditor.Build
|
|||||||
{
|
{
|
||||||
Debug.LogError("[bferror] UploadBuglySymbol: " + errorMsg);
|
Debug.LogError("[bferror] UploadBuglySymbol: " + errorMsg);
|
||||||
});
|
});
|
||||||
|
|
||||||
TryCloseUploadThread();
|
TryCloseUploadThread();
|
||||||
}
|
}
|
||||||
|
|
||||||
static void TryCloseUploadThread()
|
static void TryCloseUploadThread()
|
||||||
{
|
{
|
||||||
if (buglyUploadThread != null)
|
if (buglyUploadThread != null)
|
||||||
|
|||||||
@ -1,348 +1,348 @@
|
|||||||
#if UNITY_EDITOR_OSX
|
// #if UNITY_EDITOR_OSX
|
||||||
using UnityEngine;
|
// using UnityEngine;
|
||||||
using UnityEditor;
|
// using UnityEditor;
|
||||||
using UnityEditor.Build.Reporting;
|
// using UnityEditor.Build.Reporting;
|
||||||
using UnityEditor.iOS.Xcode;
|
// using UnityEditor.iOS.Xcode;
|
||||||
using System.IO;
|
// using System.IO;
|
||||||
#endif
|
// #endif
|
||||||
|
|
||||||
namespace BFEditor.Build
|
// namespace BFEditor.Build
|
||||||
{
|
// {
|
||||||
public static class BuildIOSUtils
|
// public static class BuildIOSUtils
|
||||||
{
|
// {
|
||||||
#if UNITY_EDITOR_OSX
|
// #if UNITY_EDITOR_OSX
|
||||||
const string IOS_DEFINE_SYMBOLS = "THREAD_SAFE;USE_AB";
|
// const string IOS_DEFINE_SYMBOLS = "THREAD_SAFE;USE_AB";
|
||||||
const string DEV_XCODE_LOCAL_PATH = "BFVersions/ios/dev";
|
// const string DEV_XCODE_LOCAL_PATH = "BFVersions/ios/dev";
|
||||||
const string RELEASE_XCODE_LOCAL_PATH = "BFVersions/ios/release";
|
// const string RELEASE_XCODE_LOCAL_PATH = "BFVersions/ios/release";
|
||||||
|
|
||||||
static string devXCodePath = Application.dataPath + "/../" + DEV_XCODE_LOCAL_PATH;
|
// static string devXCodePath = Application.dataPath + "/../" + DEV_XCODE_LOCAL_PATH;
|
||||||
static string releaseXCodePath = Application.dataPath + "/../" + RELEASE_XCODE_LOCAL_PATH;
|
// static string releaseXCodePath = Application.dataPath + "/../" + RELEASE_XCODE_LOCAL_PATH;
|
||||||
static string devOptionsPListPath = Application.dataPath + "/../" + "BFVersions/ios/exports/dev/ExportOptions.plist";
|
// static string devOptionsPListPath = Application.dataPath + "/../" + "BFVersions/ios/exports/dev/ExportOptions.plist";
|
||||||
static string releaseOptionsPListPath = Application.dataPath + "/../" + "BFVersions/ios/exports/release/ExportOptions.plist";
|
// static string releaseOptionsPListPath = Application.dataPath + "/../" + "BFVersions/ios/exports/release/ExportOptions.plist";
|
||||||
static string publishOptionsPListPath = Application.dataPath + "/../" + "BFVersions/ios/exports/dis/ExportOptions.plist";
|
// static string publishOptionsPListPath = Application.dataPath + "/../" + "BFVersions/ios/exports/dis/ExportOptions.plist";
|
||||||
|
|
||||||
public static bool BuildIOSPlayer(BuildInfo buildInfo)
|
// public static bool BuildIOSPlayer(BuildInfo buildInfo)
|
||||||
{
|
// {
|
||||||
var buildTarget = BuildTarget.iOS;
|
// var buildTarget = BuildTarget.iOS;
|
||||||
|
|
||||||
// 检查平台
|
// // 检查平台
|
||||||
if (EditorUserBuildSettings.activeBuildTarget != buildTarget)
|
// if (EditorUserBuildSettings.activeBuildTarget != buildTarget)
|
||||||
{
|
// {
|
||||||
Debug.LogError("[bferror]当前没有在对应平台");
|
// Debug.LogError("[bferror]当前没有在对应平台");
|
||||||
return false;
|
// return false;
|
||||||
}
|
// }
|
||||||
|
|
||||||
// 重新生成XLua
|
// // 重新生成XLua
|
||||||
CompileScriptsUtils.RegenerateXLuaCode(true);
|
// CompileScriptsUtils.RegenerateXLuaCode(true);
|
||||||
|
|
||||||
// 打包设置
|
// // 打包设置
|
||||||
BuildSettings(buildInfo);
|
// BuildSettings(buildInfo);
|
||||||
|
|
||||||
// 开始打包
|
// // 开始打包
|
||||||
var bpOptions = GetBuildOptions(buildInfo);
|
// var bpOptions = GetBuildOptions(buildInfo);
|
||||||
var report = BuildPipeline.BuildPlayer(bpOptions);
|
// var report = BuildPipeline.BuildPlayer(bpOptions);
|
||||||
if (report.summary.result == BuildResult.Succeeded)
|
// if (report.summary.result == BuildResult.Succeeded)
|
||||||
{
|
// {
|
||||||
return BuildIpaFromXCode(buildInfo);
|
// return BuildIpaFromXCode(buildInfo);
|
||||||
}
|
// }
|
||||||
else
|
// else
|
||||||
{
|
// {
|
||||||
Debug.LogError("[bferror]unity打包xcode失败");
|
// Debug.LogError("[bferror]unity打包xcode失败");
|
||||||
return false;
|
// return false;
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
|
|
||||||
/// <summary>
|
// /// <summary>
|
||||||
/// 打包设置
|
// /// 打包设置
|
||||||
/// </summary>
|
// /// </summary>
|
||||||
static void BuildSettings(BuildInfo buildInfo)
|
// static void BuildSettings(BuildInfo buildInfo)
|
||||||
{
|
// {
|
||||||
// 设置bundleVersion
|
// // 设置bundleVersion
|
||||||
PlayerSettings.bundleVersion = buildInfo.version;
|
// PlayerSettings.bundleVersion = buildInfo.version;
|
||||||
|
|
||||||
// 设置buildNumber
|
// // 设置buildNumber
|
||||||
PlayerSettings.iOS.buildNumber = buildInfo.version_code.ToString();
|
// PlayerSettings.iOS.buildNumber = buildInfo.versionCode.ToString();
|
||||||
|
|
||||||
// 设置竖屏
|
// // 设置竖屏
|
||||||
PlayerSettings.defaultInterfaceOrientation = UIOrientation.Portrait;
|
// PlayerSettings.defaultInterfaceOrientation = UIOrientation.Portrait;
|
||||||
PlayerSettings.allowedAutorotateToPortrait = false;
|
// PlayerSettings.allowedAutorotateToPortrait = false;
|
||||||
PlayerSettings.allowedAutorotateToPortraitUpsideDown = false;
|
// PlayerSettings.allowedAutorotateToPortraitUpsideDown = false;
|
||||||
PlayerSettings.allowedAutorotateToLandscapeLeft = false;
|
// PlayerSettings.allowedAutorotateToLandscapeLeft = false;
|
||||||
PlayerSettings.allowedAutorotateToLandscapeRight = false;
|
// PlayerSettings.allowedAutorotateToLandscapeRight = false;
|
||||||
|
|
||||||
// 允许Xcode根据appleDeveloperTeamID自动签署应用程序
|
// // 允许Xcode根据appleDeveloperTeamID自动签署应用程序
|
||||||
PlayerSettings.iOS.appleEnableAutomaticSigning = !buildInfo.IsPublish();
|
// PlayerSettings.iOS.appleEnableAutomaticSigning = !buildInfo.IsPublish();
|
||||||
|
|
||||||
// 使用手动签名时iOS资源调配配置文件的类型,自动
|
// // 使用手动签名时iOS资源调配配置文件的类型,自动
|
||||||
PlayerSettings.iOS.iOSManualProvisioningProfileType = buildInfo.IsPublish() ? ProvisioningProfileType.Distribution : ProvisioningProfileType.Automatic;
|
// PlayerSettings.iOS.iOSManualProvisioningProfileType = buildInfo.IsPublish() ? ProvisioningProfileType.Distribution : ProvisioningProfileType.Automatic;
|
||||||
|
|
||||||
// 关闭启动动画
|
// // 关闭启动动画
|
||||||
PlayerSettings.SplashScreen.show = false;
|
// PlayerSettings.SplashScreen.show = false;
|
||||||
|
|
||||||
// 设置包名
|
// // 设置包名
|
||||||
PlayerSettings.SetApplicationIdentifier(BuildTargetGroup.iOS, buildInfo.bundleName);
|
// PlayerSettings.SetApplicationIdentifier(BuildTargetGroup.iOS, buildInfo.bundleName);
|
||||||
Debug.Log("[bfinfo]设置包名:" + buildInfo.bundleName);
|
// Debug.Log("[bfinfo]设置包名:" + buildInfo.bundleName);
|
||||||
|
|
||||||
// 是否跳过版本控制
|
// // 是否跳过版本控制
|
||||||
var symbols = IOS_DEFINE_SYMBOLS;
|
// var symbols = IOS_DEFINE_SYMBOLS;
|
||||||
if (buildInfo.skipVersion)
|
// if (buildInfo.skipVersion)
|
||||||
{
|
// {
|
||||||
symbols = symbols + ";SKIP_VERSION;";
|
// symbols = symbols + ";SKIP_VERSION;";
|
||||||
}
|
// }
|
||||||
|
|
||||||
|
|
||||||
PlayerSettings.SetScriptingDefineSymbolsForGroup(BuildTargetGroup.iOS, symbols);
|
// PlayerSettings.SetScriptingDefineSymbolsForGroup(BuildTargetGroup.iOS, symbols);
|
||||||
Debug.Log("[bfinfo]设置defineSymbols: " + symbols);
|
// Debug.Log("[bfinfo]设置defineSymbols: " + symbols);
|
||||||
|
|
||||||
// 是否是dev
|
// // 是否是dev
|
||||||
var development = buildInfo.IsDevChannel();
|
// var development = buildInfo.IsDevChannel();
|
||||||
EditorUserBuildSettings.development = development;
|
// EditorUserBuildSettings.development = development;
|
||||||
|
|
||||||
// 商品名称
|
// // 商品名称
|
||||||
if (buildInfo.IsPublish())
|
// if (buildInfo.IsPublish())
|
||||||
{
|
// {
|
||||||
PlayerSettings.productName = "Heroic Expedition";
|
// PlayerSettings.productName = "Heroic Expedition";
|
||||||
}
|
// }
|
||||||
else
|
// else
|
||||||
{
|
// {
|
||||||
PlayerSettings.productName = development ? "b6-dev" : "b6-release";
|
// PlayerSettings.productName = development ? "b6-dev" : "b6-release";
|
||||||
}
|
// }
|
||||||
|
|
||||||
// BuildType设置dev/release
|
// // BuildType设置dev/release
|
||||||
EditorUserBuildSettings.iOSXcodeBuildConfig = development ? XcodeBuildConfig.Debug : XcodeBuildConfig.Release;
|
// EditorUserBuildSettings.iOSXcodeBuildConfig = development ? XcodeBuildConfig.Debug : XcodeBuildConfig.Release;
|
||||||
|
|
||||||
// 使用IL2CPP
|
// // 使用IL2CPP
|
||||||
var scriptImp = ScriptingImplementation.IL2CPP;
|
// var scriptImp = ScriptingImplementation.IL2CPP;
|
||||||
PlayerSettings.SetScriptingBackend(BuildTargetGroup.iOS, scriptImp);
|
// PlayerSettings.SetScriptingBackend(BuildTargetGroup.iOS, scriptImp);
|
||||||
|
|
||||||
// 目标平台架构,目前支持ARM64
|
// // 目标平台架构,目前支持ARM64
|
||||||
PlayerSettings.SetArchitecture(BuildTargetGroup.iOS, 1);
|
// PlayerSettings.SetArchitecture(BuildTargetGroup.iOS, 1);
|
||||||
}
|
// }
|
||||||
|
|
||||||
/// <summary>
|
// /// <summary>
|
||||||
/// 获取打包参数
|
// /// 获取打包参数
|
||||||
/// </summary>
|
// /// </summary>
|
||||||
static BuildPlayerOptions GetBuildOptions(BuildInfo buildInfo)
|
// static BuildPlayerOptions GetBuildOptions(BuildInfo buildInfo)
|
||||||
{
|
// {
|
||||||
var bpOptions = new BuildPlayerOptions();
|
// var bpOptions = new BuildPlayerOptions();
|
||||||
bpOptions.scenes = AssetBundleUtils.GetBuildScenes();
|
// bpOptions.scenes = AssetBundleUtils.GetBuildScenes();
|
||||||
bpOptions.target = BuildTarget.iOS;
|
// bpOptions.target = BuildTarget.iOS;
|
||||||
|
|
||||||
var path = buildInfo.IsReleaseChannel() ? RELEASE_XCODE_LOCAL_PATH : DEV_XCODE_LOCAL_PATH;
|
// var path = buildInfo.IsReleaseChannel() ? RELEASE_XCODE_LOCAL_PATH : DEV_XCODE_LOCAL_PATH;
|
||||||
bpOptions.locationPathName = path;
|
// bpOptions.locationPathName = path;
|
||||||
Debug.Log("[bfinfo]xcode path : " + path);
|
// Debug.Log("[bfinfo]xcode path : " + path);
|
||||||
var absolutePath = buildInfo.IsReleaseChannel() ? releaseXCodePath : devXCodePath;
|
// var absolutePath = buildInfo.IsReleaseChannel() ? releaseXCodePath : devXCodePath;
|
||||||
if (Directory.Exists(absolutePath))
|
// if (Directory.Exists(absolutePath))
|
||||||
{
|
// {
|
||||||
Directory.Delete(absolutePath, true);
|
// Directory.Delete(absolutePath, true);
|
||||||
}
|
// }
|
||||||
|
|
||||||
if (!buildInfo.IsPublish())
|
// if (!buildInfo.IsPublish())
|
||||||
{
|
// {
|
||||||
var options = BuildOptions.Development | BuildOptions.ConnectWithProfiler | BuildOptions.AllowDebugging;
|
// var options = BuildOptions.Development | BuildOptions.ConnectWithProfiler | BuildOptions.AllowDebugging;
|
||||||
bpOptions.options = options;
|
// bpOptions.options = options;
|
||||||
}
|
// }
|
||||||
return bpOptions;
|
// return bpOptions;
|
||||||
}
|
// }
|
||||||
|
|
||||||
/// <summary>
|
// /// <summary>
|
||||||
/// 打包ipa
|
// /// 打包ipa
|
||||||
/// </summary>
|
// /// </summary>
|
||||||
static bool BuildIpaFromXCode(BuildInfo buildInfo)
|
// static bool BuildIpaFromXCode(BuildInfo buildInfo)
|
||||||
{
|
// {
|
||||||
// 修改XCode设置
|
// // 修改XCode设置
|
||||||
FixXCodeProject(buildInfo);
|
// FixXCodeProject(buildInfo);
|
||||||
|
|
||||||
// 权限
|
// // 权限
|
||||||
UnlockKeyChain();
|
// UnlockKeyChain();
|
||||||
|
|
||||||
// archive
|
// // archive
|
||||||
if (!Archive(buildInfo))
|
// if (!Archive(buildInfo))
|
||||||
{
|
// {
|
||||||
return false;
|
// return false;
|
||||||
}
|
// }
|
||||||
|
|
||||||
// 导出ipa
|
// // 导出ipa
|
||||||
if (!ExportIpa(buildInfo))
|
// if (!ExportIpa(buildInfo))
|
||||||
{
|
// {
|
||||||
return false;
|
// return false;
|
||||||
}
|
// }
|
||||||
|
|
||||||
return true;
|
// return true;
|
||||||
}
|
// }
|
||||||
|
|
||||||
/// <summary>
|
// /// <summary>
|
||||||
/// xCode工程设置
|
// /// xCode工程设置
|
||||||
/// </summary>
|
// /// </summary>
|
||||||
static void FixXCodeProject(BuildInfo buildInfo)
|
// static void FixXCodeProject(BuildInfo buildInfo)
|
||||||
{
|
// {
|
||||||
var isDev = buildInfo.IsDevChannel();
|
// var isDev = buildInfo.IsDevChannel();
|
||||||
var xCodeProjectPath = isDev ? devXCodePath : releaseXCodePath;
|
// var xCodeProjectPath = isDev ? devXCodePath : releaseXCodePath;
|
||||||
|
|
||||||
var path = xCodeProjectPath + "/Unity-iPhone.xcodeproj/project.pbxproj";
|
// var path = xCodeProjectPath + "/Unity-iPhone.xcodeproj/project.pbxproj";
|
||||||
var pbxProject = new PBXProject();
|
// var pbxProject = new PBXProject();
|
||||||
pbxProject.ReadFromFile(path);
|
// pbxProject.ReadFromFile(path);
|
||||||
var targetGuid = pbxProject.TargetGuidByName("Unity-iPhone");
|
// var targetGuid = pbxProject.TargetGuidByName("Unity-iPhone");
|
||||||
pbxProject.AddBuildProperty(targetGuid, "OTHER_LDFLAGS", "-ObjC");
|
// pbxProject.AddBuildProperty(targetGuid, "OTHER_LDFLAGS", "-ObjC");
|
||||||
pbxProject.SetBuildProperty(targetGuid, "ENABLE_BITCODE", "NO");
|
// pbxProject.SetBuildProperty(targetGuid, "ENABLE_BITCODE", "NO");
|
||||||
pbxProject.SetBuildProperty(targetGuid, "ENABLE_BITCODE", "NO");
|
// pbxProject.SetBuildProperty(targetGuid, "ENABLE_BITCODE", "NO");
|
||||||
pbxProject.SetBuildProperty(targetGuid, "DEVELOPMENT_TEAM", "49QQW8856Q");
|
// pbxProject.SetBuildProperty(targetGuid, "DEVELOPMENT_TEAM", "49QQW8856Q");
|
||||||
if (buildInfo.IsPublish())
|
// if (buildInfo.IsPublish())
|
||||||
{
|
// {
|
||||||
pbxProject.SetBuildProperty(targetGuid, "PROVISIONING_PROFILE_SPECIFIER", "ub_appstore_dis");
|
// pbxProject.SetBuildProperty(targetGuid, "PROVISIONING_PROFILE_SPECIFIER", "ub_appstore_dis");
|
||||||
}
|
// }
|
||||||
|
|
||||||
// 添加系统库
|
// // 添加系统库
|
||||||
AddSystemLibReferenceToProject(pbxProject, targetGuid, "libsqlite3.tbd");
|
// AddSystemLibReferenceToProject(pbxProject, targetGuid, "libsqlite3.tbd");
|
||||||
AddSystemLibReferenceToProject(pbxProject, targetGuid, "libz.1.tbd");
|
// AddSystemLibReferenceToProject(pbxProject, targetGuid, "libz.1.tbd");
|
||||||
AddSystemLibReferenceToProject(pbxProject, targetGuid, "libiconv.2.tbd");
|
// AddSystemLibReferenceToProject(pbxProject, targetGuid, "libiconv.2.tbd");
|
||||||
AddSystemLibReferenceToProject(pbxProject, targetGuid, "libresolv.9.tbd");
|
// AddSystemLibReferenceToProject(pbxProject, targetGuid, "libresolv.9.tbd");
|
||||||
|
|
||||||
var pListPath = Path.Combine(xCodeProjectPath, "Info.plist");
|
// var pListPath = Path.Combine(xCodeProjectPath, "Info.plist");
|
||||||
var pList = new PlistDocument();
|
// var pList = new PlistDocument();
|
||||||
pList.ReadFromFile(pListPath);
|
// pList.ReadFromFile(pListPath);
|
||||||
|
|
||||||
// 版本号
|
// // 版本号
|
||||||
var vKey = "CFBundleShortVersionString";
|
// var vKey = "CFBundleShortVersionString";
|
||||||
var vValue = new PlistElementString(buildInfo.version);
|
// var vValue = new PlistElementString(buildInfo.version);
|
||||||
var pListRoot = pList.root;
|
// var pListRoot = pList.root;
|
||||||
var rootDict = pListRoot.values;
|
// var rootDict = pListRoot.values;
|
||||||
if (!rootDict.ContainsKey(vKey))
|
// if (!rootDict.ContainsKey(vKey))
|
||||||
{
|
// {
|
||||||
rootDict.Add(vKey, vValue);
|
// rootDict.Add(vKey, vValue);
|
||||||
}
|
// }
|
||||||
else
|
// else
|
||||||
{
|
// {
|
||||||
rootDict[vKey] = vValue;
|
// rootDict[vKey] = vValue;
|
||||||
}
|
// }
|
||||||
|
|
||||||
// VersionCode
|
// // VersionCode
|
||||||
var vCodeKey = "CFBundleVersion";
|
// var vCodeKey = "CFBundleVersion";
|
||||||
var vCodeValue = new PlistElementString(buildInfo.version_code.ToString());
|
// var vCodeValue = new PlistElementString(buildInfo.versionCode.ToString());
|
||||||
if (!rootDict.ContainsKey(vCodeKey))
|
// if (!rootDict.ContainsKey(vCodeKey))
|
||||||
{
|
// {
|
||||||
rootDict.Add(vCodeKey, vCodeValue);
|
// rootDict.Add(vCodeKey, vCodeValue);
|
||||||
}
|
// }
|
||||||
else
|
// else
|
||||||
{
|
// {
|
||||||
rootDict[vCodeKey] = vCodeValue;
|
// rootDict[vCodeKey] = vCodeValue;
|
||||||
}
|
// }
|
||||||
|
|
||||||
// 数美SDK会使用位置,必须加入这个说明
|
// // 数美SDK会使用位置,必须加入这个说明
|
||||||
var localtionKey = "NSLocationWhenInUseUsageDescription";
|
// var localtionKey = "NSLocationWhenInUseUsageDescription";
|
||||||
var localtionValue = new PlistElementString("We use your location to give you a better localization.");
|
// var localtionValue = new PlistElementString("We use your location to give you a better localization.");
|
||||||
if (!rootDict.ContainsKey(localtionKey))
|
// if (!rootDict.ContainsKey(localtionKey))
|
||||||
{
|
// {
|
||||||
rootDict.Add(localtionKey, localtionValue);
|
// rootDict.Add(localtionKey, localtionValue);
|
||||||
}
|
// }
|
||||||
else
|
// else
|
||||||
{
|
// {
|
||||||
rootDict[localtionKey] = localtionValue;
|
// rootDict[localtionKey] = localtionValue;
|
||||||
}
|
// }
|
||||||
|
|
||||||
// 提审提示缺少出口合规证明,这里直接设置为false即可
|
// // 提审提示缺少出口合规证明,这里直接设置为false即可
|
||||||
var encryptionKey = "ITSAppUsesNonExemptEncryption";
|
// var encryptionKey = "ITSAppUsesNonExemptEncryption";
|
||||||
var encryptionValue = new PlistElementBoolean(false);
|
// var encryptionValue = new PlistElementBoolean(false);
|
||||||
if (!rootDict.ContainsKey(encryptionKey))
|
// if (!rootDict.ContainsKey(encryptionKey))
|
||||||
{
|
// {
|
||||||
rootDict.Add(encryptionKey, encryptionValue);
|
// rootDict.Add(encryptionKey, encryptionValue);
|
||||||
}
|
// }
|
||||||
else
|
// else
|
||||||
{
|
// {
|
||||||
rootDict[encryptionKey] = encryptionValue;
|
// rootDict[encryptionKey] = encryptionValue;
|
||||||
}
|
// }
|
||||||
|
|
||||||
pList.WriteToFile(pListPath);
|
// pList.WriteToFile(pListPath);
|
||||||
pbxProject.WriteToFile(path);
|
// pbxProject.WriteToFile(path);
|
||||||
}
|
// }
|
||||||
|
|
||||||
//添加系统lib方法
|
// //添加系统lib方法
|
||||||
static void AddSystemLibReferenceToProject(PBXProject pbxProject, string targetGuid, string lib)
|
// static void AddSystemLibReferenceToProject(PBXProject pbxProject, string targetGuid, string lib)
|
||||||
{
|
// {
|
||||||
var fileGuid = pbxProject.AddFile("usr/lib/" + lib, "Frameworks/" + lib, PBXSourceTree.Sdk);
|
// var fileGuid = pbxProject.AddFile("usr/lib/" + lib, "Frameworks/" + lib, PBXSourceTree.Sdk);
|
||||||
pbxProject.AddFileToBuild(targetGuid, fileGuid);
|
// pbxProject.AddFileToBuild(targetGuid, fileGuid);
|
||||||
}
|
// }
|
||||||
|
|
||||||
/// <summary>
|
// /// <summary>
|
||||||
/// Archive
|
// /// Archive
|
||||||
/// </summary>
|
// /// </summary>
|
||||||
static bool Archive(BuildInfo buildInfo)
|
// static bool Archive(BuildInfo buildInfo)
|
||||||
{
|
// {
|
||||||
Debug.Log("[bfinfo]正在archive...");
|
// Debug.Log("[bfinfo]正在archive...");
|
||||||
var result = true;
|
// var result = true;
|
||||||
var xCodeProjectPath = buildInfo.IsDevChannel() ? devXCodePath : releaseXCodePath;
|
// var xCodeProjectPath = buildInfo.IsDevChannel() ? devXCodePath : releaseXCodePath;
|
||||||
var archivePath = xCodeProjectPath + "/build/archive/Unity-iPhone.xcarchive";
|
// var archivePath = xCodeProjectPath + "/build/archive/Unity-iPhone.xcarchive";
|
||||||
var args = string.Format("archive -scheme Unity-iPhone -configuration Release -archivePath {0}", archivePath);
|
// var args = string.Format("archive -scheme Unity-iPhone -configuration Release -archivePath {0}", archivePath);
|
||||||
BFEditorUtils.RunCommond("xcodebuild", args, xCodeProjectPath,
|
// BFEditorUtils.RunCommond("xcodebuild", args, xCodeProjectPath,
|
||||||
(info) =>
|
// (info) =>
|
||||||
{
|
// {
|
||||||
Debug.Log(info);
|
// Debug.Log(info);
|
||||||
},
|
// },
|
||||||
(error) =>
|
// (error) =>
|
||||||
{
|
// {
|
||||||
if (error.Contains("ARCHIVE FAILED")) // 失败标志
|
// if (error.Contains("ARCHIVE FAILED")) // 失败标志
|
||||||
{
|
// {
|
||||||
result = false;
|
// result = false;
|
||||||
}
|
// }
|
||||||
Debug.LogError("[bferror] " + error);
|
// Debug.LogError("[bferror] " + error);
|
||||||
}
|
// }
|
||||||
);
|
// );
|
||||||
|
|
||||||
return result;
|
// return result;
|
||||||
}
|
// }
|
||||||
|
|
||||||
/// <summary>
|
// /// <summary>
|
||||||
/// 导出ipa
|
// /// 导出ipa
|
||||||
/// </summary>
|
// /// </summary>
|
||||||
static bool ExportIpa(BuildInfo buildInfo)
|
// static bool ExportIpa(BuildInfo buildInfo)
|
||||||
{
|
// {
|
||||||
Debug.Log("[bfinfo]正在导出ipa...");
|
// Debug.Log("[bfinfo]正在导出ipa...");
|
||||||
var result = false;
|
// var result = false;
|
||||||
var xCodeProjectPath = buildInfo.IsDevChannel() ? devXCodePath : releaseXCodePath;
|
// var xCodeProjectPath = buildInfo.IsDevChannel() ? devXCodePath : releaseXCodePath;
|
||||||
string exportPListPath;
|
// string exportPListPath;
|
||||||
if (buildInfo.IsPublish())
|
// if (buildInfo.IsPublish())
|
||||||
{
|
// {
|
||||||
exportPListPath = publishOptionsPListPath;
|
// exportPListPath = publishOptionsPListPath;
|
||||||
}
|
// }
|
||||||
else
|
// else
|
||||||
{
|
// {
|
||||||
exportPListPath = buildInfo.IsDevChannel() ? devOptionsPListPath : releaseOptionsPListPath;
|
// exportPListPath = buildInfo.IsDevChannel() ? devOptionsPListPath : releaseOptionsPListPath;
|
||||||
}
|
// }
|
||||||
var ipaPath = xCodeProjectPath + "/build/ipa";
|
// var ipaPath = xCodeProjectPath + "/build/ipa";
|
||||||
var archivePath = xCodeProjectPath + "/build/archive/Unity-iPhone.xcarchive";
|
// var archivePath = xCodeProjectPath + "/build/archive/Unity-iPhone.xcarchive";
|
||||||
var args = string.Format("-exportArchive -archivePath {0} -exportPath {1} -exportOptionsPlist {2} -allowProvisioningUpdates", archivePath, ipaPath, exportPListPath);
|
// var args = string.Format("-exportArchive -archivePath {0} -exportPath {1} -exportOptionsPlist {2} -allowProvisioningUpdates", archivePath, ipaPath, exportPListPath);
|
||||||
BFEditorUtils.RunCommond("xcodebuild", args, null,
|
// BFEditorUtils.RunCommond("xcodebuild", args, null,
|
||||||
(info) =>
|
// (info) =>
|
||||||
{
|
// {
|
||||||
if(info.Contains("EXPORT SUCCEEDED"))
|
// if(info.Contains("EXPORT SUCCEEDED"))
|
||||||
{
|
// {
|
||||||
result = true;
|
// result = true;
|
||||||
}
|
// }
|
||||||
},
|
// },
|
||||||
(error) =>
|
// (error) =>
|
||||||
{
|
// {
|
||||||
}
|
// }
|
||||||
);
|
// );
|
||||||
|
|
||||||
return result;
|
// return result;
|
||||||
}
|
// }
|
||||||
|
|
||||||
/// <summary>
|
// /// <summary>
|
||||||
/// 远程打包签名ipa时需要钥匙串权限
|
// /// 远程打包签名ipa时需要钥匙串权限
|
||||||
/// </summary>
|
// /// </summary>
|
||||||
static void UnlockKeyChain()
|
// static void UnlockKeyChain()
|
||||||
{
|
// {
|
||||||
BFEditorUtils.RunCommond("security", "-v unlock-keychain -p '123456' /Users/aoddabao/Library/Keychains/login.keychain-db", null,
|
// BFEditorUtils.RunCommond("security", "-v unlock-keychain -p '123456' /Users/aoddabao/Library/Keychains/login.keychain-db", null,
|
||||||
(msg) =>
|
// (msg) =>
|
||||||
{
|
// {
|
||||||
Debug.Log(msg);
|
// Debug.Log(msg);
|
||||||
},
|
// },
|
||||||
(msg) =>
|
// (msg) =>
|
||||||
{
|
// {
|
||||||
Debug.LogError(msg);
|
// Debug.LogError(msg);
|
||||||
}
|
// }
|
||||||
);
|
// );
|
||||||
}
|
// }
|
||||||
#endif
|
// #endif
|
||||||
}
|
// }
|
||||||
}
|
// }
|
||||||
|
|||||||
@ -690,6 +690,8 @@ namespace BFEditor
|
|||||||
new List<string>(){"Spine.Unity.SpineHandles", "DrawReferenceRect", "Spine.Unity.SkeletonGraphic", "UnityEngine.Color"},
|
new List<string>(){"Spine.Unity.SpineHandles", "DrawReferenceRect", "Spine.Unity.SkeletonGraphic", "UnityEngine.Color"},
|
||||||
new List<string>(){"Spine.Unity.SkeletonGraphic", "EditReferenceRect"},
|
new List<string>(){"Spine.Unity.SkeletonGraphic", "EditReferenceRect"},
|
||||||
new List<string>(){"Spine.Unity.SkeletonGraphic", "RectTransformSize"},
|
new List<string>(){"Spine.Unity.SkeletonGraphic", "RectTransformSize"},
|
||||||
|
new List<string>(){"Spine.Unity.SkeletonGraphic", "GetPivotOffset"},
|
||||||
|
new List<string>(){"Spine.Unity.SkeletonGraphic", "GetScaledPivotOffset"},
|
||||||
};
|
};
|
||||||
|
|
||||||
static bool hasGenericParameter(Type type)
|
static bool hasGenericParameter(Type type)
|
||||||
|
|||||||
@ -42,7 +42,7 @@ namespace BF
|
|||||||
// 渠道对应的语言配置
|
// 渠道对应的语言配置
|
||||||
public static Dictionary<string, BFLanguageInfo> languageInfos = new Dictionary<string, BFLanguageInfo>()
|
public static Dictionary<string, BFLanguageInfo> languageInfos = new Dictionary<string, BFLanguageInfo>()
|
||||||
{
|
{
|
||||||
{"com.juzu.b6.dev", new BFLanguageInfo(new List<string>{"en", "cn", "zh", "th", "ru", "id", "vi"})},
|
{"com.c1.dev.android", new BFLanguageInfo(new List<string>{"en", "cn", "zh", "th", "ru", "id", "vi"})},
|
||||||
{"com.juzu.b6.dev.android", new BFLanguageInfo(new List<string>{"en", "cn", "zh", "th", "ru", "id", "vi"})},
|
{"com.juzu.b6.dev.android", new BFLanguageInfo(new List<string>{"en", "cn", "zh", "th", "ru", "id", "vi"})},
|
||||||
{"com.juzu.b6.dev.ios", new BFLanguageInfo(new List<string>{"en", "cn"})},
|
{"com.juzu.b6.dev.ios", new BFLanguageInfo(new List<string>{"en", "cn"})},
|
||||||
{"com.juzu.b6.release.android", new BFLanguageInfo(new List<string>{"en"})},
|
{"com.juzu.b6.release.android", new BFLanguageInfo(new List<string>{"en"})},
|
||||||
|
|||||||
@ -1,184 +1,184 @@
|
|||||||
#if USE_UNI_LUA
|
#if USE_UNI_LUA
|
||||||
using LuaAPI = UniLua.Lua;
|
using LuaAPI = UniLua.Lua;
|
||||||
using RealStatePtr = UniLua.ILuaState;
|
using RealStatePtr = UniLua.ILuaState;
|
||||||
using LuaCSFunction = UniLua.CSharpFunctionDelegate;
|
using LuaCSFunction = UniLua.CSharpFunctionDelegate;
|
||||||
#else
|
#else
|
||||||
using LuaAPI = XLua.LuaDLL.Lua;
|
using LuaAPI = XLua.LuaDLL.Lua;
|
||||||
using RealStatePtr = System.IntPtr;
|
using RealStatePtr = System.IntPtr;
|
||||||
using LuaCSFunction = XLua.LuaDLL.lua_CSFunction;
|
using LuaCSFunction = XLua.LuaDLL.lua_CSFunction;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
using XLua;
|
using XLua;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
|
||||||
|
|
||||||
namespace XLua.CSObjectWrap
|
namespace XLua.CSObjectWrap
|
||||||
{
|
{
|
||||||
using Utils = XLua.Utils;
|
using Utils = XLua.Utils;
|
||||||
public class BFBFEvent_1_SystemCollectionsGenericList_1_BFBFFinger__Wrap
|
public class BFBFEvent_1_SystemCollectionsGenericList_1_BFBFFinger__Wrap
|
||||||
{
|
{
|
||||||
public static void __Register(RealStatePtr L)
|
public static void __Register(RealStatePtr L)
|
||||||
{
|
{
|
||||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||||
System.Type type = typeof(BF.BFEvent<System.Collections.Generic.List<BF.BFFinger>>);
|
System.Type type = typeof(BF.BFEvent<System.Collections.Generic.List<BF.BFFinger>>);
|
||||||
Utils.BeginObjectRegister(type, L, translator, 2, 1, 0, 0);
|
Utils.BeginObjectRegister(type, L, translator, 2, 1, 0, 0);
|
||||||
Utils.RegisterFunc(L, Utils.OBJ_META_IDX, "__add", __AddMeta);
|
Utils.RegisterFunc(L, Utils.OBJ_META_IDX, "__add", __AddMeta);
|
||||||
Utils.RegisterFunc(L, Utils.OBJ_META_IDX, "__sub", __SubMeta);
|
Utils.RegisterFunc(L, Utils.OBJ_META_IDX, "__sub", __SubMeta);
|
||||||
|
|
||||||
Utils.RegisterFunc(L, Utils.METHOD_IDX, "Invoke", _m_Invoke);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "Invoke", _m_Invoke);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Utils.EndObjectRegister(type, L, translator, null, null,
|
Utils.EndObjectRegister(type, L, translator, null, null,
|
||||||
null, null, null);
|
null, null, null);
|
||||||
|
|
||||||
Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0);
|
Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Utils.EndClassRegister(type, L, translator);
|
Utils.EndClassRegister(type, L, translator);
|
||||||
}
|
}
|
||||||
|
|
||||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||||
static int __CreateInstance(RealStatePtr L)
|
static int __CreateInstance(RealStatePtr L)
|
||||||
{
|
{
|
||||||
|
|
||||||
try {
|
try {
|
||||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||||
if(LuaAPI.lua_gettop(L) == 1)
|
if(LuaAPI.lua_gettop(L) == 1)
|
||||||
{
|
{
|
||||||
|
|
||||||
var gen_ret = new BF.BFEvent<System.Collections.Generic.List<BF.BFFinger>>();
|
var gen_ret = new BF.BFEvent<System.Collections.Generic.List<BF.BFFinger>>();
|
||||||
translator.Push(L, gen_ret);
|
translator.Push(L, gen_ret);
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
if(LuaAPI.lua_gettop(L) == 2 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2))
|
if(LuaAPI.lua_gettop(L) == 2 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2))
|
||||||
{
|
{
|
||||||
int _length = LuaAPI.xlua_tointeger(L, 2);
|
int _length = LuaAPI.xlua_tointeger(L, 2);
|
||||||
|
|
||||||
var gen_ret = new BF.BFEvent<System.Collections.Generic.List<BF.BFFinger>>(_length);
|
var gen_ret = new BF.BFEvent<System.Collections.Generic.List<BF.BFFinger>>(_length);
|
||||||
translator.Push(L, gen_ret);
|
translator.Push(L, gen_ret);
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
if(LuaAPI.lua_gettop(L) == 1)
|
if(LuaAPI.lua_gettop(L) == 1)
|
||||||
{
|
{
|
||||||
|
|
||||||
var gen_ret = new BF.BFEvent<System.Collections.Generic.List<BF.BFFinger>>();
|
var gen_ret = new BF.BFEvent<System.Collections.Generic.List<BF.BFFinger>>();
|
||||||
translator.Push(L, gen_ret);
|
translator.Push(L, gen_ret);
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
catch(System.Exception gen_e) {
|
catch(System.Exception gen_e) {
|
||||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||||
}
|
}
|
||||||
return LuaAPI.luaL_error(L, "invalid arguments to BF.BFEvent<System.Collections.Generic.List<BF.BFFinger>> constructor!");
|
return LuaAPI.luaL_error(L, "invalid arguments to BF.BFEvent<System.Collections.Generic.List<BF.BFFinger>> constructor!");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||||
static int __AddMeta(RealStatePtr L)
|
static int __AddMeta(RealStatePtr L)
|
||||||
{
|
{
|
||||||
|
|
||||||
try {
|
try {
|
||||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||||
|
|
||||||
|
|
||||||
if (translator.Assignable<BF.BFEvent<System.Collections.Generic.List<BF.BFFinger>>>(L, 1) && translator.Assignable<System.Action<System.Collections.Generic.List<BF.BFFinger>>>(L, 2))
|
if (translator.Assignable<BF.BFEvent<System.Collections.Generic.List<BF.BFFinger>>>(L, 1) && translator.Assignable<System.Action<System.Collections.Generic.List<BF.BFFinger>>>(L, 2))
|
||||||
{
|
{
|
||||||
BF.BFEvent<System.Collections.Generic.List<BF.BFFinger>> leftside = (BF.BFEvent<System.Collections.Generic.List<BF.BFFinger>>)translator.GetObject(L, 1, typeof(BF.BFEvent<System.Collections.Generic.List<BF.BFFinger>>));
|
BF.BFEvent<System.Collections.Generic.List<BF.BFFinger>> leftside = (BF.BFEvent<System.Collections.Generic.List<BF.BFFinger>>)translator.GetObject(L, 1, typeof(BF.BFEvent<System.Collections.Generic.List<BF.BFFinger>>));
|
||||||
System.Action<System.Collections.Generic.List<BF.BFFinger>> rightside = translator.GetDelegate<System.Action<System.Collections.Generic.List<BF.BFFinger>>>(L, 2);
|
System.Action<System.Collections.Generic.List<BF.BFFinger>> rightside = translator.GetDelegate<System.Action<System.Collections.Generic.List<BF.BFFinger>>>(L, 2);
|
||||||
|
|
||||||
translator.Push(L, leftside + rightside);
|
translator.Push(L, leftside + rightside);
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
catch(System.Exception gen_e) {
|
catch(System.Exception gen_e) {
|
||||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||||
}
|
}
|
||||||
return LuaAPI.luaL_error(L, "invalid arguments to right hand of + operator, need BF.BFEvent<System.Collections.Generic.List<BF.BFFinger>>!");
|
return LuaAPI.luaL_error(L, "invalid arguments to right hand of + operator, need BF.BFEvent<System.Collections.Generic.List<BF.BFFinger>>!");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||||
static int __SubMeta(RealStatePtr L)
|
static int __SubMeta(RealStatePtr L)
|
||||||
{
|
{
|
||||||
|
|
||||||
try {
|
try {
|
||||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||||
|
|
||||||
|
|
||||||
if (translator.Assignable<BF.BFEvent<System.Collections.Generic.List<BF.BFFinger>>>(L, 1) && translator.Assignable<System.Action<System.Collections.Generic.List<BF.BFFinger>>>(L, 2))
|
if (translator.Assignable<BF.BFEvent<System.Collections.Generic.List<BF.BFFinger>>>(L, 1) && translator.Assignable<System.Action<System.Collections.Generic.List<BF.BFFinger>>>(L, 2))
|
||||||
{
|
{
|
||||||
BF.BFEvent<System.Collections.Generic.List<BF.BFFinger>> leftside = (BF.BFEvent<System.Collections.Generic.List<BF.BFFinger>>)translator.GetObject(L, 1, typeof(BF.BFEvent<System.Collections.Generic.List<BF.BFFinger>>));
|
BF.BFEvent<System.Collections.Generic.List<BF.BFFinger>> leftside = (BF.BFEvent<System.Collections.Generic.List<BF.BFFinger>>)translator.GetObject(L, 1, typeof(BF.BFEvent<System.Collections.Generic.List<BF.BFFinger>>));
|
||||||
System.Action<System.Collections.Generic.List<BF.BFFinger>> rightside = translator.GetDelegate<System.Action<System.Collections.Generic.List<BF.BFFinger>>>(L, 2);
|
System.Action<System.Collections.Generic.List<BF.BFFinger>> rightside = translator.GetDelegate<System.Action<System.Collections.Generic.List<BF.BFFinger>>>(L, 2);
|
||||||
|
|
||||||
translator.Push(L, leftside - rightside);
|
translator.Push(L, leftside - rightside);
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
catch(System.Exception gen_e) {
|
catch(System.Exception gen_e) {
|
||||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||||
}
|
}
|
||||||
return LuaAPI.luaL_error(L, "invalid arguments to right hand of - operator, need BF.BFEvent<System.Collections.Generic.List<BF.BFFinger>>!");
|
return LuaAPI.luaL_error(L, "invalid arguments to right hand of - operator, need BF.BFEvent<System.Collections.Generic.List<BF.BFFinger>>!");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||||
static int _m_Invoke(RealStatePtr L)
|
static int _m_Invoke(RealStatePtr L)
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
|
|
||||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||||
|
|
||||||
|
|
||||||
BF.BFEvent<System.Collections.Generic.List<BF.BFFinger>> gen_to_be_invoked = (BF.BFEvent<System.Collections.Generic.List<BF.BFFinger>>)translator.FastGetCSObj(L, 1);
|
BF.BFEvent<System.Collections.Generic.List<BF.BFFinger>> gen_to_be_invoked = (BF.BFEvent<System.Collections.Generic.List<BF.BFFinger>>)translator.FastGetCSObj(L, 1);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
{
|
{
|
||||||
System.Collections.Generic.List<BF.BFFinger> _t = (System.Collections.Generic.List<BF.BFFinger>)translator.GetObject(L, 2, typeof(System.Collections.Generic.List<BF.BFFinger>));
|
System.Collections.Generic.List<BF.BFFinger> _t = (System.Collections.Generic.List<BF.BFFinger>)translator.GetObject(L, 2, typeof(System.Collections.Generic.List<BF.BFFinger>));
|
||||||
|
|
||||||
gen_to_be_invoked.Invoke( _t );
|
gen_to_be_invoked.Invoke( _t );
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
} catch(System.Exception gen_e) {
|
} catch(System.Exception gen_e) {
|
||||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,185 +1,185 @@
|
|||||||
#if USE_UNI_LUA
|
#if USE_UNI_LUA
|
||||||
using LuaAPI = UniLua.Lua;
|
using LuaAPI = UniLua.Lua;
|
||||||
using RealStatePtr = UniLua.ILuaState;
|
using RealStatePtr = UniLua.ILuaState;
|
||||||
using LuaCSFunction = UniLua.CSharpFunctionDelegate;
|
using LuaCSFunction = UniLua.CSharpFunctionDelegate;
|
||||||
#else
|
#else
|
||||||
using LuaAPI = XLua.LuaDLL.Lua;
|
using LuaAPI = XLua.LuaDLL.Lua;
|
||||||
using RealStatePtr = System.IntPtr;
|
using RealStatePtr = System.IntPtr;
|
||||||
using LuaCSFunction = XLua.LuaDLL.lua_CSFunction;
|
using LuaCSFunction = XLua.LuaDLL.lua_CSFunction;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
using XLua;
|
using XLua;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
|
||||||
|
|
||||||
namespace XLua.CSObjectWrap
|
namespace XLua.CSObjectWrap
|
||||||
{
|
{
|
||||||
using Utils = XLua.Utils;
|
using Utils = XLua.Utils;
|
||||||
public class BFBFEvent_2_BFSelectEventTypeBFBFFinger_Wrap
|
public class BFBFEvent_2_BFSelectEventTypeBFBFFinger_Wrap
|
||||||
{
|
{
|
||||||
public static void __Register(RealStatePtr L)
|
public static void __Register(RealStatePtr L)
|
||||||
{
|
{
|
||||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||||
System.Type type = typeof(BF.BFEvent<BF.SelectEventType, BF.BFFinger>);
|
System.Type type = typeof(BF.BFEvent<BF.SelectEventType, BF.BFFinger>);
|
||||||
Utils.BeginObjectRegister(type, L, translator, 2, 1, 0, 0);
|
Utils.BeginObjectRegister(type, L, translator, 2, 1, 0, 0);
|
||||||
Utils.RegisterFunc(L, Utils.OBJ_META_IDX, "__add", __AddMeta);
|
Utils.RegisterFunc(L, Utils.OBJ_META_IDX, "__add", __AddMeta);
|
||||||
Utils.RegisterFunc(L, Utils.OBJ_META_IDX, "__sub", __SubMeta);
|
Utils.RegisterFunc(L, Utils.OBJ_META_IDX, "__sub", __SubMeta);
|
||||||
|
|
||||||
Utils.RegisterFunc(L, Utils.METHOD_IDX, "Invoke", _m_Invoke);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "Invoke", _m_Invoke);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Utils.EndObjectRegister(type, L, translator, null, null,
|
Utils.EndObjectRegister(type, L, translator, null, null,
|
||||||
null, null, null);
|
null, null, null);
|
||||||
|
|
||||||
Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0);
|
Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Utils.EndClassRegister(type, L, translator);
|
Utils.EndClassRegister(type, L, translator);
|
||||||
}
|
}
|
||||||
|
|
||||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||||
static int __CreateInstance(RealStatePtr L)
|
static int __CreateInstance(RealStatePtr L)
|
||||||
{
|
{
|
||||||
|
|
||||||
try {
|
try {
|
||||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||||
if(LuaAPI.lua_gettop(L) == 1)
|
if(LuaAPI.lua_gettop(L) == 1)
|
||||||
{
|
{
|
||||||
|
|
||||||
var gen_ret = new BF.BFEvent<BF.SelectEventType, BF.BFFinger>();
|
var gen_ret = new BF.BFEvent<BF.SelectEventType, BF.BFFinger>();
|
||||||
translator.Push(L, gen_ret);
|
translator.Push(L, gen_ret);
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
if(LuaAPI.lua_gettop(L) == 2 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2))
|
if(LuaAPI.lua_gettop(L) == 2 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2))
|
||||||
{
|
{
|
||||||
int _length = LuaAPI.xlua_tointeger(L, 2);
|
int _length = LuaAPI.xlua_tointeger(L, 2);
|
||||||
|
|
||||||
var gen_ret = new BF.BFEvent<BF.SelectEventType, BF.BFFinger>(_length);
|
var gen_ret = new BF.BFEvent<BF.SelectEventType, BF.BFFinger>(_length);
|
||||||
translator.Push(L, gen_ret);
|
translator.Push(L, gen_ret);
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
if(LuaAPI.lua_gettop(L) == 1)
|
if(LuaAPI.lua_gettop(L) == 1)
|
||||||
{
|
{
|
||||||
|
|
||||||
var gen_ret = new BF.BFEvent<BF.SelectEventType, BF.BFFinger>();
|
var gen_ret = new BF.BFEvent<BF.SelectEventType, BF.BFFinger>();
|
||||||
translator.Push(L, gen_ret);
|
translator.Push(L, gen_ret);
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
catch(System.Exception gen_e) {
|
catch(System.Exception gen_e) {
|
||||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||||
}
|
}
|
||||||
return LuaAPI.luaL_error(L, "invalid arguments to BF.BFEvent<BF.SelectEventType, BF.BFFinger> constructor!");
|
return LuaAPI.luaL_error(L, "invalid arguments to BF.BFEvent<BF.SelectEventType, BF.BFFinger> constructor!");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||||
static int __AddMeta(RealStatePtr L)
|
static int __AddMeta(RealStatePtr L)
|
||||||
{
|
{
|
||||||
|
|
||||||
try {
|
try {
|
||||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||||
|
|
||||||
|
|
||||||
if (translator.Assignable<BF.BFEvent<BF.SelectEventType, BF.BFFinger>>(L, 1) && translator.Assignable<System.Action<BF.SelectEventType, BF.BFFinger>>(L, 2))
|
if (translator.Assignable<BF.BFEvent<BF.SelectEventType, BF.BFFinger>>(L, 1) && translator.Assignable<System.Action<BF.SelectEventType, BF.BFFinger>>(L, 2))
|
||||||
{
|
{
|
||||||
BF.BFEvent<BF.SelectEventType, BF.BFFinger> leftside = (BF.BFEvent<BF.SelectEventType, BF.BFFinger>)translator.GetObject(L, 1, typeof(BF.BFEvent<BF.SelectEventType, BF.BFFinger>));
|
BF.BFEvent<BF.SelectEventType, BF.BFFinger> leftside = (BF.BFEvent<BF.SelectEventType, BF.BFFinger>)translator.GetObject(L, 1, typeof(BF.BFEvent<BF.SelectEventType, BF.BFFinger>));
|
||||||
System.Action<BF.SelectEventType, BF.BFFinger> rightside = translator.GetDelegate<System.Action<BF.SelectEventType, BF.BFFinger>>(L, 2);
|
System.Action<BF.SelectEventType, BF.BFFinger> rightside = translator.GetDelegate<System.Action<BF.SelectEventType, BF.BFFinger>>(L, 2);
|
||||||
|
|
||||||
translator.Push(L, leftside + rightside);
|
translator.Push(L, leftside + rightside);
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
catch(System.Exception gen_e) {
|
catch(System.Exception gen_e) {
|
||||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||||
}
|
}
|
||||||
return LuaAPI.luaL_error(L, "invalid arguments to right hand of + operator, need BF.BFEvent<BF.SelectEventType, BF.BFFinger>!");
|
return LuaAPI.luaL_error(L, "invalid arguments to right hand of + operator, need BF.BFEvent<BF.SelectEventType, BF.BFFinger>!");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||||
static int __SubMeta(RealStatePtr L)
|
static int __SubMeta(RealStatePtr L)
|
||||||
{
|
{
|
||||||
|
|
||||||
try {
|
try {
|
||||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||||
|
|
||||||
|
|
||||||
if (translator.Assignable<BF.BFEvent<BF.SelectEventType, BF.BFFinger>>(L, 1) && translator.Assignable<System.Action<BF.SelectEventType, BF.BFFinger>>(L, 2))
|
if (translator.Assignable<BF.BFEvent<BF.SelectEventType, BF.BFFinger>>(L, 1) && translator.Assignable<System.Action<BF.SelectEventType, BF.BFFinger>>(L, 2))
|
||||||
{
|
{
|
||||||
BF.BFEvent<BF.SelectEventType, BF.BFFinger> leftside = (BF.BFEvent<BF.SelectEventType, BF.BFFinger>)translator.GetObject(L, 1, typeof(BF.BFEvent<BF.SelectEventType, BF.BFFinger>));
|
BF.BFEvent<BF.SelectEventType, BF.BFFinger> leftside = (BF.BFEvent<BF.SelectEventType, BF.BFFinger>)translator.GetObject(L, 1, typeof(BF.BFEvent<BF.SelectEventType, BF.BFFinger>));
|
||||||
System.Action<BF.SelectEventType, BF.BFFinger> rightside = translator.GetDelegate<System.Action<BF.SelectEventType, BF.BFFinger>>(L, 2);
|
System.Action<BF.SelectEventType, BF.BFFinger> rightside = translator.GetDelegate<System.Action<BF.SelectEventType, BF.BFFinger>>(L, 2);
|
||||||
|
|
||||||
translator.Push(L, leftside - rightside);
|
translator.Push(L, leftside - rightside);
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
catch(System.Exception gen_e) {
|
catch(System.Exception gen_e) {
|
||||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||||
}
|
}
|
||||||
return LuaAPI.luaL_error(L, "invalid arguments to right hand of - operator, need BF.BFEvent<BF.SelectEventType, BF.BFFinger>!");
|
return LuaAPI.luaL_error(L, "invalid arguments to right hand of - operator, need BF.BFEvent<BF.SelectEventType, BF.BFFinger>!");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||||
static int _m_Invoke(RealStatePtr L)
|
static int _m_Invoke(RealStatePtr L)
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
|
|
||||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||||
|
|
||||||
|
|
||||||
BF.BFEvent<BF.SelectEventType, BF.BFFinger> gen_to_be_invoked = (BF.BFEvent<BF.SelectEventType, BF.BFFinger>)translator.FastGetCSObj(L, 1);
|
BF.BFEvent<BF.SelectEventType, BF.BFFinger> gen_to_be_invoked = (BF.BFEvent<BF.SelectEventType, BF.BFFinger>)translator.FastGetCSObj(L, 1);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
{
|
{
|
||||||
BF.SelectEventType _t1;translator.Get(L, 2, out _t1);
|
BF.SelectEventType _t1;translator.Get(L, 2, out _t1);
|
||||||
BF.BFFinger _t2 = (BF.BFFinger)translator.GetObject(L, 3, typeof(BF.BFFinger));
|
BF.BFFinger _t2 = (BF.BFFinger)translator.GetObject(L, 3, typeof(BF.BFFinger));
|
||||||
|
|
||||||
gen_to_be_invoked.Invoke( _t1, _t2 );
|
gen_to_be_invoked.Invoke( _t1, _t2 );
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
} catch(System.Exception gen_e) {
|
} catch(System.Exception gen_e) {
|
||||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,185 +1,185 @@
|
|||||||
#if USE_UNI_LUA
|
#if USE_UNI_LUA
|
||||||
using LuaAPI = UniLua.Lua;
|
using LuaAPI = UniLua.Lua;
|
||||||
using RealStatePtr = UniLua.ILuaState;
|
using RealStatePtr = UniLua.ILuaState;
|
||||||
using LuaCSFunction = UniLua.CSharpFunctionDelegate;
|
using LuaCSFunction = UniLua.CSharpFunctionDelegate;
|
||||||
#else
|
#else
|
||||||
using LuaAPI = XLua.LuaDLL.Lua;
|
using LuaAPI = XLua.LuaDLL.Lua;
|
||||||
using RealStatePtr = System.IntPtr;
|
using RealStatePtr = System.IntPtr;
|
||||||
using LuaCSFunction = XLua.LuaDLL.lua_CSFunction;
|
using LuaCSFunction = XLua.LuaDLL.lua_CSFunction;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
using XLua;
|
using XLua;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
|
||||||
|
|
||||||
namespace XLua.CSObjectWrap
|
namespace XLua.CSObjectWrap
|
||||||
{
|
{
|
||||||
using Utils = XLua.Utils;
|
using Utils = XLua.Utils;
|
||||||
public class BFBFEvent_2_BFTouchEventTypeBFBFFinger_Wrap
|
public class BFBFEvent_2_BFTouchEventTypeBFBFFinger_Wrap
|
||||||
{
|
{
|
||||||
public static void __Register(RealStatePtr L)
|
public static void __Register(RealStatePtr L)
|
||||||
{
|
{
|
||||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||||
System.Type type = typeof(BF.BFEvent<BF.TouchEventType, BF.BFFinger>);
|
System.Type type = typeof(BF.BFEvent<BF.TouchEventType, BF.BFFinger>);
|
||||||
Utils.BeginObjectRegister(type, L, translator, 2, 1, 0, 0);
|
Utils.BeginObjectRegister(type, L, translator, 2, 1, 0, 0);
|
||||||
Utils.RegisterFunc(L, Utils.OBJ_META_IDX, "__add", __AddMeta);
|
Utils.RegisterFunc(L, Utils.OBJ_META_IDX, "__add", __AddMeta);
|
||||||
Utils.RegisterFunc(L, Utils.OBJ_META_IDX, "__sub", __SubMeta);
|
Utils.RegisterFunc(L, Utils.OBJ_META_IDX, "__sub", __SubMeta);
|
||||||
|
|
||||||
Utils.RegisterFunc(L, Utils.METHOD_IDX, "Invoke", _m_Invoke);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "Invoke", _m_Invoke);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Utils.EndObjectRegister(type, L, translator, null, null,
|
Utils.EndObjectRegister(type, L, translator, null, null,
|
||||||
null, null, null);
|
null, null, null);
|
||||||
|
|
||||||
Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0);
|
Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Utils.EndClassRegister(type, L, translator);
|
Utils.EndClassRegister(type, L, translator);
|
||||||
}
|
}
|
||||||
|
|
||||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||||
static int __CreateInstance(RealStatePtr L)
|
static int __CreateInstance(RealStatePtr L)
|
||||||
{
|
{
|
||||||
|
|
||||||
try {
|
try {
|
||||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||||
if(LuaAPI.lua_gettop(L) == 1)
|
if(LuaAPI.lua_gettop(L) == 1)
|
||||||
{
|
{
|
||||||
|
|
||||||
var gen_ret = new BF.BFEvent<BF.TouchEventType, BF.BFFinger>();
|
var gen_ret = new BF.BFEvent<BF.TouchEventType, BF.BFFinger>();
|
||||||
translator.Push(L, gen_ret);
|
translator.Push(L, gen_ret);
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
if(LuaAPI.lua_gettop(L) == 2 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2))
|
if(LuaAPI.lua_gettop(L) == 2 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2))
|
||||||
{
|
{
|
||||||
int _length = LuaAPI.xlua_tointeger(L, 2);
|
int _length = LuaAPI.xlua_tointeger(L, 2);
|
||||||
|
|
||||||
var gen_ret = new BF.BFEvent<BF.TouchEventType, BF.BFFinger>(_length);
|
var gen_ret = new BF.BFEvent<BF.TouchEventType, BF.BFFinger>(_length);
|
||||||
translator.Push(L, gen_ret);
|
translator.Push(L, gen_ret);
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
if(LuaAPI.lua_gettop(L) == 1)
|
if(LuaAPI.lua_gettop(L) == 1)
|
||||||
{
|
{
|
||||||
|
|
||||||
var gen_ret = new BF.BFEvent<BF.TouchEventType, BF.BFFinger>();
|
var gen_ret = new BF.BFEvent<BF.TouchEventType, BF.BFFinger>();
|
||||||
translator.Push(L, gen_ret);
|
translator.Push(L, gen_ret);
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
catch(System.Exception gen_e) {
|
catch(System.Exception gen_e) {
|
||||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||||
}
|
}
|
||||||
return LuaAPI.luaL_error(L, "invalid arguments to BF.BFEvent<BF.TouchEventType, BF.BFFinger> constructor!");
|
return LuaAPI.luaL_error(L, "invalid arguments to BF.BFEvent<BF.TouchEventType, BF.BFFinger> constructor!");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||||
static int __AddMeta(RealStatePtr L)
|
static int __AddMeta(RealStatePtr L)
|
||||||
{
|
{
|
||||||
|
|
||||||
try {
|
try {
|
||||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||||
|
|
||||||
|
|
||||||
if (translator.Assignable<BF.BFEvent<BF.TouchEventType, BF.BFFinger>>(L, 1) && translator.Assignable<System.Action<BF.TouchEventType, BF.BFFinger>>(L, 2))
|
if (translator.Assignable<BF.BFEvent<BF.TouchEventType, BF.BFFinger>>(L, 1) && translator.Assignable<System.Action<BF.TouchEventType, BF.BFFinger>>(L, 2))
|
||||||
{
|
{
|
||||||
BF.BFEvent<BF.TouchEventType, BF.BFFinger> leftside = (BF.BFEvent<BF.TouchEventType, BF.BFFinger>)translator.GetObject(L, 1, typeof(BF.BFEvent<BF.TouchEventType, BF.BFFinger>));
|
BF.BFEvent<BF.TouchEventType, BF.BFFinger> leftside = (BF.BFEvent<BF.TouchEventType, BF.BFFinger>)translator.GetObject(L, 1, typeof(BF.BFEvent<BF.TouchEventType, BF.BFFinger>));
|
||||||
System.Action<BF.TouchEventType, BF.BFFinger> rightside = translator.GetDelegate<System.Action<BF.TouchEventType, BF.BFFinger>>(L, 2);
|
System.Action<BF.TouchEventType, BF.BFFinger> rightside = translator.GetDelegate<System.Action<BF.TouchEventType, BF.BFFinger>>(L, 2);
|
||||||
|
|
||||||
translator.Push(L, leftside + rightside);
|
translator.Push(L, leftside + rightside);
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
catch(System.Exception gen_e) {
|
catch(System.Exception gen_e) {
|
||||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||||
}
|
}
|
||||||
return LuaAPI.luaL_error(L, "invalid arguments to right hand of + operator, need BF.BFEvent<BF.TouchEventType, BF.BFFinger>!");
|
return LuaAPI.luaL_error(L, "invalid arguments to right hand of + operator, need BF.BFEvent<BF.TouchEventType, BF.BFFinger>!");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||||
static int __SubMeta(RealStatePtr L)
|
static int __SubMeta(RealStatePtr L)
|
||||||
{
|
{
|
||||||
|
|
||||||
try {
|
try {
|
||||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||||
|
|
||||||
|
|
||||||
if (translator.Assignable<BF.BFEvent<BF.TouchEventType, BF.BFFinger>>(L, 1) && translator.Assignable<System.Action<BF.TouchEventType, BF.BFFinger>>(L, 2))
|
if (translator.Assignable<BF.BFEvent<BF.TouchEventType, BF.BFFinger>>(L, 1) && translator.Assignable<System.Action<BF.TouchEventType, BF.BFFinger>>(L, 2))
|
||||||
{
|
{
|
||||||
BF.BFEvent<BF.TouchEventType, BF.BFFinger> leftside = (BF.BFEvent<BF.TouchEventType, BF.BFFinger>)translator.GetObject(L, 1, typeof(BF.BFEvent<BF.TouchEventType, BF.BFFinger>));
|
BF.BFEvent<BF.TouchEventType, BF.BFFinger> leftside = (BF.BFEvent<BF.TouchEventType, BF.BFFinger>)translator.GetObject(L, 1, typeof(BF.BFEvent<BF.TouchEventType, BF.BFFinger>));
|
||||||
System.Action<BF.TouchEventType, BF.BFFinger> rightside = translator.GetDelegate<System.Action<BF.TouchEventType, BF.BFFinger>>(L, 2);
|
System.Action<BF.TouchEventType, BF.BFFinger> rightside = translator.GetDelegate<System.Action<BF.TouchEventType, BF.BFFinger>>(L, 2);
|
||||||
|
|
||||||
translator.Push(L, leftside - rightside);
|
translator.Push(L, leftside - rightside);
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
catch(System.Exception gen_e) {
|
catch(System.Exception gen_e) {
|
||||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||||
}
|
}
|
||||||
return LuaAPI.luaL_error(L, "invalid arguments to right hand of - operator, need BF.BFEvent<BF.TouchEventType, BF.BFFinger>!");
|
return LuaAPI.luaL_error(L, "invalid arguments to right hand of - operator, need BF.BFEvent<BF.TouchEventType, BF.BFFinger>!");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||||
static int _m_Invoke(RealStatePtr L)
|
static int _m_Invoke(RealStatePtr L)
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
|
|
||||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||||
|
|
||||||
|
|
||||||
BF.BFEvent<BF.TouchEventType, BF.BFFinger> gen_to_be_invoked = (BF.BFEvent<BF.TouchEventType, BF.BFFinger>)translator.FastGetCSObj(L, 1);
|
BF.BFEvent<BF.TouchEventType, BF.BFFinger> gen_to_be_invoked = (BF.BFEvent<BF.TouchEventType, BF.BFFinger>)translator.FastGetCSObj(L, 1);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
{
|
{
|
||||||
BF.TouchEventType _t1;translator.Get(L, 2, out _t1);
|
BF.TouchEventType _t1;translator.Get(L, 2, out _t1);
|
||||||
BF.BFFinger _t2 = (BF.BFFinger)translator.GetObject(L, 3, typeof(BF.BFFinger));
|
BF.BFFinger _t2 = (BF.BFFinger)translator.GetObject(L, 3, typeof(BF.BFFinger));
|
||||||
|
|
||||||
gen_to_be_invoked.Invoke( _t1, _t2 );
|
gen_to_be_invoked.Invoke( _t1, _t2 );
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
} catch(System.Exception gen_e) {
|
} catch(System.Exception gen_e) {
|
||||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,329 +1,329 @@
|
|||||||
#if USE_UNI_LUA
|
#if USE_UNI_LUA
|
||||||
using LuaAPI = UniLua.Lua;
|
using LuaAPI = UniLua.Lua;
|
||||||
using RealStatePtr = UniLua.ILuaState;
|
using RealStatePtr = UniLua.ILuaState;
|
||||||
using LuaCSFunction = UniLua.CSharpFunctionDelegate;
|
using LuaCSFunction = UniLua.CSharpFunctionDelegate;
|
||||||
#else
|
#else
|
||||||
using LuaAPI = XLua.LuaDLL.Lua;
|
using LuaAPI = XLua.LuaDLL.Lua;
|
||||||
using RealStatePtr = System.IntPtr;
|
using RealStatePtr = System.IntPtr;
|
||||||
using LuaCSFunction = XLua.LuaDLL.lua_CSFunction;
|
using LuaCSFunction = XLua.LuaDLL.lua_CSFunction;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
using XLua;
|
using XLua;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
|
||||||
|
|
||||||
namespace XLua.CSObjectWrap
|
namespace XLua.CSObjectWrap
|
||||||
{
|
{
|
||||||
using Utils = XLua.Utils;
|
using Utils = XLua.Utils;
|
||||||
public class BFBFGridLayoutWrap
|
public class BFBFGridLayoutWrap
|
||||||
{
|
{
|
||||||
public static void __Register(RealStatePtr L)
|
public static void __Register(RealStatePtr L)
|
||||||
{
|
{
|
||||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||||
System.Type type = typeof(BF.BFGridLayout);
|
System.Type type = typeof(BF.BFGridLayout);
|
||||||
Utils.BeginObjectRegister(type, L, translator, 0, 3, 5, 5);
|
Utils.BeginObjectRegister(type, L, translator, 0, 3, 5, 5);
|
||||||
|
|
||||||
Utils.RegisterFunc(L, Utils.METHOD_IDX, "RefreshLayout", _m_RefreshLayout);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "RefreshLayout", _m_RefreshLayout);
|
||||||
Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetVerticalSize", _m_GetVerticalSize);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetVerticalSize", _m_GetVerticalSize);
|
||||||
Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetHorizontalSize", _m_GetHorizontalSize);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetHorizontalSize", _m_GetHorizontalSize);
|
||||||
|
|
||||||
|
|
||||||
Utils.RegisterFunc(L, Utils.GETTER_IDX, "Spaceing", _g_get_Spaceing);
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "Spaceing", _g_get_Spaceing);
|
||||||
Utils.RegisterFunc(L, Utils.GETTER_IDX, "CellSize", _g_get_CellSize);
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "CellSize", _g_get_CellSize);
|
||||||
Utils.RegisterFunc(L, Utils.GETTER_IDX, "StartCorner", _g_get_StartCorner);
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "StartCorner", _g_get_StartCorner);
|
||||||
Utils.RegisterFunc(L, Utils.GETTER_IDX, "ConstraintType", _g_get_ConstraintType);
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "ConstraintType", _g_get_ConstraintType);
|
||||||
Utils.RegisterFunc(L, Utils.GETTER_IDX, "ConstraintCount", _g_get_ConstraintCount);
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "ConstraintCount", _g_get_ConstraintCount);
|
||||||
|
|
||||||
Utils.RegisterFunc(L, Utils.SETTER_IDX, "Spaceing", _s_set_Spaceing);
|
Utils.RegisterFunc(L, Utils.SETTER_IDX, "Spaceing", _s_set_Spaceing);
|
||||||
Utils.RegisterFunc(L, Utils.SETTER_IDX, "CellSize", _s_set_CellSize);
|
Utils.RegisterFunc(L, Utils.SETTER_IDX, "CellSize", _s_set_CellSize);
|
||||||
Utils.RegisterFunc(L, Utils.SETTER_IDX, "StartCorner", _s_set_StartCorner);
|
Utils.RegisterFunc(L, Utils.SETTER_IDX, "StartCorner", _s_set_StartCorner);
|
||||||
Utils.RegisterFunc(L, Utils.SETTER_IDX, "ConstraintType", _s_set_ConstraintType);
|
Utils.RegisterFunc(L, Utils.SETTER_IDX, "ConstraintType", _s_set_ConstraintType);
|
||||||
Utils.RegisterFunc(L, Utils.SETTER_IDX, "ConstraintCount", _s_set_ConstraintCount);
|
Utils.RegisterFunc(L, Utils.SETTER_IDX, "ConstraintCount", _s_set_ConstraintCount);
|
||||||
|
|
||||||
|
|
||||||
Utils.EndObjectRegister(type, L, translator, null, null,
|
Utils.EndObjectRegister(type, L, translator, null, null,
|
||||||
null, null, null);
|
null, null, null);
|
||||||
|
|
||||||
Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0);
|
Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Utils.EndClassRegister(type, L, translator);
|
Utils.EndClassRegister(type, L, translator);
|
||||||
}
|
}
|
||||||
|
|
||||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||||
static int __CreateInstance(RealStatePtr L)
|
static int __CreateInstance(RealStatePtr L)
|
||||||
{
|
{
|
||||||
|
|
||||||
try {
|
try {
|
||||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||||
if(LuaAPI.lua_gettop(L) == 1)
|
if(LuaAPI.lua_gettop(L) == 1)
|
||||||
{
|
{
|
||||||
|
|
||||||
var gen_ret = new BF.BFGridLayout();
|
var gen_ret = new BF.BFGridLayout();
|
||||||
translator.Push(L, gen_ret);
|
translator.Push(L, gen_ret);
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
catch(System.Exception gen_e) {
|
catch(System.Exception gen_e) {
|
||||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||||
}
|
}
|
||||||
return LuaAPI.luaL_error(L, "invalid arguments to BF.BFGridLayout constructor!");
|
return LuaAPI.luaL_error(L, "invalid arguments to BF.BFGridLayout constructor!");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||||
static int _m_RefreshLayout(RealStatePtr L)
|
static int _m_RefreshLayout(RealStatePtr L)
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
|
|
||||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||||
|
|
||||||
|
|
||||||
BF.BFGridLayout gen_to_be_invoked = (BF.BFGridLayout)translator.FastGetCSObj(L, 1);
|
BF.BFGridLayout gen_to_be_invoked = (BF.BFGridLayout)translator.FastGetCSObj(L, 1);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|
||||||
gen_to_be_invoked.RefreshLayout( );
|
gen_to_be_invoked.RefreshLayout( );
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
} catch(System.Exception gen_e) {
|
} catch(System.Exception gen_e) {
|
||||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||||
static int _m_GetVerticalSize(RealStatePtr L)
|
static int _m_GetVerticalSize(RealStatePtr L)
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
|
|
||||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||||
|
|
||||||
|
|
||||||
BF.BFGridLayout gen_to_be_invoked = (BF.BFGridLayout)translator.FastGetCSObj(L, 1);
|
BF.BFGridLayout gen_to_be_invoked = (BF.BFGridLayout)translator.FastGetCSObj(L, 1);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|
||||||
var gen_ret = gen_to_be_invoked.GetVerticalSize( );
|
var gen_ret = gen_to_be_invoked.GetVerticalSize( );
|
||||||
LuaAPI.lua_pushnumber(L, gen_ret);
|
LuaAPI.lua_pushnumber(L, gen_ret);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
} catch(System.Exception gen_e) {
|
} catch(System.Exception gen_e) {
|
||||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||||
static int _m_GetHorizontalSize(RealStatePtr L)
|
static int _m_GetHorizontalSize(RealStatePtr L)
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
|
|
||||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||||
|
|
||||||
|
|
||||||
BF.BFGridLayout gen_to_be_invoked = (BF.BFGridLayout)translator.FastGetCSObj(L, 1);
|
BF.BFGridLayout gen_to_be_invoked = (BF.BFGridLayout)translator.FastGetCSObj(L, 1);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|
||||||
var gen_ret = gen_to_be_invoked.GetHorizontalSize( );
|
var gen_ret = gen_to_be_invoked.GetHorizontalSize( );
|
||||||
LuaAPI.lua_pushnumber(L, gen_ret);
|
LuaAPI.lua_pushnumber(L, gen_ret);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
} catch(System.Exception gen_e) {
|
} catch(System.Exception gen_e) {
|
||||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||||
static int _g_get_Spaceing(RealStatePtr L)
|
static int _g_get_Spaceing(RealStatePtr L)
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||||
|
|
||||||
BF.BFGridLayout gen_to_be_invoked = (BF.BFGridLayout)translator.FastGetCSObj(L, 1);
|
BF.BFGridLayout gen_to_be_invoked = (BF.BFGridLayout)translator.FastGetCSObj(L, 1);
|
||||||
translator.PushUnityEngineVector2(L, gen_to_be_invoked.Spaceing);
|
translator.PushUnityEngineVector2(L, gen_to_be_invoked.Spaceing);
|
||||||
} catch(System.Exception gen_e) {
|
} catch(System.Exception gen_e) {
|
||||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||||
}
|
}
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||||
static int _g_get_CellSize(RealStatePtr L)
|
static int _g_get_CellSize(RealStatePtr L)
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||||
|
|
||||||
BF.BFGridLayout gen_to_be_invoked = (BF.BFGridLayout)translator.FastGetCSObj(L, 1);
|
BF.BFGridLayout gen_to_be_invoked = (BF.BFGridLayout)translator.FastGetCSObj(L, 1);
|
||||||
translator.PushUnityEngineVector2(L, gen_to_be_invoked.CellSize);
|
translator.PushUnityEngineVector2(L, gen_to_be_invoked.CellSize);
|
||||||
} catch(System.Exception gen_e) {
|
} catch(System.Exception gen_e) {
|
||||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||||
}
|
}
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||||
static int _g_get_StartCorner(RealStatePtr L)
|
static int _g_get_StartCorner(RealStatePtr L)
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||||
|
|
||||||
BF.BFGridLayout gen_to_be_invoked = (BF.BFGridLayout)translator.FastGetCSObj(L, 1);
|
BF.BFGridLayout gen_to_be_invoked = (BF.BFGridLayout)translator.FastGetCSObj(L, 1);
|
||||||
translator.Push(L, gen_to_be_invoked.StartCorner);
|
translator.Push(L, gen_to_be_invoked.StartCorner);
|
||||||
} catch(System.Exception gen_e) {
|
} catch(System.Exception gen_e) {
|
||||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||||
}
|
}
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||||
static int _g_get_ConstraintType(RealStatePtr L)
|
static int _g_get_ConstraintType(RealStatePtr L)
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||||
|
|
||||||
BF.BFGridLayout gen_to_be_invoked = (BF.BFGridLayout)translator.FastGetCSObj(L, 1);
|
BF.BFGridLayout gen_to_be_invoked = (BF.BFGridLayout)translator.FastGetCSObj(L, 1);
|
||||||
translator.Push(L, gen_to_be_invoked.ConstraintType);
|
translator.Push(L, gen_to_be_invoked.ConstraintType);
|
||||||
} catch(System.Exception gen_e) {
|
} catch(System.Exception gen_e) {
|
||||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||||
}
|
}
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||||
static int _g_get_ConstraintCount(RealStatePtr L)
|
static int _g_get_ConstraintCount(RealStatePtr L)
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||||
|
|
||||||
BF.BFGridLayout gen_to_be_invoked = (BF.BFGridLayout)translator.FastGetCSObj(L, 1);
|
BF.BFGridLayout gen_to_be_invoked = (BF.BFGridLayout)translator.FastGetCSObj(L, 1);
|
||||||
LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.ConstraintCount);
|
LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.ConstraintCount);
|
||||||
} catch(System.Exception gen_e) {
|
} catch(System.Exception gen_e) {
|
||||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||||
}
|
}
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||||
static int _s_set_Spaceing(RealStatePtr L)
|
static int _s_set_Spaceing(RealStatePtr L)
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||||
|
|
||||||
BF.BFGridLayout gen_to_be_invoked = (BF.BFGridLayout)translator.FastGetCSObj(L, 1);
|
BF.BFGridLayout gen_to_be_invoked = (BF.BFGridLayout)translator.FastGetCSObj(L, 1);
|
||||||
UnityEngine.Vector2 gen_value;translator.Get(L, 2, out gen_value);
|
UnityEngine.Vector2 gen_value;translator.Get(L, 2, out gen_value);
|
||||||
gen_to_be_invoked.Spaceing = gen_value;
|
gen_to_be_invoked.Spaceing = gen_value;
|
||||||
|
|
||||||
} catch(System.Exception gen_e) {
|
} catch(System.Exception gen_e) {
|
||||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||||
static int _s_set_CellSize(RealStatePtr L)
|
static int _s_set_CellSize(RealStatePtr L)
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||||
|
|
||||||
BF.BFGridLayout gen_to_be_invoked = (BF.BFGridLayout)translator.FastGetCSObj(L, 1);
|
BF.BFGridLayout gen_to_be_invoked = (BF.BFGridLayout)translator.FastGetCSObj(L, 1);
|
||||||
UnityEngine.Vector2 gen_value;translator.Get(L, 2, out gen_value);
|
UnityEngine.Vector2 gen_value;translator.Get(L, 2, out gen_value);
|
||||||
gen_to_be_invoked.CellSize = gen_value;
|
gen_to_be_invoked.CellSize = gen_value;
|
||||||
|
|
||||||
} catch(System.Exception gen_e) {
|
} catch(System.Exception gen_e) {
|
||||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||||
static int _s_set_StartCorner(RealStatePtr L)
|
static int _s_set_StartCorner(RealStatePtr L)
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||||
|
|
||||||
BF.BFGridLayout gen_to_be_invoked = (BF.BFGridLayout)translator.FastGetCSObj(L, 1);
|
BF.BFGridLayout gen_to_be_invoked = (BF.BFGridLayout)translator.FastGetCSObj(L, 1);
|
||||||
BF.BFGridLayout.Corner gen_value;translator.Get(L, 2, out gen_value);
|
BF.BFGridLayout.Corner gen_value;translator.Get(L, 2, out gen_value);
|
||||||
gen_to_be_invoked.StartCorner = gen_value;
|
gen_to_be_invoked.StartCorner = gen_value;
|
||||||
|
|
||||||
} catch(System.Exception gen_e) {
|
} catch(System.Exception gen_e) {
|
||||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||||
static int _s_set_ConstraintType(RealStatePtr L)
|
static int _s_set_ConstraintType(RealStatePtr L)
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||||
|
|
||||||
BF.BFGridLayout gen_to_be_invoked = (BF.BFGridLayout)translator.FastGetCSObj(L, 1);
|
BF.BFGridLayout gen_to_be_invoked = (BF.BFGridLayout)translator.FastGetCSObj(L, 1);
|
||||||
BF.BFGridLayout.Constraint gen_value;translator.Get(L, 2, out gen_value);
|
BF.BFGridLayout.Constraint gen_value;translator.Get(L, 2, out gen_value);
|
||||||
gen_to_be_invoked.ConstraintType = gen_value;
|
gen_to_be_invoked.ConstraintType = gen_value;
|
||||||
|
|
||||||
} catch(System.Exception gen_e) {
|
} catch(System.Exception gen_e) {
|
||||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||||
static int _s_set_ConstraintCount(RealStatePtr L)
|
static int _s_set_ConstraintCount(RealStatePtr L)
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||||
|
|
||||||
BF.BFGridLayout gen_to_be_invoked = (BF.BFGridLayout)translator.FastGetCSObj(L, 1);
|
BF.BFGridLayout gen_to_be_invoked = (BF.BFGridLayout)translator.FastGetCSObj(L, 1);
|
||||||
gen_to_be_invoked.ConstraintCount = LuaAPI.xlua_tointeger(L, 2);
|
gen_to_be_invoked.ConstraintCount = LuaAPI.xlua_tointeger(L, 2);
|
||||||
|
|
||||||
} catch(System.Exception gen_e) {
|
} catch(System.Exception gen_e) {
|
||||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
208
Assets/XLua/Gen/BF_BattleControlBgWrap.cs
Normal file
208
Assets/XLua/Gen/BF_BattleControlBgWrap.cs
Normal file
@ -0,0 +1,208 @@
|
|||||||
|
#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 BFBattleControlBgWrap
|
||||||
|
{
|
||||||
|
public static void __Register(RealStatePtr L)
|
||||||
|
{
|
||||||
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||||
|
System.Type type = typeof(BF.BattleControlBg);
|
||||||
|
Utils.BeginObjectRegister(type, L, translator, 0, 0, 4, 4);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "speed", _g_get_speed);
|
||||||
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "endX", _g_get_endX);
|
||||||
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "resetX", _g_get_resetX);
|
||||||
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "type", _g_get_type);
|
||||||
|
|
||||||
|
Utils.RegisterFunc(L, Utils.SETTER_IDX, "speed", _s_set_speed);
|
||||||
|
Utils.RegisterFunc(L, Utils.SETTER_IDX, "endX", _s_set_endX);
|
||||||
|
Utils.RegisterFunc(L, Utils.SETTER_IDX, "resetX", _s_set_resetX);
|
||||||
|
Utils.RegisterFunc(L, Utils.SETTER_IDX, "type", _s_set_type);
|
||||||
|
|
||||||
|
|
||||||
|
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.BattleControlBg();
|
||||||
|
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.BattleControlBg constructor!");
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||||
|
static int _g_get_speed(RealStatePtr L)
|
||||||
|
{
|
||||||
|
try {
|
||||||
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||||
|
|
||||||
|
BF.BattleControlBg gen_to_be_invoked = (BF.BattleControlBg)translator.FastGetCSObj(L, 1);
|
||||||
|
LuaAPI.lua_pushnumber(L, gen_to_be_invoked.speed);
|
||||||
|
} catch(System.Exception gen_e) {
|
||||||
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||||
|
}
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||||
|
static int _g_get_endX(RealStatePtr L)
|
||||||
|
{
|
||||||
|
try {
|
||||||
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||||
|
|
||||||
|
BF.BattleControlBg gen_to_be_invoked = (BF.BattleControlBg)translator.FastGetCSObj(L, 1);
|
||||||
|
LuaAPI.lua_pushnumber(L, gen_to_be_invoked.endX);
|
||||||
|
} catch(System.Exception gen_e) {
|
||||||
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||||
|
}
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||||
|
static int _g_get_resetX(RealStatePtr L)
|
||||||
|
{
|
||||||
|
try {
|
||||||
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||||
|
|
||||||
|
BF.BattleControlBg gen_to_be_invoked = (BF.BattleControlBg)translator.FastGetCSObj(L, 1);
|
||||||
|
LuaAPI.lua_pushnumber(L, gen_to_be_invoked.resetX);
|
||||||
|
} catch(System.Exception gen_e) {
|
||||||
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||||
|
}
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||||
|
static int _g_get_type(RealStatePtr L)
|
||||||
|
{
|
||||||
|
try {
|
||||||
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||||
|
|
||||||
|
BF.BattleControlBg gen_to_be_invoked = (BF.BattleControlBg)translator.FastGetCSObj(L, 1);
|
||||||
|
LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.type);
|
||||||
|
} catch(System.Exception gen_e) {
|
||||||
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||||
|
}
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||||
|
static int _s_set_speed(RealStatePtr L)
|
||||||
|
{
|
||||||
|
try {
|
||||||
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||||
|
|
||||||
|
BF.BattleControlBg gen_to_be_invoked = (BF.BattleControlBg)translator.FastGetCSObj(L, 1);
|
||||||
|
gen_to_be_invoked.speed = (float)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_endX(RealStatePtr L)
|
||||||
|
{
|
||||||
|
try {
|
||||||
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||||
|
|
||||||
|
BF.BattleControlBg gen_to_be_invoked = (BF.BattleControlBg)translator.FastGetCSObj(L, 1);
|
||||||
|
gen_to_be_invoked.endX = (float)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_resetX(RealStatePtr L)
|
||||||
|
{
|
||||||
|
try {
|
||||||
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||||
|
|
||||||
|
BF.BattleControlBg gen_to_be_invoked = (BF.BattleControlBg)translator.FastGetCSObj(L, 1);
|
||||||
|
gen_to_be_invoked.resetX = (float)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_type(RealStatePtr L)
|
||||||
|
{
|
||||||
|
try {
|
||||||
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||||
|
|
||||||
|
BF.BattleControlBg gen_to_be_invoked = (BF.BattleControlBg)translator.FastGetCSObj(L, 1);
|
||||||
|
gen_to_be_invoked.type = LuaAPI.xlua_tointeger(L, 2);
|
||||||
|
|
||||||
|
} catch(System.Exception gen_e) {
|
||||||
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||||
|
}
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
@ -1,84 +1,84 @@
|
|||||||
#if USE_UNI_LUA
|
#if USE_UNI_LUA
|
||||||
using LuaAPI = UniLua.Lua;
|
using LuaAPI = UniLua.Lua;
|
||||||
using RealStatePtr = UniLua.ILuaState;
|
using RealStatePtr = UniLua.ILuaState;
|
||||||
using LuaCSFunction = UniLua.CSharpFunctionDelegate;
|
using LuaCSFunction = UniLua.CSharpFunctionDelegate;
|
||||||
#else
|
#else
|
||||||
using LuaAPI = XLua.LuaDLL.Lua;
|
using LuaAPI = XLua.LuaDLL.Lua;
|
||||||
using RealStatePtr = System.IntPtr;
|
using RealStatePtr = System.IntPtr;
|
||||||
using LuaCSFunction = XLua.LuaDLL.lua_CSFunction;
|
using LuaCSFunction = XLua.LuaDLL.lua_CSFunction;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
using XLua;
|
using XLua;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
|
||||||
|
|
||||||
namespace XLua.CSObjectWrap
|
namespace XLua.CSObjectWrap
|
||||||
{
|
{
|
||||||
using Utils = XLua.Utils;
|
using Utils = XLua.Utils;
|
||||||
public class BFEnumFlagsAttributeWrap
|
public class BFEnumFlagsAttributeWrap
|
||||||
{
|
{
|
||||||
public static void __Register(RealStatePtr L)
|
public static void __Register(RealStatePtr L)
|
||||||
{
|
{
|
||||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||||
System.Type type = typeof(BF.EnumFlagsAttribute);
|
System.Type type = typeof(BF.EnumFlagsAttribute);
|
||||||
Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0);
|
Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Utils.EndObjectRegister(type, L, translator, null, null,
|
Utils.EndObjectRegister(type, L, translator, null, null,
|
||||||
null, null, null);
|
null, null, null);
|
||||||
|
|
||||||
Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0);
|
Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Utils.EndClassRegister(type, L, translator);
|
Utils.EndClassRegister(type, L, translator);
|
||||||
}
|
}
|
||||||
|
|
||||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||||
static int __CreateInstance(RealStatePtr L)
|
static int __CreateInstance(RealStatePtr L)
|
||||||
{
|
{
|
||||||
|
|
||||||
try {
|
try {
|
||||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||||
if(LuaAPI.lua_gettop(L) == 1)
|
if(LuaAPI.lua_gettop(L) == 1)
|
||||||
{
|
{
|
||||||
|
|
||||||
var gen_ret = new BF.EnumFlagsAttribute();
|
var gen_ret = new BF.EnumFlagsAttribute();
|
||||||
translator.Push(L, gen_ret);
|
translator.Push(L, gen_ret);
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
catch(System.Exception gen_e) {
|
catch(System.Exception gen_e) {
|
||||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||||
}
|
}
|
||||||
return LuaAPI.luaL_error(L, "invalid arguments to BF.EnumFlagsAttribute constructor!");
|
return LuaAPI.luaL_error(L, "invalid arguments to BF.EnumFlagsAttribute constructor!");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,97 +1,97 @@
|
|||||||
#if USE_UNI_LUA
|
#if USE_UNI_LUA
|
||||||
using LuaAPI = UniLua.Lua;
|
using LuaAPI = UniLua.Lua;
|
||||||
using RealStatePtr = UniLua.ILuaState;
|
using RealStatePtr = UniLua.ILuaState;
|
||||||
using LuaCSFunction = UniLua.CSharpFunctionDelegate;
|
using LuaCSFunction = UniLua.CSharpFunctionDelegate;
|
||||||
#else
|
#else
|
||||||
using LuaAPI = XLua.LuaDLL.Lua;
|
using LuaAPI = XLua.LuaDLL.Lua;
|
||||||
using RealStatePtr = System.IntPtr;
|
using RealStatePtr = System.IntPtr;
|
||||||
using LuaCSFunction = XLua.LuaDLL.lua_CSFunction;
|
using LuaCSFunction = XLua.LuaDLL.lua_CSFunction;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
using XLua;
|
using XLua;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
|
||||||
|
|
||||||
namespace XLua.CSObjectWrap
|
namespace XLua.CSObjectWrap
|
||||||
{
|
{
|
||||||
using Utils = XLua.Utils;
|
using Utils = XLua.Utils;
|
||||||
public class BFMonoSingleton_1_AdManager_Wrap
|
public class BFMonoSingleton_1_AdManager_Wrap
|
||||||
{
|
{
|
||||||
public static void __Register(RealStatePtr L)
|
public static void __Register(RealStatePtr L)
|
||||||
{
|
{
|
||||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||||
System.Type type = typeof(BF.MonoSingleton<AdManager>);
|
System.Type type = typeof(BF.MonoSingleton<AdManager>);
|
||||||
Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0);
|
Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Utils.EndObjectRegister(type, L, translator, null, null,
|
Utils.EndObjectRegister(type, L, translator, null, null,
|
||||||
null, null, null);
|
null, null, null);
|
||||||
|
|
||||||
Utils.BeginClassRegister(type, L, __CreateInstance, 1, 1, 0);
|
Utils.BeginClassRegister(type, L, __CreateInstance, 1, 1, 0);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "Instance", _g_get_Instance);
|
Utils.RegisterFunc(L, Utils.CLS_GETTER_IDX, "Instance", _g_get_Instance);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Utils.EndClassRegister(type, L, translator);
|
Utils.EndClassRegister(type, L, translator);
|
||||||
}
|
}
|
||||||
|
|
||||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||||
static int __CreateInstance(RealStatePtr L)
|
static int __CreateInstance(RealStatePtr L)
|
||||||
{
|
{
|
||||||
|
|
||||||
try {
|
try {
|
||||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||||
if(LuaAPI.lua_gettop(L) == 1)
|
if(LuaAPI.lua_gettop(L) == 1)
|
||||||
{
|
{
|
||||||
|
|
||||||
var gen_ret = new BF.MonoSingleton<AdManager>();
|
var gen_ret = new BF.MonoSingleton<AdManager>();
|
||||||
translator.Push(L, gen_ret);
|
translator.Push(L, gen_ret);
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
catch(System.Exception gen_e) {
|
catch(System.Exception gen_e) {
|
||||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||||
}
|
}
|
||||||
return LuaAPI.luaL_error(L, "invalid arguments to BF.MonoSingleton<AdManager> constructor!");
|
return LuaAPI.luaL_error(L, "invalid arguments to BF.MonoSingleton<AdManager> constructor!");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||||
static int _g_get_Instance(RealStatePtr L)
|
static int _g_get_Instance(RealStatePtr L)
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||||
translator.Push(L, BF.MonoSingleton<AdManager>.Instance);
|
translator.Push(L, BF.MonoSingleton<AdManager>.Instance);
|
||||||
} catch(System.Exception gen_e) {
|
} catch(System.Exception gen_e) {
|
||||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||||
}
|
}
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,116 +1,116 @@
|
|||||||
#if USE_UNI_LUA
|
#if USE_UNI_LUA
|
||||||
using LuaAPI = UniLua.Lua;
|
using LuaAPI = UniLua.Lua;
|
||||||
using RealStatePtr = UniLua.ILuaState;
|
using RealStatePtr = UniLua.ILuaState;
|
||||||
using LuaCSFunction = UniLua.CSharpFunctionDelegate;
|
using LuaCSFunction = UniLua.CSharpFunctionDelegate;
|
||||||
#else
|
#else
|
||||||
using LuaAPI = XLua.LuaDLL.Lua;
|
using LuaAPI = XLua.LuaDLL.Lua;
|
||||||
using RealStatePtr = System.IntPtr;
|
using RealStatePtr = System.IntPtr;
|
||||||
using LuaCSFunction = XLua.LuaDLL.lua_CSFunction;
|
using LuaCSFunction = XLua.LuaDLL.lua_CSFunction;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
using XLua;
|
using XLua;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
|
||||||
|
|
||||||
namespace XLua.CSObjectWrap
|
namespace XLua.CSObjectWrap
|
||||||
{
|
{
|
||||||
using Utils = XLua.Utils;
|
using Utils = XLua.Utils;
|
||||||
public class BestHTTPConnectionsHTTP2HTTP2ResponseWrap
|
public class BestHTTPConnectionsHTTP2HTTP2ResponseWrap
|
||||||
{
|
{
|
||||||
public static void __Register(RealStatePtr L)
|
public static void __Register(RealStatePtr L)
|
||||||
{
|
{
|
||||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||||
System.Type type = typeof(BestHTTP.Connections.HTTP2.HTTP2Response);
|
System.Type type = typeof(BestHTTP.Connections.HTTP2.HTTP2Response);
|
||||||
Utils.BeginObjectRegister(type, L, translator, 0, 0, 2, 0);
|
Utils.BeginObjectRegister(type, L, translator, 0, 0, 2, 0);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Utils.RegisterFunc(L, Utils.GETTER_IDX, "ExpectedContentLength", _g_get_ExpectedContentLength);
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "ExpectedContentLength", _g_get_ExpectedContentLength);
|
||||||
Utils.RegisterFunc(L, Utils.GETTER_IDX, "IsCompressed", _g_get_IsCompressed);
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "IsCompressed", _g_get_IsCompressed);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Utils.EndObjectRegister(type, L, translator, null, null,
|
Utils.EndObjectRegister(type, L, translator, null, null,
|
||||||
null, null, null);
|
null, null, null);
|
||||||
|
|
||||||
Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0);
|
Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Utils.EndClassRegister(type, L, translator);
|
Utils.EndClassRegister(type, L, translator);
|
||||||
}
|
}
|
||||||
|
|
||||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||||
static int __CreateInstance(RealStatePtr L)
|
static int __CreateInstance(RealStatePtr L)
|
||||||
{
|
{
|
||||||
|
|
||||||
try {
|
try {
|
||||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||||
if(LuaAPI.lua_gettop(L) == 3 && translator.Assignable<BestHTTP.HTTPRequest>(L, 2) && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3))
|
if(LuaAPI.lua_gettop(L) == 3 && translator.Assignable<BestHTTP.HTTPRequest>(L, 2) && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3))
|
||||||
{
|
{
|
||||||
BestHTTP.HTTPRequest _request = (BestHTTP.HTTPRequest)translator.GetObject(L, 2, typeof(BestHTTP.HTTPRequest));
|
BestHTTP.HTTPRequest _request = (BestHTTP.HTTPRequest)translator.GetObject(L, 2, typeof(BestHTTP.HTTPRequest));
|
||||||
bool _isFromCache = LuaAPI.lua_toboolean(L, 3);
|
bool _isFromCache = LuaAPI.lua_toboolean(L, 3);
|
||||||
|
|
||||||
var gen_ret = new BestHTTP.Connections.HTTP2.HTTP2Response(_request, _isFromCache);
|
var gen_ret = new BestHTTP.Connections.HTTP2.HTTP2Response(_request, _isFromCache);
|
||||||
translator.Push(L, gen_ret);
|
translator.Push(L, gen_ret);
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
catch(System.Exception gen_e) {
|
catch(System.Exception gen_e) {
|
||||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||||
}
|
}
|
||||||
return LuaAPI.luaL_error(L, "invalid arguments to BestHTTP.Connections.HTTP2.HTTP2Response constructor!");
|
return LuaAPI.luaL_error(L, "invalid arguments to BestHTTP.Connections.HTTP2.HTTP2Response constructor!");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||||
static int _g_get_ExpectedContentLength(RealStatePtr L)
|
static int _g_get_ExpectedContentLength(RealStatePtr L)
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||||
|
|
||||||
BestHTTP.Connections.HTTP2.HTTP2Response gen_to_be_invoked = (BestHTTP.Connections.HTTP2.HTTP2Response)translator.FastGetCSObj(L, 1);
|
BestHTTP.Connections.HTTP2.HTTP2Response gen_to_be_invoked = (BestHTTP.Connections.HTTP2.HTTP2Response)translator.FastGetCSObj(L, 1);
|
||||||
LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.ExpectedContentLength);
|
LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.ExpectedContentLength);
|
||||||
} catch(System.Exception gen_e) {
|
} catch(System.Exception gen_e) {
|
||||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||||
}
|
}
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||||
static int _g_get_IsCompressed(RealStatePtr L)
|
static int _g_get_IsCompressed(RealStatePtr L)
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||||
|
|
||||||
BestHTTP.Connections.HTTP2.HTTP2Response gen_to_be_invoked = (BestHTTP.Connections.HTTP2.HTTP2Response)translator.FastGetCSObj(L, 1);
|
BestHTTP.Connections.HTTP2.HTTP2Response gen_to_be_invoked = (BestHTTP.Connections.HTTP2.HTTP2Response)translator.FastGetCSObj(L, 1);
|
||||||
LuaAPI.lua_pushboolean(L, gen_to_be_invoked.IsCompressed);
|
LuaAPI.lua_pushboolean(L, gen_to_be_invoked.IsCompressed);
|
||||||
} catch(System.Exception gen_e) {
|
} catch(System.Exception gen_e) {
|
||||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||||
}
|
}
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -24,6 +24,9 @@ namespace XLua.CSObjectWrap
|
|||||||
Utils.BeginObjectRegister(type, L, translator, 1, 11, 5, 5);
|
Utils.BeginObjectRegister(type, L, translator, 1, 11, 5, 5);
|
||||||
Utils.RegisterFunc(L, Utils.OBJ_META_IDX, "__eq", __EqMeta);
|
Utils.RegisterFunc(L, Utils.OBJ_META_IDX, "__eq", __EqMeta);
|
||||||
|
|
||||||
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "Contains", _m_Contains);
|
||||||
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "SqrDistance", _m_SqrDistance);
|
||||||
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "ClosestPoint", _m_ClosestPoint);
|
||||||
Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetHashCode", _m_GetHashCode);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetHashCode", _m_GetHashCode);
|
||||||
Utils.RegisterFunc(L, Utils.METHOD_IDX, "Equals", _m_Equals);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "Equals", _m_Equals);
|
||||||
Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetMinMax", _m_SetMinMax);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetMinMax", _m_SetMinMax);
|
||||||
@ -32,9 +35,6 @@ namespace XLua.CSObjectWrap
|
|||||||
Utils.RegisterFunc(L, Utils.METHOD_IDX, "Intersects", _m_Intersects);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "Intersects", _m_Intersects);
|
||||||
Utils.RegisterFunc(L, Utils.METHOD_IDX, "IntersectRay", _m_IntersectRay);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "IntersectRay", _m_IntersectRay);
|
||||||
Utils.RegisterFunc(L, Utils.METHOD_IDX, "ToString", _m_ToString);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "ToString", _m_ToString);
|
||||||
Utils.RegisterFunc(L, Utils.METHOD_IDX, "Contains", _m_Contains);
|
|
||||||
Utils.RegisterFunc(L, Utils.METHOD_IDX, "SqrDistance", _m_SqrDistance);
|
|
||||||
Utils.RegisterFunc(L, Utils.METHOD_IDX, "ClosestPoint", _m_ClosestPoint);
|
|
||||||
|
|
||||||
|
|
||||||
Utils.RegisterFunc(L, Utils.GETTER_IDX, "center", _g_get_center);
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "center", _g_get_center);
|
||||||
@ -127,6 +127,99 @@ namespace XLua.CSObjectWrap
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||||
|
static int _m_Contains(RealStatePtr L)
|
||||||
|
{
|
||||||
|
try {
|
||||||
|
|
||||||
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||||
|
|
||||||
|
|
||||||
|
UnityEngine.Bounds gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
{
|
||||||
|
UnityEngine.Vector3 _point;translator.Get(L, 2, out _point);
|
||||||
|
|
||||||
|
var gen_ret = gen_to_be_invoked.Contains( _point );
|
||||||
|
LuaAPI.lua_pushboolean(L, gen_ret);
|
||||||
|
|
||||||
|
|
||||||
|
translator.UpdateUnityEngineBounds(L, 1, gen_to_be_invoked);
|
||||||
|
|
||||||
|
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
} catch(System.Exception gen_e) {
|
||||||
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||||
|
static int _m_SqrDistance(RealStatePtr L)
|
||||||
|
{
|
||||||
|
try {
|
||||||
|
|
||||||
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||||
|
|
||||||
|
|
||||||
|
UnityEngine.Bounds gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
{
|
||||||
|
UnityEngine.Vector3 _point;translator.Get(L, 2, out _point);
|
||||||
|
|
||||||
|
var gen_ret = gen_to_be_invoked.SqrDistance( _point );
|
||||||
|
LuaAPI.lua_pushnumber(L, gen_ret);
|
||||||
|
|
||||||
|
|
||||||
|
translator.UpdateUnityEngineBounds(L, 1, gen_to_be_invoked);
|
||||||
|
|
||||||
|
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
} catch(System.Exception gen_e) {
|
||||||
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||||
|
static int _m_ClosestPoint(RealStatePtr L)
|
||||||
|
{
|
||||||
|
try {
|
||||||
|
|
||||||
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||||
|
|
||||||
|
|
||||||
|
UnityEngine.Bounds gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
{
|
||||||
|
UnityEngine.Vector3 _point;translator.Get(L, 2, out _point);
|
||||||
|
|
||||||
|
var gen_ret = gen_to_be_invoked.ClosestPoint( _point );
|
||||||
|
translator.PushUnityEngineVector3(L, gen_ret);
|
||||||
|
|
||||||
|
|
||||||
|
translator.UpdateUnityEngineBounds(L, 1, gen_to_be_invoked);
|
||||||
|
|
||||||
|
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
} catch(System.Exception gen_e) {
|
||||||
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||||
static int _m_GetHashCode(RealStatePtr L)
|
static int _m_GetHashCode(RealStatePtr L)
|
||||||
{
|
{
|
||||||
@ -471,99 +564,6 @@ namespace XLua.CSObjectWrap
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
||||||
static int _m_Contains(RealStatePtr L)
|
|
||||||
{
|
|
||||||
try {
|
|
||||||
|
|
||||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
||||||
|
|
||||||
|
|
||||||
UnityEngine.Bounds gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
{
|
|
||||||
UnityEngine.Vector3 _point;translator.Get(L, 2, out _point);
|
|
||||||
|
|
||||||
var gen_ret = gen_to_be_invoked.Contains( _point );
|
|
||||||
LuaAPI.lua_pushboolean(L, gen_ret);
|
|
||||||
|
|
||||||
|
|
||||||
translator.UpdateUnityEngineBounds(L, 1, gen_to_be_invoked);
|
|
||||||
|
|
||||||
|
|
||||||
return 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
} catch(System.Exception gen_e) {
|
|
||||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
||||||
static int _m_SqrDistance(RealStatePtr L)
|
|
||||||
{
|
|
||||||
try {
|
|
||||||
|
|
||||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
||||||
|
|
||||||
|
|
||||||
UnityEngine.Bounds gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
{
|
|
||||||
UnityEngine.Vector3 _point;translator.Get(L, 2, out _point);
|
|
||||||
|
|
||||||
var gen_ret = gen_to_be_invoked.SqrDistance( _point );
|
|
||||||
LuaAPI.lua_pushnumber(L, gen_ret);
|
|
||||||
|
|
||||||
|
|
||||||
translator.UpdateUnityEngineBounds(L, 1, gen_to_be_invoked);
|
|
||||||
|
|
||||||
|
|
||||||
return 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
} catch(System.Exception gen_e) {
|
|
||||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
||||||
static int _m_ClosestPoint(RealStatePtr L)
|
|
||||||
{
|
|
||||||
try {
|
|
||||||
|
|
||||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
||||||
|
|
||||||
|
|
||||||
UnityEngine.Bounds gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
{
|
|
||||||
UnityEngine.Vector3 _point;translator.Get(L, 2, out _point);
|
|
||||||
|
|
||||||
var gen_ret = gen_to_be_invoked.ClosestPoint( _point );
|
|
||||||
translator.PushUnityEngineVector3(L, gen_ret);
|
|
||||||
|
|
||||||
|
|
||||||
translator.UpdateUnityEngineBounds(L, 1, gen_to_be_invoked);
|
|
||||||
|
|
||||||
|
|
||||||
return 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
} catch(System.Exception gen_e) {
|
|
||||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -1,320 +1,320 @@
|
|||||||
#if USE_UNI_LUA
|
#if USE_UNI_LUA
|
||||||
using LuaAPI = UniLua.Lua;
|
using LuaAPI = UniLua.Lua;
|
||||||
using RealStatePtr = UniLua.ILuaState;
|
using RealStatePtr = UniLua.ILuaState;
|
||||||
using LuaCSFunction = UniLua.CSharpFunctionDelegate;
|
using LuaCSFunction = UniLua.CSharpFunctionDelegate;
|
||||||
#else
|
#else
|
||||||
using LuaAPI = XLua.LuaDLL.Lua;
|
using LuaAPI = XLua.LuaDLL.Lua;
|
||||||
using RealStatePtr = System.IntPtr;
|
using RealStatePtr = System.IntPtr;
|
||||||
using LuaCSFunction = XLua.LuaDLL.lua_CSFunction;
|
using LuaCSFunction = XLua.LuaDLL.lua_CSFunction;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
using XLua;
|
using XLua;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
|
||||||
|
|
||||||
namespace XLua.CSObjectWrap
|
namespace XLua.CSObjectWrap
|
||||||
{
|
{
|
||||||
using Utils = XLua.Utils;
|
using Utils = XLua.Utils;
|
||||||
public class UnityEngineEventsUnityEventBaseWrap
|
public class UnityEngineEventsUnityEventBaseWrap
|
||||||
{
|
{
|
||||||
public static void __Register(RealStatePtr L)
|
public static void __Register(RealStatePtr L)
|
||||||
{
|
{
|
||||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||||
System.Type type = typeof(UnityEngine.Events.UnityEventBase);
|
System.Type type = typeof(UnityEngine.Events.UnityEventBase);
|
||||||
Utils.BeginObjectRegister(type, L, translator, 0, 7, 0, 0);
|
Utils.BeginObjectRegister(type, L, translator, 0, 7, 0, 0);
|
||||||
|
|
||||||
Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetPersistentEventCount", _m_GetPersistentEventCount);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetPersistentEventCount", _m_GetPersistentEventCount);
|
||||||
Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetPersistentTarget", _m_GetPersistentTarget);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetPersistentTarget", _m_GetPersistentTarget);
|
||||||
Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetPersistentMethodName", _m_GetPersistentMethodName);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetPersistentMethodName", _m_GetPersistentMethodName);
|
||||||
Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetPersistentListenerState", _m_SetPersistentListenerState);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetPersistentListenerState", _m_SetPersistentListenerState);
|
||||||
Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetPersistentListenerState", _m_GetPersistentListenerState);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetPersistentListenerState", _m_GetPersistentListenerState);
|
||||||
Utils.RegisterFunc(L, Utils.METHOD_IDX, "RemoveAllListeners", _m_RemoveAllListeners);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "RemoveAllListeners", _m_RemoveAllListeners);
|
||||||
Utils.RegisterFunc(L, Utils.METHOD_IDX, "ToString", _m_ToString);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "ToString", _m_ToString);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Utils.EndObjectRegister(type, L, translator, null, null,
|
Utils.EndObjectRegister(type, L, translator, null, null,
|
||||||
null, null, null);
|
null, null, null);
|
||||||
|
|
||||||
Utils.BeginClassRegister(type, L, __CreateInstance, 2, 0, 0);
|
Utils.BeginClassRegister(type, L, __CreateInstance, 2, 0, 0);
|
||||||
Utils.RegisterFunc(L, Utils.CLS_IDX, "GetValidMethodInfo", _m_GetValidMethodInfo_xlua_st_);
|
Utils.RegisterFunc(L, Utils.CLS_IDX, "GetValidMethodInfo", _m_GetValidMethodInfo_xlua_st_);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Utils.EndClassRegister(type, L, translator);
|
Utils.EndClassRegister(type, L, translator);
|
||||||
}
|
}
|
||||||
|
|
||||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||||
static int __CreateInstance(RealStatePtr L)
|
static int __CreateInstance(RealStatePtr L)
|
||||||
{
|
{
|
||||||
return LuaAPI.luaL_error(L, "UnityEngine.Events.UnityEventBase does not have a constructor!");
|
return LuaAPI.luaL_error(L, "UnityEngine.Events.UnityEventBase does not have a constructor!");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||||
static int _m_GetPersistentEventCount(RealStatePtr L)
|
static int _m_GetPersistentEventCount(RealStatePtr L)
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
|
|
||||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||||
|
|
||||||
|
|
||||||
UnityEngine.Events.UnityEventBase gen_to_be_invoked = (UnityEngine.Events.UnityEventBase)translator.FastGetCSObj(L, 1);
|
UnityEngine.Events.UnityEventBase gen_to_be_invoked = (UnityEngine.Events.UnityEventBase)translator.FastGetCSObj(L, 1);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|
||||||
var gen_ret = gen_to_be_invoked.GetPersistentEventCount( );
|
var gen_ret = gen_to_be_invoked.GetPersistentEventCount( );
|
||||||
LuaAPI.xlua_pushinteger(L, gen_ret);
|
LuaAPI.xlua_pushinteger(L, gen_ret);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
} catch(System.Exception gen_e) {
|
} catch(System.Exception gen_e) {
|
||||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||||
static int _m_GetPersistentTarget(RealStatePtr L)
|
static int _m_GetPersistentTarget(RealStatePtr L)
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
|
|
||||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||||
|
|
||||||
|
|
||||||
UnityEngine.Events.UnityEventBase gen_to_be_invoked = (UnityEngine.Events.UnityEventBase)translator.FastGetCSObj(L, 1);
|
UnityEngine.Events.UnityEventBase gen_to_be_invoked = (UnityEngine.Events.UnityEventBase)translator.FastGetCSObj(L, 1);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
{
|
{
|
||||||
int _index = LuaAPI.xlua_tointeger(L, 2);
|
int _index = LuaAPI.xlua_tointeger(L, 2);
|
||||||
|
|
||||||
var gen_ret = gen_to_be_invoked.GetPersistentTarget( _index );
|
var gen_ret = gen_to_be_invoked.GetPersistentTarget( _index );
|
||||||
translator.Push(L, gen_ret);
|
translator.Push(L, gen_ret);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
} catch(System.Exception gen_e) {
|
} catch(System.Exception gen_e) {
|
||||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||||
static int _m_GetPersistentMethodName(RealStatePtr L)
|
static int _m_GetPersistentMethodName(RealStatePtr L)
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
|
|
||||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||||
|
|
||||||
|
|
||||||
UnityEngine.Events.UnityEventBase gen_to_be_invoked = (UnityEngine.Events.UnityEventBase)translator.FastGetCSObj(L, 1);
|
UnityEngine.Events.UnityEventBase gen_to_be_invoked = (UnityEngine.Events.UnityEventBase)translator.FastGetCSObj(L, 1);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
{
|
{
|
||||||
int _index = LuaAPI.xlua_tointeger(L, 2);
|
int _index = LuaAPI.xlua_tointeger(L, 2);
|
||||||
|
|
||||||
var gen_ret = gen_to_be_invoked.GetPersistentMethodName( _index );
|
var gen_ret = gen_to_be_invoked.GetPersistentMethodName( _index );
|
||||||
LuaAPI.lua_pushstring(L, gen_ret);
|
LuaAPI.lua_pushstring(L, gen_ret);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
} catch(System.Exception gen_e) {
|
} catch(System.Exception gen_e) {
|
||||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||||
static int _m_SetPersistentListenerState(RealStatePtr L)
|
static int _m_SetPersistentListenerState(RealStatePtr L)
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
|
|
||||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||||
|
|
||||||
|
|
||||||
UnityEngine.Events.UnityEventBase gen_to_be_invoked = (UnityEngine.Events.UnityEventBase)translator.FastGetCSObj(L, 1);
|
UnityEngine.Events.UnityEventBase gen_to_be_invoked = (UnityEngine.Events.UnityEventBase)translator.FastGetCSObj(L, 1);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
{
|
{
|
||||||
int _index = LuaAPI.xlua_tointeger(L, 2);
|
int _index = LuaAPI.xlua_tointeger(L, 2);
|
||||||
UnityEngine.Events.UnityEventCallState _state;translator.Get(L, 3, out _state);
|
UnityEngine.Events.UnityEventCallState _state;translator.Get(L, 3, out _state);
|
||||||
|
|
||||||
gen_to_be_invoked.SetPersistentListenerState( _index, _state );
|
gen_to_be_invoked.SetPersistentListenerState( _index, _state );
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
} catch(System.Exception gen_e) {
|
} catch(System.Exception gen_e) {
|
||||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||||
static int _m_GetPersistentListenerState(RealStatePtr L)
|
static int _m_GetPersistentListenerState(RealStatePtr L)
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
|
|
||||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||||
|
|
||||||
|
|
||||||
UnityEngine.Events.UnityEventBase gen_to_be_invoked = (UnityEngine.Events.UnityEventBase)translator.FastGetCSObj(L, 1);
|
UnityEngine.Events.UnityEventBase gen_to_be_invoked = (UnityEngine.Events.UnityEventBase)translator.FastGetCSObj(L, 1);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
{
|
{
|
||||||
int _index = LuaAPI.xlua_tointeger(L, 2);
|
int _index = LuaAPI.xlua_tointeger(L, 2);
|
||||||
|
|
||||||
var gen_ret = gen_to_be_invoked.GetPersistentListenerState( _index );
|
var gen_ret = gen_to_be_invoked.GetPersistentListenerState( _index );
|
||||||
translator.Push(L, gen_ret);
|
translator.Push(L, gen_ret);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
} catch(System.Exception gen_e) {
|
} catch(System.Exception gen_e) {
|
||||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||||
static int _m_RemoveAllListeners(RealStatePtr L)
|
static int _m_RemoveAllListeners(RealStatePtr L)
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
|
|
||||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||||
|
|
||||||
|
|
||||||
UnityEngine.Events.UnityEventBase gen_to_be_invoked = (UnityEngine.Events.UnityEventBase)translator.FastGetCSObj(L, 1);
|
UnityEngine.Events.UnityEventBase gen_to_be_invoked = (UnityEngine.Events.UnityEventBase)translator.FastGetCSObj(L, 1);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|
||||||
gen_to_be_invoked.RemoveAllListeners( );
|
gen_to_be_invoked.RemoveAllListeners( );
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
} catch(System.Exception gen_e) {
|
} catch(System.Exception gen_e) {
|
||||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||||
static int _m_ToString(RealStatePtr L)
|
static int _m_ToString(RealStatePtr L)
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
|
|
||||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||||
|
|
||||||
|
|
||||||
UnityEngine.Events.UnityEventBase gen_to_be_invoked = (UnityEngine.Events.UnityEventBase)translator.FastGetCSObj(L, 1);
|
UnityEngine.Events.UnityEventBase gen_to_be_invoked = (UnityEngine.Events.UnityEventBase)translator.FastGetCSObj(L, 1);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|
||||||
var gen_ret = gen_to_be_invoked.ToString( );
|
var gen_ret = gen_to_be_invoked.ToString( );
|
||||||
LuaAPI.lua_pushstring(L, gen_ret);
|
LuaAPI.lua_pushstring(L, gen_ret);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
} catch(System.Exception gen_e) {
|
} catch(System.Exception gen_e) {
|
||||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||||
static int _m_GetValidMethodInfo_xlua_st_(RealStatePtr L)
|
static int _m_GetValidMethodInfo_xlua_st_(RealStatePtr L)
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
|
|
||||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
int gen_param_count = LuaAPI.lua_gettop(L);
|
int gen_param_count = LuaAPI.lua_gettop(L);
|
||||||
|
|
||||||
if(gen_param_count == 3&& translator.Assignable<object>(L, 1)&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& translator.Assignable<System.Type[]>(L, 3))
|
if(gen_param_count == 3&& translator.Assignable<object>(L, 1)&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& translator.Assignable<System.Type[]>(L, 3))
|
||||||
{
|
{
|
||||||
object _obj = translator.GetObject(L, 1, typeof(object));
|
object _obj = translator.GetObject(L, 1, typeof(object));
|
||||||
string _functionName = LuaAPI.lua_tostring(L, 2);
|
string _functionName = LuaAPI.lua_tostring(L, 2);
|
||||||
System.Type[] _argumentTypes = (System.Type[])translator.GetObject(L, 3, typeof(System.Type[]));
|
System.Type[] _argumentTypes = (System.Type[])translator.GetObject(L, 3, typeof(System.Type[]));
|
||||||
|
|
||||||
var gen_ret = UnityEngine.Events.UnityEventBase.GetValidMethodInfo( _obj, _functionName, _argumentTypes );
|
var gen_ret = UnityEngine.Events.UnityEventBase.GetValidMethodInfo( _obj, _functionName, _argumentTypes );
|
||||||
translator.Push(L, gen_ret);
|
translator.Push(L, gen_ret);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
if(gen_param_count == 3&& translator.Assignable<System.Type>(L, 1)&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& translator.Assignable<System.Type[]>(L, 3))
|
if(gen_param_count == 3&& translator.Assignable<System.Type>(L, 1)&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& translator.Assignable<System.Type[]>(L, 3))
|
||||||
{
|
{
|
||||||
System.Type _objectType = (System.Type)translator.GetObject(L, 1, typeof(System.Type));
|
System.Type _objectType = (System.Type)translator.GetObject(L, 1, typeof(System.Type));
|
||||||
string _functionName = LuaAPI.lua_tostring(L, 2);
|
string _functionName = LuaAPI.lua_tostring(L, 2);
|
||||||
System.Type[] _argumentTypes = (System.Type[])translator.GetObject(L, 3, typeof(System.Type[]));
|
System.Type[] _argumentTypes = (System.Type[])translator.GetObject(L, 3, typeof(System.Type[]));
|
||||||
|
|
||||||
var gen_ret = UnityEngine.Events.UnityEventBase.GetValidMethodInfo( _objectType, _functionName, _argumentTypes );
|
var gen_ret = UnityEngine.Events.UnityEventBase.GetValidMethodInfo( _objectType, _functionName, _argumentTypes );
|
||||||
translator.Push(L, gen_ret);
|
translator.Push(L, gen_ret);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
} catch(System.Exception gen_e) {
|
} catch(System.Exception gen_e) {
|
||||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||||
}
|
}
|
||||||
|
|
||||||
return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Events.UnityEventBase.GetValidMethodInfo!");
|
return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Events.UnityEventBase.GetValidMethodInfo!");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -32,16 +32,7 @@ namespace XLua.CSObjectWrap
|
|||||||
null, null, null);
|
null, null, null);
|
||||||
|
|
||||||
Utils.BeginClassRegister(type, L, __CreateInstance, 54, 0, 0);
|
Utils.BeginClassRegister(type, L, __CreateInstance, 54, 0, 0);
|
||||||
Utils.RegisterFunc(L, Utils.CLS_IDX, "ClosestPowerOfTwo", _m_ClosestPowerOfTwo_xlua_st_);
|
Utils.RegisterFunc(L, Utils.CLS_IDX, "Sin", _m_Sin_xlua_st_);
|
||||||
Utils.RegisterFunc(L, Utils.CLS_IDX, "IsPowerOfTwo", _m_IsPowerOfTwo_xlua_st_);
|
|
||||||
Utils.RegisterFunc(L, Utils.CLS_IDX, "NextPowerOfTwo", _m_NextPowerOfTwo_xlua_st_);
|
|
||||||
Utils.RegisterFunc(L, Utils.CLS_IDX, "GammaToLinearSpace", _m_GammaToLinearSpace_xlua_st_);
|
|
||||||
Utils.RegisterFunc(L, Utils.CLS_IDX, "LinearToGammaSpace", _m_LinearToGammaSpace_xlua_st_);
|
|
||||||
Utils.RegisterFunc(L, Utils.CLS_IDX, "CorrelatedColorTemperatureToRGB", _m_CorrelatedColorTemperatureToRGB_xlua_st_);
|
|
||||||
Utils.RegisterFunc(L, Utils.CLS_IDX, "FloatToHalf", _m_FloatToHalf_xlua_st_);
|
|
||||||
Utils.RegisterFunc(L, Utils.CLS_IDX, "HalfToFloat", _m_HalfToFloat_xlua_st_);
|
|
||||||
Utils.RegisterFunc(L, Utils.CLS_IDX, "PerlinNoise", _m_PerlinNoise_xlua_st_);
|
|
||||||
Utils.RegisterFunc(L, Utils.CLS_IDX, "Sin", _m_Sin_xlua_st_);
|
|
||||||
Utils.RegisterFunc(L, Utils.CLS_IDX, "Cos", _m_Cos_xlua_st_);
|
Utils.RegisterFunc(L, Utils.CLS_IDX, "Cos", _m_Cos_xlua_st_);
|
||||||
Utils.RegisterFunc(L, Utils.CLS_IDX, "Tan", _m_Tan_xlua_st_);
|
Utils.RegisterFunc(L, Utils.CLS_IDX, "Tan", _m_Tan_xlua_st_);
|
||||||
Utils.RegisterFunc(L, Utils.CLS_IDX, "Asin", _m_Asin_xlua_st_);
|
Utils.RegisterFunc(L, Utils.CLS_IDX, "Asin", _m_Asin_xlua_st_);
|
||||||
@ -79,6 +70,15 @@ namespace XLua.CSObjectWrap
|
|||||||
Utils.RegisterFunc(L, Utils.CLS_IDX, "PingPong", _m_PingPong_xlua_st_);
|
Utils.RegisterFunc(L, Utils.CLS_IDX, "PingPong", _m_PingPong_xlua_st_);
|
||||||
Utils.RegisterFunc(L, Utils.CLS_IDX, "InverseLerp", _m_InverseLerp_xlua_st_);
|
Utils.RegisterFunc(L, Utils.CLS_IDX, "InverseLerp", _m_InverseLerp_xlua_st_);
|
||||||
Utils.RegisterFunc(L, Utils.CLS_IDX, "DeltaAngle", _m_DeltaAngle_xlua_st_);
|
Utils.RegisterFunc(L, Utils.CLS_IDX, "DeltaAngle", _m_DeltaAngle_xlua_st_);
|
||||||
|
Utils.RegisterFunc(L, Utils.CLS_IDX, "ClosestPowerOfTwo", _m_ClosestPowerOfTwo_xlua_st_);
|
||||||
|
Utils.RegisterFunc(L, Utils.CLS_IDX, "IsPowerOfTwo", _m_IsPowerOfTwo_xlua_st_);
|
||||||
|
Utils.RegisterFunc(L, Utils.CLS_IDX, "NextPowerOfTwo", _m_NextPowerOfTwo_xlua_st_);
|
||||||
|
Utils.RegisterFunc(L, Utils.CLS_IDX, "GammaToLinearSpace", _m_GammaToLinearSpace_xlua_st_);
|
||||||
|
Utils.RegisterFunc(L, Utils.CLS_IDX, "LinearToGammaSpace", _m_LinearToGammaSpace_xlua_st_);
|
||||||
|
Utils.RegisterFunc(L, Utils.CLS_IDX, "CorrelatedColorTemperatureToRGB", _m_CorrelatedColorTemperatureToRGB_xlua_st_);
|
||||||
|
Utils.RegisterFunc(L, Utils.CLS_IDX, "FloatToHalf", _m_FloatToHalf_xlua_st_);
|
||||||
|
Utils.RegisterFunc(L, Utils.CLS_IDX, "HalfToFloat", _m_HalfToFloat_xlua_st_);
|
||||||
|
Utils.RegisterFunc(L, Utils.CLS_IDX, "PerlinNoise", _m_PerlinNoise_xlua_st_);
|
||||||
|
|
||||||
|
|
||||||
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "PI", UnityEngine.Mathf.PI);
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "PI", UnityEngine.Mathf.PI);
|
||||||
@ -122,234 +122,6 @@ namespace XLua.CSObjectWrap
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
||||||
static int _m_ClosestPowerOfTwo_xlua_st_(RealStatePtr L)
|
|
||||||
{
|
|
||||||
try {
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
{
|
|
||||||
int _value = LuaAPI.xlua_tointeger(L, 1);
|
|
||||||
|
|
||||||
var gen_ret = UnityEngine.Mathf.ClosestPowerOfTwo( _value );
|
|
||||||
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_IsPowerOfTwo_xlua_st_(RealStatePtr L)
|
|
||||||
{
|
|
||||||
try {
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
{
|
|
||||||
int _value = LuaAPI.xlua_tointeger(L, 1);
|
|
||||||
|
|
||||||
var gen_ret = UnityEngine.Mathf.IsPowerOfTwo( _value );
|
|
||||||
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_NextPowerOfTwo_xlua_st_(RealStatePtr L)
|
|
||||||
{
|
|
||||||
try {
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
{
|
|
||||||
int _value = LuaAPI.xlua_tointeger(L, 1);
|
|
||||||
|
|
||||||
var gen_ret = UnityEngine.Mathf.NextPowerOfTwo( _value );
|
|
||||||
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_GammaToLinearSpace_xlua_st_(RealStatePtr L)
|
|
||||||
{
|
|
||||||
try {
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
{
|
|
||||||
float _value = (float)LuaAPI.lua_tonumber(L, 1);
|
|
||||||
|
|
||||||
var gen_ret = UnityEngine.Mathf.GammaToLinearSpace( _value );
|
|
||||||
LuaAPI.lua_pushnumber(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_LinearToGammaSpace_xlua_st_(RealStatePtr L)
|
|
||||||
{
|
|
||||||
try {
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
{
|
|
||||||
float _value = (float)LuaAPI.lua_tonumber(L, 1);
|
|
||||||
|
|
||||||
var gen_ret = UnityEngine.Mathf.LinearToGammaSpace( _value );
|
|
||||||
LuaAPI.lua_pushnumber(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_CorrelatedColorTemperatureToRGB_xlua_st_(RealStatePtr L)
|
|
||||||
{
|
|
||||||
try {
|
|
||||||
|
|
||||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
{
|
|
||||||
float _kelvin = (float)LuaAPI.lua_tonumber(L, 1);
|
|
||||||
|
|
||||||
var gen_ret = UnityEngine.Mathf.CorrelatedColorTemperatureToRGB( _kelvin );
|
|
||||||
translator.PushUnityEngineColor(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_FloatToHalf_xlua_st_(RealStatePtr L)
|
|
||||||
{
|
|
||||||
try {
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
{
|
|
||||||
float _val = (float)LuaAPI.lua_tonumber(L, 1);
|
|
||||||
|
|
||||||
var gen_ret = UnityEngine.Mathf.FloatToHalf( _val );
|
|
||||||
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_HalfToFloat_xlua_st_(RealStatePtr L)
|
|
||||||
{
|
|
||||||
try {
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
{
|
|
||||||
ushort _val = (ushort)LuaAPI.xlua_tointeger(L, 1);
|
|
||||||
|
|
||||||
var gen_ret = UnityEngine.Mathf.HalfToFloat( _val );
|
|
||||||
LuaAPI.lua_pushnumber(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_PerlinNoise_xlua_st_(RealStatePtr L)
|
|
||||||
{
|
|
||||||
try {
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
{
|
|
||||||
float _x = (float)LuaAPI.lua_tonumber(L, 1);
|
|
||||||
float _y = (float)LuaAPI.lua_tonumber(L, 2);
|
|
||||||
|
|
||||||
var gen_ret = UnityEngine.Mathf.PerlinNoise( _x, _y );
|
|
||||||
LuaAPI.lua_pushnumber(L, gen_ret);
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
return 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
} catch(System.Exception gen_e) {
|
|
||||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||||
static int _m_Sin_xlua_st_(RealStatePtr L)
|
static int _m_Sin_xlua_st_(RealStatePtr L)
|
||||||
{
|
{
|
||||||
@ -1542,6 +1314,234 @@ namespace XLua.CSObjectWrap
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||||
|
static int _m_ClosestPowerOfTwo_xlua_st_(RealStatePtr L)
|
||||||
|
{
|
||||||
|
try {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
{
|
||||||
|
int _value = LuaAPI.xlua_tointeger(L, 1);
|
||||||
|
|
||||||
|
var gen_ret = UnityEngine.Mathf.ClosestPowerOfTwo( _value );
|
||||||
|
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_IsPowerOfTwo_xlua_st_(RealStatePtr L)
|
||||||
|
{
|
||||||
|
try {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
{
|
||||||
|
int _value = LuaAPI.xlua_tointeger(L, 1);
|
||||||
|
|
||||||
|
var gen_ret = UnityEngine.Mathf.IsPowerOfTwo( _value );
|
||||||
|
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_NextPowerOfTwo_xlua_st_(RealStatePtr L)
|
||||||
|
{
|
||||||
|
try {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
{
|
||||||
|
int _value = LuaAPI.xlua_tointeger(L, 1);
|
||||||
|
|
||||||
|
var gen_ret = UnityEngine.Mathf.NextPowerOfTwo( _value );
|
||||||
|
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_GammaToLinearSpace_xlua_st_(RealStatePtr L)
|
||||||
|
{
|
||||||
|
try {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
{
|
||||||
|
float _value = (float)LuaAPI.lua_tonumber(L, 1);
|
||||||
|
|
||||||
|
var gen_ret = UnityEngine.Mathf.GammaToLinearSpace( _value );
|
||||||
|
LuaAPI.lua_pushnumber(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_LinearToGammaSpace_xlua_st_(RealStatePtr L)
|
||||||
|
{
|
||||||
|
try {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
{
|
||||||
|
float _value = (float)LuaAPI.lua_tonumber(L, 1);
|
||||||
|
|
||||||
|
var gen_ret = UnityEngine.Mathf.LinearToGammaSpace( _value );
|
||||||
|
LuaAPI.lua_pushnumber(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_CorrelatedColorTemperatureToRGB_xlua_st_(RealStatePtr L)
|
||||||
|
{
|
||||||
|
try {
|
||||||
|
|
||||||
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
{
|
||||||
|
float _kelvin = (float)LuaAPI.lua_tonumber(L, 1);
|
||||||
|
|
||||||
|
var gen_ret = UnityEngine.Mathf.CorrelatedColorTemperatureToRGB( _kelvin );
|
||||||
|
translator.PushUnityEngineColor(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_FloatToHalf_xlua_st_(RealStatePtr L)
|
||||||
|
{
|
||||||
|
try {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
{
|
||||||
|
float _val = (float)LuaAPI.lua_tonumber(L, 1);
|
||||||
|
|
||||||
|
var gen_ret = UnityEngine.Mathf.FloatToHalf( _val );
|
||||||
|
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_HalfToFloat_xlua_st_(RealStatePtr L)
|
||||||
|
{
|
||||||
|
try {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
{
|
||||||
|
ushort _val = (ushort)LuaAPI.xlua_tointeger(L, 1);
|
||||||
|
|
||||||
|
var gen_ret = UnityEngine.Mathf.HalfToFloat( _val );
|
||||||
|
LuaAPI.lua_pushnumber(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_PerlinNoise_xlua_st_(RealStatePtr L)
|
||||||
|
{
|
||||||
|
try {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
{
|
||||||
|
float _x = (float)LuaAPI.lua_tonumber(L, 1);
|
||||||
|
float _y = (float)LuaAPI.lua_tonumber(L, 2);
|
||||||
|
|
||||||
|
var gen_ret = UnityEngine.Mathf.PerlinNoise( _x, _y );
|
||||||
|
LuaAPI.lua_pushnumber(L, gen_ret);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
} catch(System.Exception gen_e) {
|
||||||
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -1,110 +1,110 @@
|
|||||||
#if USE_UNI_LUA
|
#if USE_UNI_LUA
|
||||||
using LuaAPI = UniLua.Lua;
|
using LuaAPI = UniLua.Lua;
|
||||||
using RealStatePtr = UniLua.ILuaState;
|
using RealStatePtr = UniLua.ILuaState;
|
||||||
using LuaCSFunction = UniLua.CSharpFunctionDelegate;
|
using LuaCSFunction = UniLua.CSharpFunctionDelegate;
|
||||||
#else
|
#else
|
||||||
using LuaAPI = XLua.LuaDLL.Lua;
|
using LuaAPI = XLua.LuaDLL.Lua;
|
||||||
using RealStatePtr = System.IntPtr;
|
using RealStatePtr = System.IntPtr;
|
||||||
using LuaCSFunction = XLua.LuaDLL.lua_CSFunction;
|
using LuaCSFunction = XLua.LuaDLL.lua_CSFunction;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
using XLua;
|
using XLua;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
|
||||||
|
|
||||||
namespace XLua.CSObjectWrap
|
namespace XLua.CSObjectWrap
|
||||||
{
|
{
|
||||||
using Utils = XLua.Utils;
|
using Utils = XLua.Utils;
|
||||||
public class UnityEnginePurchasingSecurityAppleStoreKitTestTangleWrap
|
public class UnityEnginePurchasingSecurityAppleStoreKitTestTangleWrap
|
||||||
{
|
{
|
||||||
public static void __Register(RealStatePtr L)
|
public static void __Register(RealStatePtr L)
|
||||||
{
|
{
|
||||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||||
System.Type type = typeof(UnityEngine.Purchasing.Security.AppleStoreKitTestTangle);
|
System.Type type = typeof(UnityEngine.Purchasing.Security.AppleStoreKitTestTangle);
|
||||||
Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0);
|
Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Utils.EndObjectRegister(type, L, translator, null, null,
|
Utils.EndObjectRegister(type, L, translator, null, null,
|
||||||
null, null, null);
|
null, null, null);
|
||||||
|
|
||||||
Utils.BeginClassRegister(type, L, __CreateInstance, 3, 0, 0);
|
Utils.BeginClassRegister(type, L, __CreateInstance, 3, 0, 0);
|
||||||
Utils.RegisterFunc(L, Utils.CLS_IDX, "Data", _m_Data_xlua_st_);
|
Utils.RegisterFunc(L, Utils.CLS_IDX, "Data", _m_Data_xlua_st_);
|
||||||
|
|
||||||
|
|
||||||
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "IsPopulated", UnityEngine.Purchasing.Security.AppleStoreKitTestTangle.IsPopulated);
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "IsPopulated", UnityEngine.Purchasing.Security.AppleStoreKitTestTangle.IsPopulated);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Utils.EndClassRegister(type, L, translator);
|
Utils.EndClassRegister(type, L, translator);
|
||||||
}
|
}
|
||||||
|
|
||||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||||
static int __CreateInstance(RealStatePtr L)
|
static int __CreateInstance(RealStatePtr L)
|
||||||
{
|
{
|
||||||
|
|
||||||
try {
|
try {
|
||||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||||
if(LuaAPI.lua_gettop(L) == 1)
|
if(LuaAPI.lua_gettop(L) == 1)
|
||||||
{
|
{
|
||||||
|
|
||||||
var gen_ret = new UnityEngine.Purchasing.Security.AppleStoreKitTestTangle();
|
var gen_ret = new UnityEngine.Purchasing.Security.AppleStoreKitTestTangle();
|
||||||
translator.Push(L, gen_ret);
|
translator.Push(L, gen_ret);
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
catch(System.Exception gen_e) {
|
catch(System.Exception gen_e) {
|
||||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||||
}
|
}
|
||||||
return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Purchasing.Security.AppleStoreKitTestTangle constructor!");
|
return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Purchasing.Security.AppleStoreKitTestTangle constructor!");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||||
static int _m_Data_xlua_st_(RealStatePtr L)
|
static int _m_Data_xlua_st_(RealStatePtr L)
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|
||||||
var gen_ret = UnityEngine.Purchasing.Security.AppleStoreKitTestTangle.Data( );
|
var gen_ret = UnityEngine.Purchasing.Security.AppleStoreKitTestTangle.Data( );
|
||||||
LuaAPI.lua_pushstring(L, gen_ret);
|
LuaAPI.lua_pushstring(L, gen_ret);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
} catch(System.Exception gen_e) {
|
} catch(System.Exception gen_e) {
|
||||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,110 +1,110 @@
|
|||||||
#if USE_UNI_LUA
|
#if USE_UNI_LUA
|
||||||
using LuaAPI = UniLua.Lua;
|
using LuaAPI = UniLua.Lua;
|
||||||
using RealStatePtr = UniLua.ILuaState;
|
using RealStatePtr = UniLua.ILuaState;
|
||||||
using LuaCSFunction = UniLua.CSharpFunctionDelegate;
|
using LuaCSFunction = UniLua.CSharpFunctionDelegate;
|
||||||
#else
|
#else
|
||||||
using LuaAPI = XLua.LuaDLL.Lua;
|
using LuaAPI = XLua.LuaDLL.Lua;
|
||||||
using RealStatePtr = System.IntPtr;
|
using RealStatePtr = System.IntPtr;
|
||||||
using LuaCSFunction = XLua.LuaDLL.lua_CSFunction;
|
using LuaCSFunction = XLua.LuaDLL.lua_CSFunction;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
using XLua;
|
using XLua;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
|
||||||
|
|
||||||
namespace XLua.CSObjectWrap
|
namespace XLua.CSObjectWrap
|
||||||
{
|
{
|
||||||
using Utils = XLua.Utils;
|
using Utils = XLua.Utils;
|
||||||
public class UnityEnginePurchasingSecurityAppleTangleWrap
|
public class UnityEnginePurchasingSecurityAppleTangleWrap
|
||||||
{
|
{
|
||||||
public static void __Register(RealStatePtr L)
|
public static void __Register(RealStatePtr L)
|
||||||
{
|
{
|
||||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||||
System.Type type = typeof(UnityEngine.Purchasing.Security.AppleTangle);
|
System.Type type = typeof(UnityEngine.Purchasing.Security.AppleTangle);
|
||||||
Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0);
|
Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Utils.EndObjectRegister(type, L, translator, null, null,
|
Utils.EndObjectRegister(type, L, translator, null, null,
|
||||||
null, null, null);
|
null, null, null);
|
||||||
|
|
||||||
Utils.BeginClassRegister(type, L, __CreateInstance, 3, 0, 0);
|
Utils.BeginClassRegister(type, L, __CreateInstance, 3, 0, 0);
|
||||||
Utils.RegisterFunc(L, Utils.CLS_IDX, "Data", _m_Data_xlua_st_);
|
Utils.RegisterFunc(L, Utils.CLS_IDX, "Data", _m_Data_xlua_st_);
|
||||||
|
|
||||||
|
|
||||||
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "IsPopulated", UnityEngine.Purchasing.Security.AppleTangle.IsPopulated);
|
Utils.RegisterObject(L, translator, Utils.CLS_IDX, "IsPopulated", UnityEngine.Purchasing.Security.AppleTangle.IsPopulated);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Utils.EndClassRegister(type, L, translator);
|
Utils.EndClassRegister(type, L, translator);
|
||||||
}
|
}
|
||||||
|
|
||||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||||
static int __CreateInstance(RealStatePtr L)
|
static int __CreateInstance(RealStatePtr L)
|
||||||
{
|
{
|
||||||
|
|
||||||
try {
|
try {
|
||||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||||
if(LuaAPI.lua_gettop(L) == 1)
|
if(LuaAPI.lua_gettop(L) == 1)
|
||||||
{
|
{
|
||||||
|
|
||||||
var gen_ret = new UnityEngine.Purchasing.Security.AppleTangle();
|
var gen_ret = new UnityEngine.Purchasing.Security.AppleTangle();
|
||||||
translator.Push(L, gen_ret);
|
translator.Push(L, gen_ret);
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
catch(System.Exception gen_e) {
|
catch(System.Exception gen_e) {
|
||||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||||
}
|
}
|
||||||
return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Purchasing.Security.AppleTangle constructor!");
|
return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Purchasing.Security.AppleTangle constructor!");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||||
static int _m_Data_xlua_st_(RealStatePtr L)
|
static int _m_Data_xlua_st_(RealStatePtr L)
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|
||||||
var gen_ret = UnityEngine.Purchasing.Security.AppleTangle.Data( );
|
var gen_ret = UnityEngine.Purchasing.Security.AppleTangle.Data( );
|
||||||
LuaAPI.lua_pushstring(L, gen_ret);
|
LuaAPI.lua_pushstring(L, gen_ret);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
} catch(System.Exception gen_e) {
|
} catch(System.Exception gen_e) {
|
||||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@ -1,352 +1,352 @@
|
|||||||
#if USE_UNI_LUA
|
#if USE_UNI_LUA
|
||||||
using LuaAPI = UniLua.Lua;
|
using LuaAPI = UniLua.Lua;
|
||||||
using RealStatePtr = UniLua.ILuaState;
|
using RealStatePtr = UniLua.ILuaState;
|
||||||
using LuaCSFunction = UniLua.CSharpFunctionDelegate;
|
using LuaCSFunction = UniLua.CSharpFunctionDelegate;
|
||||||
#else
|
#else
|
||||||
using LuaAPI = XLua.LuaDLL.Lua;
|
using LuaAPI = XLua.LuaDLL.Lua;
|
||||||
using RealStatePtr = System.IntPtr;
|
using RealStatePtr = System.IntPtr;
|
||||||
using LuaCSFunction = XLua.LuaDLL.lua_CSFunction;
|
using LuaCSFunction = XLua.LuaDLL.lua_CSFunction;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
using XLua;
|
using XLua;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
|
||||||
|
|
||||||
namespace XLua.CSObjectWrap
|
namespace XLua.CSObjectWrap
|
||||||
{
|
{
|
||||||
using Utils = XLua.Utils;
|
using Utils = XLua.Utils;
|
||||||
public class UnityEngineRaycastHitWrap
|
public class UnityEngineRaycastHitWrap
|
||||||
{
|
{
|
||||||
public static void __Register(RealStatePtr L)
|
public static void __Register(RealStatePtr L)
|
||||||
{
|
{
|
||||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||||
System.Type type = typeof(UnityEngine.RaycastHit);
|
System.Type type = typeof(UnityEngine.RaycastHit);
|
||||||
Utils.BeginObjectRegister(type, L, translator, 0, 0, 13, 4);
|
Utils.BeginObjectRegister(type, L, translator, 0, 0, 13, 4);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Utils.RegisterFunc(L, Utils.GETTER_IDX, "collider", _g_get_collider);
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "collider", _g_get_collider);
|
||||||
Utils.RegisterFunc(L, Utils.GETTER_IDX, "colliderInstanceID", _g_get_colliderInstanceID);
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "colliderInstanceID", _g_get_colliderInstanceID);
|
||||||
Utils.RegisterFunc(L, Utils.GETTER_IDX, "point", _g_get_point);
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "point", _g_get_point);
|
||||||
Utils.RegisterFunc(L, Utils.GETTER_IDX, "normal", _g_get_normal);
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "normal", _g_get_normal);
|
||||||
Utils.RegisterFunc(L, Utils.GETTER_IDX, "barycentricCoordinate", _g_get_barycentricCoordinate);
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "barycentricCoordinate", _g_get_barycentricCoordinate);
|
||||||
Utils.RegisterFunc(L, Utils.GETTER_IDX, "distance", _g_get_distance);
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "distance", _g_get_distance);
|
||||||
Utils.RegisterFunc(L, Utils.GETTER_IDX, "triangleIndex", _g_get_triangleIndex);
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "triangleIndex", _g_get_triangleIndex);
|
||||||
Utils.RegisterFunc(L, Utils.GETTER_IDX, "textureCoord", _g_get_textureCoord);
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "textureCoord", _g_get_textureCoord);
|
||||||
Utils.RegisterFunc(L, Utils.GETTER_IDX, "textureCoord2", _g_get_textureCoord2);
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "textureCoord2", _g_get_textureCoord2);
|
||||||
Utils.RegisterFunc(L, Utils.GETTER_IDX, "transform", _g_get_transform);
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "transform", _g_get_transform);
|
||||||
Utils.RegisterFunc(L, Utils.GETTER_IDX, "rigidbody", _g_get_rigidbody);
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "rigidbody", _g_get_rigidbody);
|
||||||
Utils.RegisterFunc(L, Utils.GETTER_IDX, "articulationBody", _g_get_articulationBody);
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "articulationBody", _g_get_articulationBody);
|
||||||
Utils.RegisterFunc(L, Utils.GETTER_IDX, "lightmapCoord", _g_get_lightmapCoord);
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "lightmapCoord", _g_get_lightmapCoord);
|
||||||
|
|
||||||
Utils.RegisterFunc(L, Utils.SETTER_IDX, "point", _s_set_point);
|
Utils.RegisterFunc(L, Utils.SETTER_IDX, "point", _s_set_point);
|
||||||
Utils.RegisterFunc(L, Utils.SETTER_IDX, "normal", _s_set_normal);
|
Utils.RegisterFunc(L, Utils.SETTER_IDX, "normal", _s_set_normal);
|
||||||
Utils.RegisterFunc(L, Utils.SETTER_IDX, "barycentricCoordinate", _s_set_barycentricCoordinate);
|
Utils.RegisterFunc(L, Utils.SETTER_IDX, "barycentricCoordinate", _s_set_barycentricCoordinate);
|
||||||
Utils.RegisterFunc(L, Utils.SETTER_IDX, "distance", _s_set_distance);
|
Utils.RegisterFunc(L, Utils.SETTER_IDX, "distance", _s_set_distance);
|
||||||
|
|
||||||
|
|
||||||
Utils.EndObjectRegister(type, L, translator, null, null,
|
Utils.EndObjectRegister(type, L, translator, null, null,
|
||||||
null, null, null);
|
null, null, null);
|
||||||
|
|
||||||
Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0);
|
Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Utils.EndClassRegister(type, L, translator);
|
Utils.EndClassRegister(type, L, translator);
|
||||||
}
|
}
|
||||||
|
|
||||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||||
static int __CreateInstance(RealStatePtr L)
|
static int __CreateInstance(RealStatePtr L)
|
||||||
{
|
{
|
||||||
|
|
||||||
try {
|
try {
|
||||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||||
|
|
||||||
if (LuaAPI.lua_gettop(L) == 1)
|
if (LuaAPI.lua_gettop(L) == 1)
|
||||||
{
|
{
|
||||||
translator.Push(L, default(UnityEngine.RaycastHit));
|
translator.Push(L, default(UnityEngine.RaycastHit));
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
catch(System.Exception gen_e) {
|
catch(System.Exception gen_e) {
|
||||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||||
}
|
}
|
||||||
return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.RaycastHit constructor!");
|
return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.RaycastHit constructor!");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||||
static int _g_get_collider(RealStatePtr L)
|
static int _g_get_collider(RealStatePtr L)
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||||
|
|
||||||
UnityEngine.RaycastHit gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
|
UnityEngine.RaycastHit gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
|
||||||
translator.Push(L, gen_to_be_invoked.collider);
|
translator.Push(L, gen_to_be_invoked.collider);
|
||||||
} catch(System.Exception gen_e) {
|
} catch(System.Exception gen_e) {
|
||||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||||
}
|
}
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||||
static int _g_get_colliderInstanceID(RealStatePtr L)
|
static int _g_get_colliderInstanceID(RealStatePtr L)
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||||
|
|
||||||
UnityEngine.RaycastHit gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
|
UnityEngine.RaycastHit gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
|
||||||
LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.colliderInstanceID);
|
LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.colliderInstanceID);
|
||||||
} catch(System.Exception gen_e) {
|
} catch(System.Exception gen_e) {
|
||||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||||
}
|
}
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||||
static int _g_get_point(RealStatePtr L)
|
static int _g_get_point(RealStatePtr L)
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||||
|
|
||||||
UnityEngine.RaycastHit gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
|
UnityEngine.RaycastHit gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
|
||||||
translator.PushUnityEngineVector3(L, gen_to_be_invoked.point);
|
translator.PushUnityEngineVector3(L, gen_to_be_invoked.point);
|
||||||
} catch(System.Exception gen_e) {
|
} catch(System.Exception gen_e) {
|
||||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||||
}
|
}
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||||
static int _g_get_normal(RealStatePtr L)
|
static int _g_get_normal(RealStatePtr L)
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||||
|
|
||||||
UnityEngine.RaycastHit gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
|
UnityEngine.RaycastHit gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
|
||||||
translator.PushUnityEngineVector3(L, gen_to_be_invoked.normal);
|
translator.PushUnityEngineVector3(L, gen_to_be_invoked.normal);
|
||||||
} catch(System.Exception gen_e) {
|
} catch(System.Exception gen_e) {
|
||||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||||
}
|
}
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||||
static int _g_get_barycentricCoordinate(RealStatePtr L)
|
static int _g_get_barycentricCoordinate(RealStatePtr L)
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||||
|
|
||||||
UnityEngine.RaycastHit gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
|
UnityEngine.RaycastHit gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
|
||||||
translator.PushUnityEngineVector3(L, gen_to_be_invoked.barycentricCoordinate);
|
translator.PushUnityEngineVector3(L, gen_to_be_invoked.barycentricCoordinate);
|
||||||
} catch(System.Exception gen_e) {
|
} catch(System.Exception gen_e) {
|
||||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||||
}
|
}
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||||
static int _g_get_distance(RealStatePtr L)
|
static int _g_get_distance(RealStatePtr L)
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||||
|
|
||||||
UnityEngine.RaycastHit gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
|
UnityEngine.RaycastHit gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
|
||||||
LuaAPI.lua_pushnumber(L, gen_to_be_invoked.distance);
|
LuaAPI.lua_pushnumber(L, gen_to_be_invoked.distance);
|
||||||
} catch(System.Exception gen_e) {
|
} catch(System.Exception gen_e) {
|
||||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||||
}
|
}
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||||
static int _g_get_triangleIndex(RealStatePtr L)
|
static int _g_get_triangleIndex(RealStatePtr L)
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||||
|
|
||||||
UnityEngine.RaycastHit gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
|
UnityEngine.RaycastHit gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
|
||||||
LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.triangleIndex);
|
LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.triangleIndex);
|
||||||
} catch(System.Exception gen_e) {
|
} catch(System.Exception gen_e) {
|
||||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||||
}
|
}
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||||
static int _g_get_textureCoord(RealStatePtr L)
|
static int _g_get_textureCoord(RealStatePtr L)
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||||
|
|
||||||
UnityEngine.RaycastHit gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
|
UnityEngine.RaycastHit gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
|
||||||
translator.PushUnityEngineVector2(L, gen_to_be_invoked.textureCoord);
|
translator.PushUnityEngineVector2(L, gen_to_be_invoked.textureCoord);
|
||||||
} catch(System.Exception gen_e) {
|
} catch(System.Exception gen_e) {
|
||||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||||
}
|
}
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||||
static int _g_get_textureCoord2(RealStatePtr L)
|
static int _g_get_textureCoord2(RealStatePtr L)
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||||
|
|
||||||
UnityEngine.RaycastHit gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
|
UnityEngine.RaycastHit gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
|
||||||
translator.PushUnityEngineVector2(L, gen_to_be_invoked.textureCoord2);
|
translator.PushUnityEngineVector2(L, gen_to_be_invoked.textureCoord2);
|
||||||
} catch(System.Exception gen_e) {
|
} catch(System.Exception gen_e) {
|
||||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||||
}
|
}
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||||
static int _g_get_transform(RealStatePtr L)
|
static int _g_get_transform(RealStatePtr L)
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||||
|
|
||||||
UnityEngine.RaycastHit gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
|
UnityEngine.RaycastHit gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
|
||||||
translator.Push(L, gen_to_be_invoked.transform);
|
translator.Push(L, gen_to_be_invoked.transform);
|
||||||
} catch(System.Exception gen_e) {
|
} catch(System.Exception gen_e) {
|
||||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||||
}
|
}
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||||
static int _g_get_rigidbody(RealStatePtr L)
|
static int _g_get_rigidbody(RealStatePtr L)
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||||
|
|
||||||
UnityEngine.RaycastHit gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
|
UnityEngine.RaycastHit gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
|
||||||
translator.Push(L, gen_to_be_invoked.rigidbody);
|
translator.Push(L, gen_to_be_invoked.rigidbody);
|
||||||
} catch(System.Exception gen_e) {
|
} catch(System.Exception gen_e) {
|
||||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||||
}
|
}
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||||
static int _g_get_articulationBody(RealStatePtr L)
|
static int _g_get_articulationBody(RealStatePtr L)
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||||
|
|
||||||
UnityEngine.RaycastHit gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
|
UnityEngine.RaycastHit gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
|
||||||
translator.Push(L, gen_to_be_invoked.articulationBody);
|
translator.Push(L, gen_to_be_invoked.articulationBody);
|
||||||
} catch(System.Exception gen_e) {
|
} catch(System.Exception gen_e) {
|
||||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||||
}
|
}
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||||
static int _g_get_lightmapCoord(RealStatePtr L)
|
static int _g_get_lightmapCoord(RealStatePtr L)
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||||
|
|
||||||
UnityEngine.RaycastHit gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
|
UnityEngine.RaycastHit gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
|
||||||
translator.PushUnityEngineVector2(L, gen_to_be_invoked.lightmapCoord);
|
translator.PushUnityEngineVector2(L, gen_to_be_invoked.lightmapCoord);
|
||||||
} catch(System.Exception gen_e) {
|
} catch(System.Exception gen_e) {
|
||||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||||
}
|
}
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||||
static int _s_set_point(RealStatePtr L)
|
static int _s_set_point(RealStatePtr L)
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||||
|
|
||||||
UnityEngine.RaycastHit gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
|
UnityEngine.RaycastHit gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
|
||||||
UnityEngine.Vector3 gen_value;translator.Get(L, 2, out gen_value);
|
UnityEngine.Vector3 gen_value;translator.Get(L, 2, out gen_value);
|
||||||
gen_to_be_invoked.point = gen_value;
|
gen_to_be_invoked.point = gen_value;
|
||||||
|
|
||||||
translator.Update(L, 1, gen_to_be_invoked);
|
translator.Update(L, 1, gen_to_be_invoked);
|
||||||
|
|
||||||
} catch(System.Exception gen_e) {
|
} catch(System.Exception gen_e) {
|
||||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||||
static int _s_set_normal(RealStatePtr L)
|
static int _s_set_normal(RealStatePtr L)
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||||
|
|
||||||
UnityEngine.RaycastHit gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
|
UnityEngine.RaycastHit gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
|
||||||
UnityEngine.Vector3 gen_value;translator.Get(L, 2, out gen_value);
|
UnityEngine.Vector3 gen_value;translator.Get(L, 2, out gen_value);
|
||||||
gen_to_be_invoked.normal = gen_value;
|
gen_to_be_invoked.normal = gen_value;
|
||||||
|
|
||||||
translator.Update(L, 1, gen_to_be_invoked);
|
translator.Update(L, 1, gen_to_be_invoked);
|
||||||
|
|
||||||
} catch(System.Exception gen_e) {
|
} catch(System.Exception gen_e) {
|
||||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||||
static int _s_set_barycentricCoordinate(RealStatePtr L)
|
static int _s_set_barycentricCoordinate(RealStatePtr L)
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||||
|
|
||||||
UnityEngine.RaycastHit gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
|
UnityEngine.RaycastHit gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
|
||||||
UnityEngine.Vector3 gen_value;translator.Get(L, 2, out gen_value);
|
UnityEngine.Vector3 gen_value;translator.Get(L, 2, out gen_value);
|
||||||
gen_to_be_invoked.barycentricCoordinate = gen_value;
|
gen_to_be_invoked.barycentricCoordinate = gen_value;
|
||||||
|
|
||||||
translator.Update(L, 1, gen_to_be_invoked);
|
translator.Update(L, 1, gen_to_be_invoked);
|
||||||
|
|
||||||
} catch(System.Exception gen_e) {
|
} catch(System.Exception gen_e) {
|
||||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||||
static int _s_set_distance(RealStatePtr L)
|
static int _s_set_distance(RealStatePtr L)
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||||
|
|
||||||
UnityEngine.RaycastHit gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
|
UnityEngine.RaycastHit gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
|
||||||
gen_to_be_invoked.distance = (float)LuaAPI.lua_tonumber(L, 2);
|
gen_to_be_invoked.distance = (float)LuaAPI.lua_tonumber(L, 2);
|
||||||
|
|
||||||
translator.Update(L, 1, gen_to_be_invoked);
|
translator.Update(L, 1, gen_to_be_invoked);
|
||||||
|
|
||||||
} catch(System.Exception gen_e) {
|
} catch(System.Exception gen_e) {
|
||||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -1,406 +1,406 @@
|
|||||||
#if USE_UNI_LUA
|
#if USE_UNI_LUA
|
||||||
using LuaAPI = UniLua.Lua;
|
using LuaAPI = UniLua.Lua;
|
||||||
using RealStatePtr = UniLua.ILuaState;
|
using RealStatePtr = UniLua.ILuaState;
|
||||||
using LuaCSFunction = UniLua.CSharpFunctionDelegate;
|
using LuaCSFunction = UniLua.CSharpFunctionDelegate;
|
||||||
#else
|
#else
|
||||||
using LuaAPI = XLua.LuaDLL.Lua;
|
using LuaAPI = XLua.LuaDLL.Lua;
|
||||||
using RealStatePtr = System.IntPtr;
|
using RealStatePtr = System.IntPtr;
|
||||||
using LuaCSFunction = XLua.LuaDLL.lua_CSFunction;
|
using LuaCSFunction = XLua.LuaDLL.lua_CSFunction;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
using XLua;
|
using XLua;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
|
||||||
|
|
||||||
namespace XLua.CSObjectWrap
|
namespace XLua.CSObjectWrap
|
||||||
{
|
{
|
||||||
using Utils = XLua.Utils;
|
using Utils = XLua.Utils;
|
||||||
public class UnityEngineSceneManagementSceneWrap
|
public class UnityEngineSceneManagementSceneWrap
|
||||||
{
|
{
|
||||||
public static void __Register(RealStatePtr L)
|
public static void __Register(RealStatePtr L)
|
||||||
{
|
{
|
||||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||||
System.Type type = typeof(UnityEngine.SceneManagement.Scene);
|
System.Type type = typeof(UnityEngine.SceneManagement.Scene);
|
||||||
Utils.BeginObjectRegister(type, L, translator, 1, 4, 8, 2);
|
Utils.BeginObjectRegister(type, L, translator, 1, 4, 8, 2);
|
||||||
Utils.RegisterFunc(L, Utils.OBJ_META_IDX, "__eq", __EqMeta);
|
Utils.RegisterFunc(L, Utils.OBJ_META_IDX, "__eq", __EqMeta);
|
||||||
|
|
||||||
Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsValid", _m_IsValid);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "IsValid", _m_IsValid);
|
||||||
Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetRootGameObjects", _m_GetRootGameObjects);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetRootGameObjects", _m_GetRootGameObjects);
|
||||||
Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetHashCode", _m_GetHashCode);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetHashCode", _m_GetHashCode);
|
||||||
Utils.RegisterFunc(L, Utils.METHOD_IDX, "Equals", _m_Equals);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "Equals", _m_Equals);
|
||||||
|
|
||||||
|
|
||||||
Utils.RegisterFunc(L, Utils.GETTER_IDX, "handle", _g_get_handle);
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "handle", _g_get_handle);
|
||||||
Utils.RegisterFunc(L, Utils.GETTER_IDX, "path", _g_get_path);
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "path", _g_get_path);
|
||||||
Utils.RegisterFunc(L, Utils.GETTER_IDX, "name", _g_get_name);
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "name", _g_get_name);
|
||||||
Utils.RegisterFunc(L, Utils.GETTER_IDX, "isLoaded", _g_get_isLoaded);
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "isLoaded", _g_get_isLoaded);
|
||||||
Utils.RegisterFunc(L, Utils.GETTER_IDX, "buildIndex", _g_get_buildIndex);
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "buildIndex", _g_get_buildIndex);
|
||||||
Utils.RegisterFunc(L, Utils.GETTER_IDX, "isDirty", _g_get_isDirty);
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "isDirty", _g_get_isDirty);
|
||||||
Utils.RegisterFunc(L, Utils.GETTER_IDX, "rootCount", _g_get_rootCount);
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "rootCount", _g_get_rootCount);
|
||||||
Utils.RegisterFunc(L, Utils.GETTER_IDX, "isSubScene", _g_get_isSubScene);
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "isSubScene", _g_get_isSubScene);
|
||||||
|
|
||||||
Utils.RegisterFunc(L, Utils.SETTER_IDX, "name", _s_set_name);
|
Utils.RegisterFunc(L, Utils.SETTER_IDX, "name", _s_set_name);
|
||||||
Utils.RegisterFunc(L, Utils.SETTER_IDX, "isSubScene", _s_set_isSubScene);
|
Utils.RegisterFunc(L, Utils.SETTER_IDX, "isSubScene", _s_set_isSubScene);
|
||||||
|
|
||||||
|
|
||||||
Utils.EndObjectRegister(type, L, translator, null, null,
|
Utils.EndObjectRegister(type, L, translator, null, null,
|
||||||
null, null, null);
|
null, null, null);
|
||||||
|
|
||||||
Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0);
|
Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Utils.EndClassRegister(type, L, translator);
|
Utils.EndClassRegister(type, L, translator);
|
||||||
}
|
}
|
||||||
|
|
||||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||||
static int __CreateInstance(RealStatePtr L)
|
static int __CreateInstance(RealStatePtr L)
|
||||||
{
|
{
|
||||||
|
|
||||||
try {
|
try {
|
||||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||||
|
|
||||||
if (LuaAPI.lua_gettop(L) == 1)
|
if (LuaAPI.lua_gettop(L) == 1)
|
||||||
{
|
{
|
||||||
translator.Push(L, default(UnityEngine.SceneManagement.Scene));
|
translator.Push(L, default(UnityEngine.SceneManagement.Scene));
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
catch(System.Exception gen_e) {
|
catch(System.Exception gen_e) {
|
||||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||||
}
|
}
|
||||||
return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.SceneManagement.Scene constructor!");
|
return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.SceneManagement.Scene constructor!");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||||
static int __EqMeta(RealStatePtr L)
|
static int __EqMeta(RealStatePtr L)
|
||||||
{
|
{
|
||||||
|
|
||||||
try {
|
try {
|
||||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||||
|
|
||||||
|
|
||||||
if (translator.Assignable<UnityEngine.SceneManagement.Scene>(L, 1) && translator.Assignable<UnityEngine.SceneManagement.Scene>(L, 2))
|
if (translator.Assignable<UnityEngine.SceneManagement.Scene>(L, 1) && translator.Assignable<UnityEngine.SceneManagement.Scene>(L, 2))
|
||||||
{
|
{
|
||||||
UnityEngine.SceneManagement.Scene leftside;translator.Get(L, 1, out leftside);
|
UnityEngine.SceneManagement.Scene leftside;translator.Get(L, 1, out leftside);
|
||||||
UnityEngine.SceneManagement.Scene rightside;translator.Get(L, 2, out rightside);
|
UnityEngine.SceneManagement.Scene rightside;translator.Get(L, 2, out rightside);
|
||||||
|
|
||||||
LuaAPI.lua_pushboolean(L, leftside == rightside);
|
LuaAPI.lua_pushboolean(L, leftside == rightside);
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
catch(System.Exception gen_e) {
|
catch(System.Exception gen_e) {
|
||||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||||
}
|
}
|
||||||
return LuaAPI.luaL_error(L, "invalid arguments to right hand of == operator, need UnityEngine.SceneManagement.Scene!");
|
return LuaAPI.luaL_error(L, "invalid arguments to right hand of == operator, need UnityEngine.SceneManagement.Scene!");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||||
static int _m_IsValid(RealStatePtr L)
|
static int _m_IsValid(RealStatePtr L)
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
|
|
||||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||||
|
|
||||||
|
|
||||||
UnityEngine.SceneManagement.Scene gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
|
UnityEngine.SceneManagement.Scene gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|
||||||
var gen_ret = gen_to_be_invoked.IsValid( );
|
var gen_ret = gen_to_be_invoked.IsValid( );
|
||||||
LuaAPI.lua_pushboolean(L, gen_ret);
|
LuaAPI.lua_pushboolean(L, gen_ret);
|
||||||
|
|
||||||
|
|
||||||
translator.Update(L, 1, gen_to_be_invoked);
|
translator.Update(L, 1, gen_to_be_invoked);
|
||||||
|
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
} catch(System.Exception gen_e) {
|
} catch(System.Exception gen_e) {
|
||||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||||
static int _m_GetRootGameObjects(RealStatePtr L)
|
static int _m_GetRootGameObjects(RealStatePtr L)
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
|
|
||||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||||
|
|
||||||
|
|
||||||
UnityEngine.SceneManagement.Scene gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
|
UnityEngine.SceneManagement.Scene gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
|
||||||
|
|
||||||
|
|
||||||
int gen_param_count = LuaAPI.lua_gettop(L);
|
int gen_param_count = LuaAPI.lua_gettop(L);
|
||||||
|
|
||||||
if(gen_param_count == 1)
|
if(gen_param_count == 1)
|
||||||
{
|
{
|
||||||
|
|
||||||
var gen_ret = gen_to_be_invoked.GetRootGameObjects( );
|
var gen_ret = gen_to_be_invoked.GetRootGameObjects( );
|
||||||
translator.Push(L, gen_ret);
|
translator.Push(L, gen_ret);
|
||||||
|
|
||||||
|
|
||||||
translator.Update(L, 1, gen_to_be_invoked);
|
translator.Update(L, 1, gen_to_be_invoked);
|
||||||
|
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
if(gen_param_count == 2&& translator.Assignable<System.Collections.Generic.List<UnityEngine.GameObject>>(L, 2))
|
if(gen_param_count == 2&& translator.Assignable<System.Collections.Generic.List<UnityEngine.GameObject>>(L, 2))
|
||||||
{
|
{
|
||||||
System.Collections.Generic.List<UnityEngine.GameObject> _rootGameObjects = (System.Collections.Generic.List<UnityEngine.GameObject>)translator.GetObject(L, 2, typeof(System.Collections.Generic.List<UnityEngine.GameObject>));
|
System.Collections.Generic.List<UnityEngine.GameObject> _rootGameObjects = (System.Collections.Generic.List<UnityEngine.GameObject>)translator.GetObject(L, 2, typeof(System.Collections.Generic.List<UnityEngine.GameObject>));
|
||||||
|
|
||||||
gen_to_be_invoked.GetRootGameObjects( _rootGameObjects );
|
gen_to_be_invoked.GetRootGameObjects( _rootGameObjects );
|
||||||
|
|
||||||
|
|
||||||
translator.Update(L, 1, gen_to_be_invoked);
|
translator.Update(L, 1, gen_to_be_invoked);
|
||||||
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
} catch(System.Exception gen_e) {
|
} catch(System.Exception gen_e) {
|
||||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||||
}
|
}
|
||||||
|
|
||||||
return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.SceneManagement.Scene.GetRootGameObjects!");
|
return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.SceneManagement.Scene.GetRootGameObjects!");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||||
static int _m_GetHashCode(RealStatePtr L)
|
static int _m_GetHashCode(RealStatePtr L)
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
|
|
||||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||||
|
|
||||||
|
|
||||||
UnityEngine.SceneManagement.Scene gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
|
UnityEngine.SceneManagement.Scene gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|
||||||
var gen_ret = gen_to_be_invoked.GetHashCode( );
|
var gen_ret = gen_to_be_invoked.GetHashCode( );
|
||||||
LuaAPI.xlua_pushinteger(L, gen_ret);
|
LuaAPI.xlua_pushinteger(L, gen_ret);
|
||||||
|
|
||||||
|
|
||||||
translator.Update(L, 1, gen_to_be_invoked);
|
translator.Update(L, 1, gen_to_be_invoked);
|
||||||
|
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
} catch(System.Exception gen_e) {
|
} catch(System.Exception gen_e) {
|
||||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||||
static int _m_Equals(RealStatePtr L)
|
static int _m_Equals(RealStatePtr L)
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
|
|
||||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||||
|
|
||||||
|
|
||||||
UnityEngine.SceneManagement.Scene gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
|
UnityEngine.SceneManagement.Scene gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
{
|
{
|
||||||
object _other = translator.GetObject(L, 2, typeof(object));
|
object _other = translator.GetObject(L, 2, typeof(object));
|
||||||
|
|
||||||
var gen_ret = gen_to_be_invoked.Equals( _other );
|
var gen_ret = gen_to_be_invoked.Equals( _other );
|
||||||
LuaAPI.lua_pushboolean(L, gen_ret);
|
LuaAPI.lua_pushboolean(L, gen_ret);
|
||||||
|
|
||||||
|
|
||||||
translator.Update(L, 1, gen_to_be_invoked);
|
translator.Update(L, 1, gen_to_be_invoked);
|
||||||
|
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
} catch(System.Exception gen_e) {
|
} catch(System.Exception gen_e) {
|
||||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||||
static int _g_get_handle(RealStatePtr L)
|
static int _g_get_handle(RealStatePtr L)
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||||
|
|
||||||
UnityEngine.SceneManagement.Scene gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
|
UnityEngine.SceneManagement.Scene gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
|
||||||
LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.handle);
|
LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.handle);
|
||||||
} catch(System.Exception gen_e) {
|
} catch(System.Exception gen_e) {
|
||||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||||
}
|
}
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||||
static int _g_get_path(RealStatePtr L)
|
static int _g_get_path(RealStatePtr L)
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||||
|
|
||||||
UnityEngine.SceneManagement.Scene gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
|
UnityEngine.SceneManagement.Scene gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
|
||||||
LuaAPI.lua_pushstring(L, gen_to_be_invoked.path);
|
LuaAPI.lua_pushstring(L, gen_to_be_invoked.path);
|
||||||
} catch(System.Exception gen_e) {
|
} catch(System.Exception gen_e) {
|
||||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||||
}
|
}
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||||
static int _g_get_name(RealStatePtr L)
|
static int _g_get_name(RealStatePtr L)
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||||
|
|
||||||
UnityEngine.SceneManagement.Scene gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
|
UnityEngine.SceneManagement.Scene gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
|
||||||
LuaAPI.lua_pushstring(L, gen_to_be_invoked.name);
|
LuaAPI.lua_pushstring(L, gen_to_be_invoked.name);
|
||||||
} catch(System.Exception gen_e) {
|
} catch(System.Exception gen_e) {
|
||||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||||
}
|
}
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||||
static int _g_get_isLoaded(RealStatePtr L)
|
static int _g_get_isLoaded(RealStatePtr L)
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||||
|
|
||||||
UnityEngine.SceneManagement.Scene gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
|
UnityEngine.SceneManagement.Scene gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
|
||||||
LuaAPI.lua_pushboolean(L, gen_to_be_invoked.isLoaded);
|
LuaAPI.lua_pushboolean(L, gen_to_be_invoked.isLoaded);
|
||||||
} catch(System.Exception gen_e) {
|
} catch(System.Exception gen_e) {
|
||||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||||
}
|
}
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||||
static int _g_get_buildIndex(RealStatePtr L)
|
static int _g_get_buildIndex(RealStatePtr L)
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||||
|
|
||||||
UnityEngine.SceneManagement.Scene gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
|
UnityEngine.SceneManagement.Scene gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
|
||||||
LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.buildIndex);
|
LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.buildIndex);
|
||||||
} catch(System.Exception gen_e) {
|
} catch(System.Exception gen_e) {
|
||||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||||
}
|
}
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||||
static int _g_get_isDirty(RealStatePtr L)
|
static int _g_get_isDirty(RealStatePtr L)
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||||
|
|
||||||
UnityEngine.SceneManagement.Scene gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
|
UnityEngine.SceneManagement.Scene gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
|
||||||
LuaAPI.lua_pushboolean(L, gen_to_be_invoked.isDirty);
|
LuaAPI.lua_pushboolean(L, gen_to_be_invoked.isDirty);
|
||||||
} catch(System.Exception gen_e) {
|
} catch(System.Exception gen_e) {
|
||||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||||
}
|
}
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||||
static int _g_get_rootCount(RealStatePtr L)
|
static int _g_get_rootCount(RealStatePtr L)
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||||
|
|
||||||
UnityEngine.SceneManagement.Scene gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
|
UnityEngine.SceneManagement.Scene gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
|
||||||
LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.rootCount);
|
LuaAPI.xlua_pushinteger(L, gen_to_be_invoked.rootCount);
|
||||||
} catch(System.Exception gen_e) {
|
} catch(System.Exception gen_e) {
|
||||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||||
}
|
}
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||||
static int _g_get_isSubScene(RealStatePtr L)
|
static int _g_get_isSubScene(RealStatePtr L)
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||||
|
|
||||||
UnityEngine.SceneManagement.Scene gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
|
UnityEngine.SceneManagement.Scene gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
|
||||||
LuaAPI.lua_pushboolean(L, gen_to_be_invoked.isSubScene);
|
LuaAPI.lua_pushboolean(L, gen_to_be_invoked.isSubScene);
|
||||||
} catch(System.Exception gen_e) {
|
} catch(System.Exception gen_e) {
|
||||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||||
}
|
}
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||||
static int _s_set_name(RealStatePtr L)
|
static int _s_set_name(RealStatePtr L)
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||||
|
|
||||||
UnityEngine.SceneManagement.Scene gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
|
UnityEngine.SceneManagement.Scene gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
|
||||||
gen_to_be_invoked.name = LuaAPI.lua_tostring(L, 2);
|
gen_to_be_invoked.name = LuaAPI.lua_tostring(L, 2);
|
||||||
|
|
||||||
translator.Update(L, 1, gen_to_be_invoked);
|
translator.Update(L, 1, gen_to_be_invoked);
|
||||||
|
|
||||||
} catch(System.Exception gen_e) {
|
} catch(System.Exception gen_e) {
|
||||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||||
static int _s_set_isSubScene(RealStatePtr L)
|
static int _s_set_isSubScene(RealStatePtr L)
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||||
|
|
||||||
UnityEngine.SceneManagement.Scene gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
|
UnityEngine.SceneManagement.Scene gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
|
||||||
gen_to_be_invoked.isSubScene = LuaAPI.lua_toboolean(L, 2);
|
gen_to_be_invoked.isSubScene = LuaAPI.lua_toboolean(L, 2);
|
||||||
|
|
||||||
translator.Update(L, 1, gen_to_be_invoked);
|
translator.Update(L, 1, gen_to_be_invoked);
|
||||||
|
|
||||||
} catch(System.Exception gen_e) {
|
} catch(System.Exception gen_e) {
|
||||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@ -23,11 +23,11 @@ namespace XLua.CSObjectWrap
|
|||||||
System.Type type = typeof(UnityEngine.ShaderVariantCollection);
|
System.Type type = typeof(UnityEngine.ShaderVariantCollection);
|
||||||
Utils.BeginObjectRegister(type, L, translator, 0, 5, 3, 0);
|
Utils.BeginObjectRegister(type, L, translator, 0, 5, 3, 0);
|
||||||
|
|
||||||
Utils.RegisterFunc(L, Utils.METHOD_IDX, "Clear", _m_Clear);
|
|
||||||
Utils.RegisterFunc(L, Utils.METHOD_IDX, "WarmUp", _m_WarmUp);
|
|
||||||
Utils.RegisterFunc(L, Utils.METHOD_IDX, "Add", _m_Add);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "Add", _m_Add);
|
||||||
Utils.RegisterFunc(L, Utils.METHOD_IDX, "Remove", _m_Remove);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "Remove", _m_Remove);
|
||||||
Utils.RegisterFunc(L, Utils.METHOD_IDX, "Contains", _m_Contains);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "Contains", _m_Contains);
|
||||||
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "Clear", _m_Clear);
|
||||||
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "WarmUp", _m_WarmUp);
|
||||||
|
|
||||||
|
|
||||||
Utils.RegisterFunc(L, Utils.GETTER_IDX, "shaderCount", _g_get_shaderCount);
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "shaderCount", _g_get_shaderCount);
|
||||||
@ -79,60 +79,6 @@ namespace XLua.CSObjectWrap
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
||||||
static int _m_Clear(RealStatePtr L)
|
|
||||||
{
|
|
||||||
try {
|
|
||||||
|
|
||||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
||||||
|
|
||||||
|
|
||||||
UnityEngine.ShaderVariantCollection gen_to_be_invoked = (UnityEngine.ShaderVariantCollection)translator.FastGetCSObj(L, 1);
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
{
|
|
||||||
|
|
||||||
gen_to_be_invoked.Clear( );
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
} catch(System.Exception gen_e) {
|
|
||||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
|
||||||
static int _m_WarmUp(RealStatePtr L)
|
|
||||||
{
|
|
||||||
try {
|
|
||||||
|
|
||||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
|
||||||
|
|
||||||
|
|
||||||
UnityEngine.ShaderVariantCollection gen_to_be_invoked = (UnityEngine.ShaderVariantCollection)translator.FastGetCSObj(L, 1);
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
{
|
|
||||||
|
|
||||||
gen_to_be_invoked.WarmUp( );
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
} catch(System.Exception gen_e) {
|
|
||||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||||
static int _m_Add(RealStatePtr L)
|
static int _m_Add(RealStatePtr L)
|
||||||
{
|
{
|
||||||
@ -220,6 +166,60 @@ namespace XLua.CSObjectWrap
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||||
|
static int _m_Clear(RealStatePtr L)
|
||||||
|
{
|
||||||
|
try {
|
||||||
|
|
||||||
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||||
|
|
||||||
|
|
||||||
|
UnityEngine.ShaderVariantCollection gen_to_be_invoked = (UnityEngine.ShaderVariantCollection)translator.FastGetCSObj(L, 1);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
{
|
||||||
|
|
||||||
|
gen_to_be_invoked.Clear( );
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
} catch(System.Exception gen_e) {
|
||||||
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||||
|
static int _m_WarmUp(RealStatePtr L)
|
||||||
|
{
|
||||||
|
try {
|
||||||
|
|
||||||
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||||
|
|
||||||
|
|
||||||
|
UnityEngine.ShaderVariantCollection gen_to_be_invoked = (UnityEngine.ShaderVariantCollection)translator.FastGetCSObj(L, 1);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
{
|
||||||
|
|
||||||
|
gen_to_be_invoked.WarmUp( );
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
} catch(System.Exception gen_e) {
|
||||||
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@ -1,84 +1,84 @@
|
|||||||
#if USE_UNI_LUA
|
#if USE_UNI_LUA
|
||||||
using LuaAPI = UniLua.Lua;
|
using LuaAPI = UniLua.Lua;
|
||||||
using RealStatePtr = UniLua.ILuaState;
|
using RealStatePtr = UniLua.ILuaState;
|
||||||
using LuaCSFunction = UniLua.CSharpFunctionDelegate;
|
using LuaCSFunction = UniLua.CSharpFunctionDelegate;
|
||||||
#else
|
#else
|
||||||
using LuaAPI = XLua.LuaDLL.Lua;
|
using LuaAPI = XLua.LuaDLL.Lua;
|
||||||
using RealStatePtr = System.IntPtr;
|
using RealStatePtr = System.IntPtr;
|
||||||
using LuaCSFunction = XLua.LuaDLL.lua_CSFunction;
|
using LuaCSFunction = XLua.LuaDLL.lua_CSFunction;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
using XLua;
|
using XLua;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
|
||||||
|
|
||||||
namespace XLua.CSObjectWrap
|
namespace XLua.CSObjectWrap
|
||||||
{
|
{
|
||||||
using Utils = XLua.Utils;
|
using Utils = XLua.Utils;
|
||||||
public class UnityEngineSignInWithAppleSignInWithAppleEventWrap
|
public class UnityEngineSignInWithAppleSignInWithAppleEventWrap
|
||||||
{
|
{
|
||||||
public static void __Register(RealStatePtr L)
|
public static void __Register(RealStatePtr L)
|
||||||
{
|
{
|
||||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||||
System.Type type = typeof(UnityEngine.SignInWithApple.SignInWithAppleEvent);
|
System.Type type = typeof(UnityEngine.SignInWithApple.SignInWithAppleEvent);
|
||||||
Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0);
|
Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Utils.EndObjectRegister(type, L, translator, null, null,
|
Utils.EndObjectRegister(type, L, translator, null, null,
|
||||||
null, null, null);
|
null, null, null);
|
||||||
|
|
||||||
Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0);
|
Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Utils.EndClassRegister(type, L, translator);
|
Utils.EndClassRegister(type, L, translator);
|
||||||
}
|
}
|
||||||
|
|
||||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||||
static int __CreateInstance(RealStatePtr L)
|
static int __CreateInstance(RealStatePtr L)
|
||||||
{
|
{
|
||||||
|
|
||||||
try {
|
try {
|
||||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||||
if(LuaAPI.lua_gettop(L) == 1)
|
if(LuaAPI.lua_gettop(L) == 1)
|
||||||
{
|
{
|
||||||
|
|
||||||
var gen_ret = new UnityEngine.SignInWithApple.SignInWithAppleEvent();
|
var gen_ret = new UnityEngine.SignInWithApple.SignInWithAppleEvent();
|
||||||
translator.Push(L, gen_ret);
|
translator.Push(L, gen_ret);
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
catch(System.Exception gen_e) {
|
catch(System.Exception gen_e) {
|
||||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||||
}
|
}
|
||||||
return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.SignInWithApple.SignInWithAppleEvent constructor!");
|
return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.SignInWithApple.SignInWithAppleEvent constructor!");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,291 +1,291 @@
|
|||||||
#if USE_UNI_LUA
|
#if USE_UNI_LUA
|
||||||
using LuaAPI = UniLua.Lua;
|
using LuaAPI = UniLua.Lua;
|
||||||
using RealStatePtr = UniLua.ILuaState;
|
using RealStatePtr = UniLua.ILuaState;
|
||||||
using LuaCSFunction = UniLua.CSharpFunctionDelegate;
|
using LuaCSFunction = UniLua.CSharpFunctionDelegate;
|
||||||
#else
|
#else
|
||||||
using LuaAPI = XLua.LuaDLL.Lua;
|
using LuaAPI = XLua.LuaDLL.Lua;
|
||||||
using RealStatePtr = System.IntPtr;
|
using RealStatePtr = System.IntPtr;
|
||||||
using LuaCSFunction = XLua.LuaDLL.lua_CSFunction;
|
using LuaCSFunction = XLua.LuaDLL.lua_CSFunction;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
using XLua;
|
using XLua;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
|
||||||
|
|
||||||
namespace XLua.CSObjectWrap
|
namespace XLua.CSObjectWrap
|
||||||
{
|
{
|
||||||
using Utils = XLua.Utils;
|
using Utils = XLua.Utils;
|
||||||
public class UnityEngineSignInWithAppleSignInWithAppleWrap
|
public class UnityEngineSignInWithAppleSignInWithAppleWrap
|
||||||
{
|
{
|
||||||
public static void __Register(RealStatePtr L)
|
public static void __Register(RealStatePtr L)
|
||||||
{
|
{
|
||||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||||
System.Type type = typeof(UnityEngine.SignInWithApple.SignInWithApple);
|
System.Type type = typeof(UnityEngine.SignInWithApple.SignInWithApple);
|
||||||
Utils.BeginObjectRegister(type, L, translator, 0, 3, 3, 3);
|
Utils.BeginObjectRegister(type, L, translator, 0, 3, 3, 3);
|
||||||
|
|
||||||
Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetCredentialState", _m_GetCredentialState);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetCredentialState", _m_GetCredentialState);
|
||||||
Utils.RegisterFunc(L, Utils.METHOD_IDX, "Login", _m_Login);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "Login", _m_Login);
|
||||||
Utils.RegisterFunc(L, Utils.METHOD_IDX, "Update", _m_Update);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "Update", _m_Update);
|
||||||
|
|
||||||
|
|
||||||
Utils.RegisterFunc(L, Utils.GETTER_IDX, "onLogin", _g_get_onLogin);
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "onLogin", _g_get_onLogin);
|
||||||
Utils.RegisterFunc(L, Utils.GETTER_IDX, "onCredentialState", _g_get_onCredentialState);
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "onCredentialState", _g_get_onCredentialState);
|
||||||
Utils.RegisterFunc(L, Utils.GETTER_IDX, "onError", _g_get_onError);
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "onError", _g_get_onError);
|
||||||
|
|
||||||
Utils.RegisterFunc(L, Utils.SETTER_IDX, "onLogin", _s_set_onLogin);
|
Utils.RegisterFunc(L, Utils.SETTER_IDX, "onLogin", _s_set_onLogin);
|
||||||
Utils.RegisterFunc(L, Utils.SETTER_IDX, "onCredentialState", _s_set_onCredentialState);
|
Utils.RegisterFunc(L, Utils.SETTER_IDX, "onCredentialState", _s_set_onCredentialState);
|
||||||
Utils.RegisterFunc(L, Utils.SETTER_IDX, "onError", _s_set_onError);
|
Utils.RegisterFunc(L, Utils.SETTER_IDX, "onError", _s_set_onError);
|
||||||
|
|
||||||
|
|
||||||
Utils.EndObjectRegister(type, L, translator, null, null,
|
Utils.EndObjectRegister(type, L, translator, null, null,
|
||||||
null, null, null);
|
null, null, null);
|
||||||
|
|
||||||
Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0);
|
Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Utils.EndClassRegister(type, L, translator);
|
Utils.EndClassRegister(type, L, translator);
|
||||||
}
|
}
|
||||||
|
|
||||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||||
static int __CreateInstance(RealStatePtr L)
|
static int __CreateInstance(RealStatePtr L)
|
||||||
{
|
{
|
||||||
|
|
||||||
try {
|
try {
|
||||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||||
if(LuaAPI.lua_gettop(L) == 1)
|
if(LuaAPI.lua_gettop(L) == 1)
|
||||||
{
|
{
|
||||||
|
|
||||||
var gen_ret = new UnityEngine.SignInWithApple.SignInWithApple();
|
var gen_ret = new UnityEngine.SignInWithApple.SignInWithApple();
|
||||||
translator.Push(L, gen_ret);
|
translator.Push(L, gen_ret);
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
catch(System.Exception gen_e) {
|
catch(System.Exception gen_e) {
|
||||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||||
}
|
}
|
||||||
return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.SignInWithApple.SignInWithApple constructor!");
|
return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.SignInWithApple.SignInWithApple constructor!");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||||
static int _m_GetCredentialState(RealStatePtr L)
|
static int _m_GetCredentialState(RealStatePtr L)
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
|
|
||||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||||
|
|
||||||
|
|
||||||
UnityEngine.SignInWithApple.SignInWithApple gen_to_be_invoked = (UnityEngine.SignInWithApple.SignInWithApple)translator.FastGetCSObj(L, 1);
|
UnityEngine.SignInWithApple.SignInWithApple gen_to_be_invoked = (UnityEngine.SignInWithApple.SignInWithApple)translator.FastGetCSObj(L, 1);
|
||||||
|
|
||||||
|
|
||||||
int gen_param_count = LuaAPI.lua_gettop(L);
|
int gen_param_count = LuaAPI.lua_gettop(L);
|
||||||
|
|
||||||
if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING))
|
if(gen_param_count == 2&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING))
|
||||||
{
|
{
|
||||||
string _userID = LuaAPI.lua_tostring(L, 2);
|
string _userID = LuaAPI.lua_tostring(L, 2);
|
||||||
|
|
||||||
gen_to_be_invoked.GetCredentialState( _userID );
|
gen_to_be_invoked.GetCredentialState( _userID );
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& translator.Assignable<UnityEngine.SignInWithApple.SignInWithApple.Callback>(L, 3))
|
if(gen_param_count == 3&& (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)&& translator.Assignable<UnityEngine.SignInWithApple.SignInWithApple.Callback>(L, 3))
|
||||||
{
|
{
|
||||||
string _userID = LuaAPI.lua_tostring(L, 2);
|
string _userID = LuaAPI.lua_tostring(L, 2);
|
||||||
UnityEngine.SignInWithApple.SignInWithApple.Callback _callback = translator.GetDelegate<UnityEngine.SignInWithApple.SignInWithApple.Callback>(L, 3);
|
UnityEngine.SignInWithApple.SignInWithApple.Callback _callback = translator.GetDelegate<UnityEngine.SignInWithApple.SignInWithApple.Callback>(L, 3);
|
||||||
|
|
||||||
gen_to_be_invoked.GetCredentialState( _userID, _callback );
|
gen_to_be_invoked.GetCredentialState( _userID, _callback );
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
} catch(System.Exception gen_e) {
|
} catch(System.Exception gen_e) {
|
||||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||||
}
|
}
|
||||||
|
|
||||||
return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.SignInWithApple.SignInWithApple.GetCredentialState!");
|
return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.SignInWithApple.SignInWithApple.GetCredentialState!");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||||
static int _m_Login(RealStatePtr L)
|
static int _m_Login(RealStatePtr L)
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
|
|
||||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||||
|
|
||||||
|
|
||||||
UnityEngine.SignInWithApple.SignInWithApple gen_to_be_invoked = (UnityEngine.SignInWithApple.SignInWithApple)translator.FastGetCSObj(L, 1);
|
UnityEngine.SignInWithApple.SignInWithApple gen_to_be_invoked = (UnityEngine.SignInWithApple.SignInWithApple)translator.FastGetCSObj(L, 1);
|
||||||
|
|
||||||
|
|
||||||
int gen_param_count = LuaAPI.lua_gettop(L);
|
int gen_param_count = LuaAPI.lua_gettop(L);
|
||||||
|
|
||||||
if(gen_param_count == 1)
|
if(gen_param_count == 1)
|
||||||
{
|
{
|
||||||
|
|
||||||
gen_to_be_invoked.Login( );
|
gen_to_be_invoked.Login( );
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
if(gen_param_count == 2&& translator.Assignable<UnityEngine.SignInWithApple.SignInWithApple.Callback>(L, 2))
|
if(gen_param_count == 2&& translator.Assignable<UnityEngine.SignInWithApple.SignInWithApple.Callback>(L, 2))
|
||||||
{
|
{
|
||||||
UnityEngine.SignInWithApple.SignInWithApple.Callback _callback = translator.GetDelegate<UnityEngine.SignInWithApple.SignInWithApple.Callback>(L, 2);
|
UnityEngine.SignInWithApple.SignInWithApple.Callback _callback = translator.GetDelegate<UnityEngine.SignInWithApple.SignInWithApple.Callback>(L, 2);
|
||||||
|
|
||||||
gen_to_be_invoked.Login( _callback );
|
gen_to_be_invoked.Login( _callback );
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
} catch(System.Exception gen_e) {
|
} catch(System.Exception gen_e) {
|
||||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||||
}
|
}
|
||||||
|
|
||||||
return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.SignInWithApple.SignInWithApple.Login!");
|
return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.SignInWithApple.SignInWithApple.Login!");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||||
static int _m_Update(RealStatePtr L)
|
static int _m_Update(RealStatePtr L)
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
|
|
||||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||||
|
|
||||||
|
|
||||||
UnityEngine.SignInWithApple.SignInWithApple gen_to_be_invoked = (UnityEngine.SignInWithApple.SignInWithApple)translator.FastGetCSObj(L, 1);
|
UnityEngine.SignInWithApple.SignInWithApple gen_to_be_invoked = (UnityEngine.SignInWithApple.SignInWithApple)translator.FastGetCSObj(L, 1);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|
||||||
gen_to_be_invoked.Update( );
|
gen_to_be_invoked.Update( );
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
} catch(System.Exception gen_e) {
|
} catch(System.Exception gen_e) {
|
||||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||||
static int _g_get_onLogin(RealStatePtr L)
|
static int _g_get_onLogin(RealStatePtr L)
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||||
|
|
||||||
UnityEngine.SignInWithApple.SignInWithApple gen_to_be_invoked = (UnityEngine.SignInWithApple.SignInWithApple)translator.FastGetCSObj(L, 1);
|
UnityEngine.SignInWithApple.SignInWithApple gen_to_be_invoked = (UnityEngine.SignInWithApple.SignInWithApple)translator.FastGetCSObj(L, 1);
|
||||||
translator.Push(L, gen_to_be_invoked.onLogin);
|
translator.Push(L, gen_to_be_invoked.onLogin);
|
||||||
} catch(System.Exception gen_e) {
|
} catch(System.Exception gen_e) {
|
||||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||||
}
|
}
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||||
static int _g_get_onCredentialState(RealStatePtr L)
|
static int _g_get_onCredentialState(RealStatePtr L)
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||||
|
|
||||||
UnityEngine.SignInWithApple.SignInWithApple gen_to_be_invoked = (UnityEngine.SignInWithApple.SignInWithApple)translator.FastGetCSObj(L, 1);
|
UnityEngine.SignInWithApple.SignInWithApple gen_to_be_invoked = (UnityEngine.SignInWithApple.SignInWithApple)translator.FastGetCSObj(L, 1);
|
||||||
translator.Push(L, gen_to_be_invoked.onCredentialState);
|
translator.Push(L, gen_to_be_invoked.onCredentialState);
|
||||||
} catch(System.Exception gen_e) {
|
} catch(System.Exception gen_e) {
|
||||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||||
}
|
}
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||||
static int _g_get_onError(RealStatePtr L)
|
static int _g_get_onError(RealStatePtr L)
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||||
|
|
||||||
UnityEngine.SignInWithApple.SignInWithApple gen_to_be_invoked = (UnityEngine.SignInWithApple.SignInWithApple)translator.FastGetCSObj(L, 1);
|
UnityEngine.SignInWithApple.SignInWithApple gen_to_be_invoked = (UnityEngine.SignInWithApple.SignInWithApple)translator.FastGetCSObj(L, 1);
|
||||||
translator.Push(L, gen_to_be_invoked.onError);
|
translator.Push(L, gen_to_be_invoked.onError);
|
||||||
} catch(System.Exception gen_e) {
|
} catch(System.Exception gen_e) {
|
||||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||||
}
|
}
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||||
static int _s_set_onLogin(RealStatePtr L)
|
static int _s_set_onLogin(RealStatePtr L)
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||||
|
|
||||||
UnityEngine.SignInWithApple.SignInWithApple gen_to_be_invoked = (UnityEngine.SignInWithApple.SignInWithApple)translator.FastGetCSObj(L, 1);
|
UnityEngine.SignInWithApple.SignInWithApple gen_to_be_invoked = (UnityEngine.SignInWithApple.SignInWithApple)translator.FastGetCSObj(L, 1);
|
||||||
gen_to_be_invoked.onLogin = (UnityEngine.SignInWithApple.SignInWithAppleEvent)translator.GetObject(L, 2, typeof(UnityEngine.SignInWithApple.SignInWithAppleEvent));
|
gen_to_be_invoked.onLogin = (UnityEngine.SignInWithApple.SignInWithAppleEvent)translator.GetObject(L, 2, typeof(UnityEngine.SignInWithApple.SignInWithAppleEvent));
|
||||||
|
|
||||||
} catch(System.Exception gen_e) {
|
} catch(System.Exception gen_e) {
|
||||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||||
static int _s_set_onCredentialState(RealStatePtr L)
|
static int _s_set_onCredentialState(RealStatePtr L)
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||||
|
|
||||||
UnityEngine.SignInWithApple.SignInWithApple gen_to_be_invoked = (UnityEngine.SignInWithApple.SignInWithApple)translator.FastGetCSObj(L, 1);
|
UnityEngine.SignInWithApple.SignInWithApple gen_to_be_invoked = (UnityEngine.SignInWithApple.SignInWithApple)translator.FastGetCSObj(L, 1);
|
||||||
gen_to_be_invoked.onCredentialState = (UnityEngine.SignInWithApple.SignInWithAppleEvent)translator.GetObject(L, 2, typeof(UnityEngine.SignInWithApple.SignInWithAppleEvent));
|
gen_to_be_invoked.onCredentialState = (UnityEngine.SignInWithApple.SignInWithAppleEvent)translator.GetObject(L, 2, typeof(UnityEngine.SignInWithApple.SignInWithAppleEvent));
|
||||||
|
|
||||||
} catch(System.Exception gen_e) {
|
} catch(System.Exception gen_e) {
|
||||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||||
static int _s_set_onError(RealStatePtr L)
|
static int _s_set_onError(RealStatePtr L)
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||||
|
|
||||||
UnityEngine.SignInWithApple.SignInWithApple gen_to_be_invoked = (UnityEngine.SignInWithApple.SignInWithApple)translator.FastGetCSObj(L, 1);
|
UnityEngine.SignInWithApple.SignInWithApple gen_to_be_invoked = (UnityEngine.SignInWithApple.SignInWithApple)translator.FastGetCSObj(L, 1);
|
||||||
gen_to_be_invoked.onError = (UnityEngine.SignInWithApple.SignInWithAppleEvent)translator.GetObject(L, 2, typeof(UnityEngine.SignInWithApple.SignInWithAppleEvent));
|
gen_to_be_invoked.onError = (UnityEngine.SignInWithApple.SignInWithAppleEvent)translator.GetObject(L, 2, typeof(UnityEngine.SignInWithApple.SignInWithAppleEvent));
|
||||||
|
|
||||||
} catch(System.Exception gen_e) {
|
} catch(System.Exception gen_e) {
|
||||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,183 +1,183 @@
|
|||||||
#if USE_UNI_LUA
|
#if USE_UNI_LUA
|
||||||
using LuaAPI = UniLua.Lua;
|
using LuaAPI = UniLua.Lua;
|
||||||
using RealStatePtr = UniLua.ILuaState;
|
using RealStatePtr = UniLua.ILuaState;
|
||||||
using LuaCSFunction = UniLua.CSharpFunctionDelegate;
|
using LuaCSFunction = UniLua.CSharpFunctionDelegate;
|
||||||
#else
|
#else
|
||||||
using LuaAPI = XLua.LuaDLL.Lua;
|
using LuaAPI = XLua.LuaDLL.Lua;
|
||||||
using RealStatePtr = System.IntPtr;
|
using RealStatePtr = System.IntPtr;
|
||||||
using LuaCSFunction = XLua.LuaDLL.lua_CSFunction;
|
using LuaCSFunction = XLua.LuaDLL.lua_CSFunction;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
using XLua;
|
using XLua;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
|
||||||
|
|
||||||
namespace XLua.CSObjectWrap
|
namespace XLua.CSObjectWrap
|
||||||
{
|
{
|
||||||
using Utils = XLua.Utils;
|
using Utils = XLua.Utils;
|
||||||
public class UnityEngineSignInWithAppleSignInWithAppleCallbackArgsWrap
|
public class UnityEngineSignInWithAppleSignInWithAppleCallbackArgsWrap
|
||||||
{
|
{
|
||||||
public static void __Register(RealStatePtr L)
|
public static void __Register(RealStatePtr L)
|
||||||
{
|
{
|
||||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||||
System.Type type = typeof(UnityEngine.SignInWithApple.SignInWithApple.CallbackArgs);
|
System.Type type = typeof(UnityEngine.SignInWithApple.SignInWithApple.CallbackArgs);
|
||||||
Utils.BeginObjectRegister(type, L, translator, 0, 0, 3, 3);
|
Utils.BeginObjectRegister(type, L, translator, 0, 0, 3, 3);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Utils.RegisterFunc(L, Utils.GETTER_IDX, "credentialState", _g_get_credentialState);
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "credentialState", _g_get_credentialState);
|
||||||
Utils.RegisterFunc(L, Utils.GETTER_IDX, "userInfo", _g_get_userInfo);
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "userInfo", _g_get_userInfo);
|
||||||
Utils.RegisterFunc(L, Utils.GETTER_IDX, "error", _g_get_error);
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "error", _g_get_error);
|
||||||
|
|
||||||
Utils.RegisterFunc(L, Utils.SETTER_IDX, "credentialState", _s_set_credentialState);
|
Utils.RegisterFunc(L, Utils.SETTER_IDX, "credentialState", _s_set_credentialState);
|
||||||
Utils.RegisterFunc(L, Utils.SETTER_IDX, "userInfo", _s_set_userInfo);
|
Utils.RegisterFunc(L, Utils.SETTER_IDX, "userInfo", _s_set_userInfo);
|
||||||
Utils.RegisterFunc(L, Utils.SETTER_IDX, "error", _s_set_error);
|
Utils.RegisterFunc(L, Utils.SETTER_IDX, "error", _s_set_error);
|
||||||
|
|
||||||
|
|
||||||
Utils.EndObjectRegister(type, L, translator, null, null,
|
Utils.EndObjectRegister(type, L, translator, null, null,
|
||||||
null, null, null);
|
null, null, null);
|
||||||
|
|
||||||
Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0);
|
Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Utils.EndClassRegister(type, L, translator);
|
Utils.EndClassRegister(type, L, translator);
|
||||||
}
|
}
|
||||||
|
|
||||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||||
static int __CreateInstance(RealStatePtr L)
|
static int __CreateInstance(RealStatePtr L)
|
||||||
{
|
{
|
||||||
|
|
||||||
try {
|
try {
|
||||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||||
|
|
||||||
if (LuaAPI.lua_gettop(L) == 1)
|
if (LuaAPI.lua_gettop(L) == 1)
|
||||||
{
|
{
|
||||||
translator.Push(L, default(UnityEngine.SignInWithApple.SignInWithApple.CallbackArgs));
|
translator.Push(L, default(UnityEngine.SignInWithApple.SignInWithApple.CallbackArgs));
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
catch(System.Exception gen_e) {
|
catch(System.Exception gen_e) {
|
||||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||||
}
|
}
|
||||||
return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.SignInWithApple.SignInWithApple.CallbackArgs constructor!");
|
return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.SignInWithApple.SignInWithApple.CallbackArgs constructor!");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||||
static int _g_get_credentialState(RealStatePtr L)
|
static int _g_get_credentialState(RealStatePtr L)
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||||
|
|
||||||
UnityEngine.SignInWithApple.SignInWithApple.CallbackArgs gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
|
UnityEngine.SignInWithApple.SignInWithApple.CallbackArgs gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
|
||||||
translator.Push(L, gen_to_be_invoked.credentialState);
|
translator.Push(L, gen_to_be_invoked.credentialState);
|
||||||
} catch(System.Exception gen_e) {
|
} catch(System.Exception gen_e) {
|
||||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||||
}
|
}
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||||
static int _g_get_userInfo(RealStatePtr L)
|
static int _g_get_userInfo(RealStatePtr L)
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||||
|
|
||||||
UnityEngine.SignInWithApple.SignInWithApple.CallbackArgs gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
|
UnityEngine.SignInWithApple.SignInWithApple.CallbackArgs gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
|
||||||
translator.Push(L, gen_to_be_invoked.userInfo);
|
translator.Push(L, gen_to_be_invoked.userInfo);
|
||||||
} catch(System.Exception gen_e) {
|
} catch(System.Exception gen_e) {
|
||||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||||
}
|
}
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||||
static int _g_get_error(RealStatePtr L)
|
static int _g_get_error(RealStatePtr L)
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||||
|
|
||||||
UnityEngine.SignInWithApple.SignInWithApple.CallbackArgs gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
|
UnityEngine.SignInWithApple.SignInWithApple.CallbackArgs gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
|
||||||
LuaAPI.lua_pushstring(L, gen_to_be_invoked.error);
|
LuaAPI.lua_pushstring(L, gen_to_be_invoked.error);
|
||||||
} catch(System.Exception gen_e) {
|
} catch(System.Exception gen_e) {
|
||||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||||
}
|
}
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||||
static int _s_set_credentialState(RealStatePtr L)
|
static int _s_set_credentialState(RealStatePtr L)
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||||
|
|
||||||
UnityEngine.SignInWithApple.SignInWithApple.CallbackArgs gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
|
UnityEngine.SignInWithApple.SignInWithApple.CallbackArgs gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
|
||||||
UnityEngine.SignInWithApple.UserCredentialState gen_value;translator.Get(L, 2, out gen_value);
|
UnityEngine.SignInWithApple.UserCredentialState gen_value;translator.Get(L, 2, out gen_value);
|
||||||
gen_to_be_invoked.credentialState = gen_value;
|
gen_to_be_invoked.credentialState = gen_value;
|
||||||
|
|
||||||
translator.Update(L, 1, gen_to_be_invoked);
|
translator.Update(L, 1, gen_to_be_invoked);
|
||||||
|
|
||||||
} catch(System.Exception gen_e) {
|
} catch(System.Exception gen_e) {
|
||||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||||
static int _s_set_userInfo(RealStatePtr L)
|
static int _s_set_userInfo(RealStatePtr L)
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||||
|
|
||||||
UnityEngine.SignInWithApple.SignInWithApple.CallbackArgs gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
|
UnityEngine.SignInWithApple.SignInWithApple.CallbackArgs gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
|
||||||
UnityEngine.SignInWithApple.UserInfo gen_value;translator.Get(L, 2, out gen_value);
|
UnityEngine.SignInWithApple.UserInfo gen_value;translator.Get(L, 2, out gen_value);
|
||||||
gen_to_be_invoked.userInfo = gen_value;
|
gen_to_be_invoked.userInfo = gen_value;
|
||||||
|
|
||||||
translator.Update(L, 1, gen_to_be_invoked);
|
translator.Update(L, 1, gen_to_be_invoked);
|
||||||
|
|
||||||
} catch(System.Exception gen_e) {
|
} catch(System.Exception gen_e) {
|
||||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||||
static int _s_set_error(RealStatePtr L)
|
static int _s_set_error(RealStatePtr L)
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||||
|
|
||||||
UnityEngine.SignInWithApple.SignInWithApple.CallbackArgs gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
|
UnityEngine.SignInWithApple.SignInWithApple.CallbackArgs gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
|
||||||
gen_to_be_invoked.error = LuaAPI.lua_tostring(L, 2);
|
gen_to_be_invoked.error = LuaAPI.lua_tostring(L, 2);
|
||||||
|
|
||||||
translator.Update(L, 1, gen_to_be_invoked);
|
translator.Update(L, 1, gen_to_be_invoked);
|
||||||
|
|
||||||
} catch(System.Exception gen_e) {
|
} catch(System.Exception gen_e) {
|
||||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,281 +1,281 @@
|
|||||||
#if USE_UNI_LUA
|
#if USE_UNI_LUA
|
||||||
using LuaAPI = UniLua.Lua;
|
using LuaAPI = UniLua.Lua;
|
||||||
using RealStatePtr = UniLua.ILuaState;
|
using RealStatePtr = UniLua.ILuaState;
|
||||||
using LuaCSFunction = UniLua.CSharpFunctionDelegate;
|
using LuaCSFunction = UniLua.CSharpFunctionDelegate;
|
||||||
#else
|
#else
|
||||||
using LuaAPI = XLua.LuaDLL.Lua;
|
using LuaAPI = XLua.LuaDLL.Lua;
|
||||||
using RealStatePtr = System.IntPtr;
|
using RealStatePtr = System.IntPtr;
|
||||||
using LuaCSFunction = XLua.LuaDLL.lua_CSFunction;
|
using LuaCSFunction = XLua.LuaDLL.lua_CSFunction;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
using XLua;
|
using XLua;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
|
||||||
|
|
||||||
namespace XLua.CSObjectWrap
|
namespace XLua.CSObjectWrap
|
||||||
{
|
{
|
||||||
using Utils = XLua.Utils;
|
using Utils = XLua.Utils;
|
||||||
public class UnityEngineSignInWithAppleUserInfoWrap
|
public class UnityEngineSignInWithAppleUserInfoWrap
|
||||||
{
|
{
|
||||||
public static void __Register(RealStatePtr L)
|
public static void __Register(RealStatePtr L)
|
||||||
{
|
{
|
||||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||||
System.Type type = typeof(UnityEngine.SignInWithApple.UserInfo);
|
System.Type type = typeof(UnityEngine.SignInWithApple.UserInfo);
|
||||||
Utils.BeginObjectRegister(type, L, translator, 0, 0, 6, 6);
|
Utils.BeginObjectRegister(type, L, translator, 0, 0, 6, 6);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Utils.RegisterFunc(L, Utils.GETTER_IDX, "userId", _g_get_userId);
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "userId", _g_get_userId);
|
||||||
Utils.RegisterFunc(L, Utils.GETTER_IDX, "email", _g_get_email);
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "email", _g_get_email);
|
||||||
Utils.RegisterFunc(L, Utils.GETTER_IDX, "displayName", _g_get_displayName);
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "displayName", _g_get_displayName);
|
||||||
Utils.RegisterFunc(L, Utils.GETTER_IDX, "idToken", _g_get_idToken);
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "idToken", _g_get_idToken);
|
||||||
Utils.RegisterFunc(L, Utils.GETTER_IDX, "error", _g_get_error);
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "error", _g_get_error);
|
||||||
Utils.RegisterFunc(L, Utils.GETTER_IDX, "userDetectionStatus", _g_get_userDetectionStatus);
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "userDetectionStatus", _g_get_userDetectionStatus);
|
||||||
|
|
||||||
Utils.RegisterFunc(L, Utils.SETTER_IDX, "userId", _s_set_userId);
|
Utils.RegisterFunc(L, Utils.SETTER_IDX, "userId", _s_set_userId);
|
||||||
Utils.RegisterFunc(L, Utils.SETTER_IDX, "email", _s_set_email);
|
Utils.RegisterFunc(L, Utils.SETTER_IDX, "email", _s_set_email);
|
||||||
Utils.RegisterFunc(L, Utils.SETTER_IDX, "displayName", _s_set_displayName);
|
Utils.RegisterFunc(L, Utils.SETTER_IDX, "displayName", _s_set_displayName);
|
||||||
Utils.RegisterFunc(L, Utils.SETTER_IDX, "idToken", _s_set_idToken);
|
Utils.RegisterFunc(L, Utils.SETTER_IDX, "idToken", _s_set_idToken);
|
||||||
Utils.RegisterFunc(L, Utils.SETTER_IDX, "error", _s_set_error);
|
Utils.RegisterFunc(L, Utils.SETTER_IDX, "error", _s_set_error);
|
||||||
Utils.RegisterFunc(L, Utils.SETTER_IDX, "userDetectionStatus", _s_set_userDetectionStatus);
|
Utils.RegisterFunc(L, Utils.SETTER_IDX, "userDetectionStatus", _s_set_userDetectionStatus);
|
||||||
|
|
||||||
|
|
||||||
Utils.EndObjectRegister(type, L, translator, null, null,
|
Utils.EndObjectRegister(type, L, translator, null, null,
|
||||||
null, null, null);
|
null, null, null);
|
||||||
|
|
||||||
Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0);
|
Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Utils.EndClassRegister(type, L, translator);
|
Utils.EndClassRegister(type, L, translator);
|
||||||
}
|
}
|
||||||
|
|
||||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||||
static int __CreateInstance(RealStatePtr L)
|
static int __CreateInstance(RealStatePtr L)
|
||||||
{
|
{
|
||||||
|
|
||||||
try {
|
try {
|
||||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||||
|
|
||||||
if (LuaAPI.lua_gettop(L) == 1)
|
if (LuaAPI.lua_gettop(L) == 1)
|
||||||
{
|
{
|
||||||
translator.Push(L, default(UnityEngine.SignInWithApple.UserInfo));
|
translator.Push(L, default(UnityEngine.SignInWithApple.UserInfo));
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
catch(System.Exception gen_e) {
|
catch(System.Exception gen_e) {
|
||||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||||
}
|
}
|
||||||
return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.SignInWithApple.UserInfo constructor!");
|
return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.SignInWithApple.UserInfo constructor!");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||||
static int _g_get_userId(RealStatePtr L)
|
static int _g_get_userId(RealStatePtr L)
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||||
|
|
||||||
UnityEngine.SignInWithApple.UserInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
|
UnityEngine.SignInWithApple.UserInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
|
||||||
LuaAPI.lua_pushstring(L, gen_to_be_invoked.userId);
|
LuaAPI.lua_pushstring(L, gen_to_be_invoked.userId);
|
||||||
} catch(System.Exception gen_e) {
|
} catch(System.Exception gen_e) {
|
||||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||||
}
|
}
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||||
static int _g_get_email(RealStatePtr L)
|
static int _g_get_email(RealStatePtr L)
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||||
|
|
||||||
UnityEngine.SignInWithApple.UserInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
|
UnityEngine.SignInWithApple.UserInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
|
||||||
LuaAPI.lua_pushstring(L, gen_to_be_invoked.email);
|
LuaAPI.lua_pushstring(L, gen_to_be_invoked.email);
|
||||||
} catch(System.Exception gen_e) {
|
} catch(System.Exception gen_e) {
|
||||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||||
}
|
}
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||||
static int _g_get_displayName(RealStatePtr L)
|
static int _g_get_displayName(RealStatePtr L)
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||||
|
|
||||||
UnityEngine.SignInWithApple.UserInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
|
UnityEngine.SignInWithApple.UserInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
|
||||||
LuaAPI.lua_pushstring(L, gen_to_be_invoked.displayName);
|
LuaAPI.lua_pushstring(L, gen_to_be_invoked.displayName);
|
||||||
} catch(System.Exception gen_e) {
|
} catch(System.Exception gen_e) {
|
||||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||||
}
|
}
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||||
static int _g_get_idToken(RealStatePtr L)
|
static int _g_get_idToken(RealStatePtr L)
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||||
|
|
||||||
UnityEngine.SignInWithApple.UserInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
|
UnityEngine.SignInWithApple.UserInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
|
||||||
LuaAPI.lua_pushstring(L, gen_to_be_invoked.idToken);
|
LuaAPI.lua_pushstring(L, gen_to_be_invoked.idToken);
|
||||||
} catch(System.Exception gen_e) {
|
} catch(System.Exception gen_e) {
|
||||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||||
}
|
}
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||||
static int _g_get_error(RealStatePtr L)
|
static int _g_get_error(RealStatePtr L)
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||||
|
|
||||||
UnityEngine.SignInWithApple.UserInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
|
UnityEngine.SignInWithApple.UserInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
|
||||||
LuaAPI.lua_pushstring(L, gen_to_be_invoked.error);
|
LuaAPI.lua_pushstring(L, gen_to_be_invoked.error);
|
||||||
} catch(System.Exception gen_e) {
|
} catch(System.Exception gen_e) {
|
||||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||||
}
|
}
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||||
static int _g_get_userDetectionStatus(RealStatePtr L)
|
static int _g_get_userDetectionStatus(RealStatePtr L)
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||||
|
|
||||||
UnityEngine.SignInWithApple.UserInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
|
UnityEngine.SignInWithApple.UserInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
|
||||||
translator.Push(L, gen_to_be_invoked.userDetectionStatus);
|
translator.Push(L, gen_to_be_invoked.userDetectionStatus);
|
||||||
} catch(System.Exception gen_e) {
|
} catch(System.Exception gen_e) {
|
||||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||||
}
|
}
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||||
static int _s_set_userId(RealStatePtr L)
|
static int _s_set_userId(RealStatePtr L)
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||||
|
|
||||||
UnityEngine.SignInWithApple.UserInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
|
UnityEngine.SignInWithApple.UserInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
|
||||||
gen_to_be_invoked.userId = LuaAPI.lua_tostring(L, 2);
|
gen_to_be_invoked.userId = LuaAPI.lua_tostring(L, 2);
|
||||||
|
|
||||||
translator.Update(L, 1, gen_to_be_invoked);
|
translator.Update(L, 1, gen_to_be_invoked);
|
||||||
|
|
||||||
} catch(System.Exception gen_e) {
|
} catch(System.Exception gen_e) {
|
||||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||||
static int _s_set_email(RealStatePtr L)
|
static int _s_set_email(RealStatePtr L)
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||||
|
|
||||||
UnityEngine.SignInWithApple.UserInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
|
UnityEngine.SignInWithApple.UserInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
|
||||||
gen_to_be_invoked.email = LuaAPI.lua_tostring(L, 2);
|
gen_to_be_invoked.email = LuaAPI.lua_tostring(L, 2);
|
||||||
|
|
||||||
translator.Update(L, 1, gen_to_be_invoked);
|
translator.Update(L, 1, gen_to_be_invoked);
|
||||||
|
|
||||||
} catch(System.Exception gen_e) {
|
} catch(System.Exception gen_e) {
|
||||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||||
static int _s_set_displayName(RealStatePtr L)
|
static int _s_set_displayName(RealStatePtr L)
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||||
|
|
||||||
UnityEngine.SignInWithApple.UserInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
|
UnityEngine.SignInWithApple.UserInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
|
||||||
gen_to_be_invoked.displayName = LuaAPI.lua_tostring(L, 2);
|
gen_to_be_invoked.displayName = LuaAPI.lua_tostring(L, 2);
|
||||||
|
|
||||||
translator.Update(L, 1, gen_to_be_invoked);
|
translator.Update(L, 1, gen_to_be_invoked);
|
||||||
|
|
||||||
} catch(System.Exception gen_e) {
|
} catch(System.Exception gen_e) {
|
||||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||||
static int _s_set_idToken(RealStatePtr L)
|
static int _s_set_idToken(RealStatePtr L)
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||||
|
|
||||||
UnityEngine.SignInWithApple.UserInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
|
UnityEngine.SignInWithApple.UserInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
|
||||||
gen_to_be_invoked.idToken = LuaAPI.lua_tostring(L, 2);
|
gen_to_be_invoked.idToken = LuaAPI.lua_tostring(L, 2);
|
||||||
|
|
||||||
translator.Update(L, 1, gen_to_be_invoked);
|
translator.Update(L, 1, gen_to_be_invoked);
|
||||||
|
|
||||||
} catch(System.Exception gen_e) {
|
} catch(System.Exception gen_e) {
|
||||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||||
static int _s_set_error(RealStatePtr L)
|
static int _s_set_error(RealStatePtr L)
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||||
|
|
||||||
UnityEngine.SignInWithApple.UserInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
|
UnityEngine.SignInWithApple.UserInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
|
||||||
gen_to_be_invoked.error = LuaAPI.lua_tostring(L, 2);
|
gen_to_be_invoked.error = LuaAPI.lua_tostring(L, 2);
|
||||||
|
|
||||||
translator.Update(L, 1, gen_to_be_invoked);
|
translator.Update(L, 1, gen_to_be_invoked);
|
||||||
|
|
||||||
} catch(System.Exception gen_e) {
|
} catch(System.Exception gen_e) {
|
||||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||||
static int _s_set_userDetectionStatus(RealStatePtr L)
|
static int _s_set_userDetectionStatus(RealStatePtr L)
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||||
|
|
||||||
UnityEngine.SignInWithApple.UserInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
|
UnityEngine.SignInWithApple.UserInfo gen_to_be_invoked;translator.Get(L, 1, out gen_to_be_invoked);
|
||||||
UnityEngine.SignInWithApple.UserDetectionStatus gen_value;translator.Get(L, 2, out gen_value);
|
UnityEngine.SignInWithApple.UserDetectionStatus gen_value;translator.Get(L, 2, out gen_value);
|
||||||
gen_to_be_invoked.userDetectionStatus = gen_value;
|
gen_to_be_invoked.userDetectionStatus = gen_value;
|
||||||
|
|
||||||
translator.Update(L, 1, gen_to_be_invoked);
|
translator.Update(L, 1, gen_to_be_invoked);
|
||||||
|
|
||||||
} catch(System.Exception gen_e) {
|
} catch(System.Exception gen_e) {
|
||||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,496 +1,496 @@
|
|||||||
#if USE_UNI_LUA
|
#if USE_UNI_LUA
|
||||||
using LuaAPI = UniLua.Lua;
|
using LuaAPI = UniLua.Lua;
|
||||||
using RealStatePtr = UniLua.ILuaState;
|
using RealStatePtr = UniLua.ILuaState;
|
||||||
using LuaCSFunction = UniLua.CSharpFunctionDelegate;
|
using LuaCSFunction = UniLua.CSharpFunctionDelegate;
|
||||||
#else
|
#else
|
||||||
using LuaAPI = XLua.LuaDLL.Lua;
|
using LuaAPI = XLua.LuaDLL.Lua;
|
||||||
using RealStatePtr = System.IntPtr;
|
using RealStatePtr = System.IntPtr;
|
||||||
using LuaCSFunction = XLua.LuaDLL.lua_CSFunction;
|
using LuaCSFunction = XLua.LuaDLL.lua_CSFunction;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
using XLua;
|
using XLua;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
|
||||||
|
|
||||||
namespace XLua.CSObjectWrap
|
namespace XLua.CSObjectWrap
|
||||||
{
|
{
|
||||||
using Utils = XLua.Utils;
|
using Utils = XLua.Utils;
|
||||||
public class UnityEngineSkinnedMeshRendererWrap
|
public class UnityEngineSkinnedMeshRendererWrap
|
||||||
{
|
{
|
||||||
public static void __Register(RealStatePtr L)
|
public static void __Register(RealStatePtr L)
|
||||||
{
|
{
|
||||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||||
System.Type type = typeof(UnityEngine.SkinnedMeshRenderer);
|
System.Type type = typeof(UnityEngine.SkinnedMeshRenderer);
|
||||||
Utils.BeginObjectRegister(type, L, translator, 0, 5, 8, 8);
|
Utils.BeginObjectRegister(type, L, translator, 0, 5, 8, 8);
|
||||||
|
|
||||||
Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetBlendShapeWeight", _m_GetBlendShapeWeight);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetBlendShapeWeight", _m_GetBlendShapeWeight);
|
||||||
Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetBlendShapeWeight", _m_SetBlendShapeWeight);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "SetBlendShapeWeight", _m_SetBlendShapeWeight);
|
||||||
Utils.RegisterFunc(L, Utils.METHOD_IDX, "BakeMesh", _m_BakeMesh);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "BakeMesh", _m_BakeMesh);
|
||||||
Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetVertexBuffer", _m_GetVertexBuffer);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetVertexBuffer", _m_GetVertexBuffer);
|
||||||
Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetPreviousVertexBuffer", _m_GetPreviousVertexBuffer);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "GetPreviousVertexBuffer", _m_GetPreviousVertexBuffer);
|
||||||
|
|
||||||
|
|
||||||
Utils.RegisterFunc(L, Utils.GETTER_IDX, "quality", _g_get_quality);
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "quality", _g_get_quality);
|
||||||
Utils.RegisterFunc(L, Utils.GETTER_IDX, "updateWhenOffscreen", _g_get_updateWhenOffscreen);
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "updateWhenOffscreen", _g_get_updateWhenOffscreen);
|
||||||
Utils.RegisterFunc(L, Utils.GETTER_IDX, "forceMatrixRecalculationPerRender", _g_get_forceMatrixRecalculationPerRender);
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "forceMatrixRecalculationPerRender", _g_get_forceMatrixRecalculationPerRender);
|
||||||
Utils.RegisterFunc(L, Utils.GETTER_IDX, "rootBone", _g_get_rootBone);
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "rootBone", _g_get_rootBone);
|
||||||
Utils.RegisterFunc(L, Utils.GETTER_IDX, "bones", _g_get_bones);
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "bones", _g_get_bones);
|
||||||
Utils.RegisterFunc(L, Utils.GETTER_IDX, "sharedMesh", _g_get_sharedMesh);
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "sharedMesh", _g_get_sharedMesh);
|
||||||
Utils.RegisterFunc(L, Utils.GETTER_IDX, "skinnedMotionVectors", _g_get_skinnedMotionVectors);
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "skinnedMotionVectors", _g_get_skinnedMotionVectors);
|
||||||
Utils.RegisterFunc(L, Utils.GETTER_IDX, "vertexBufferTarget", _g_get_vertexBufferTarget);
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "vertexBufferTarget", _g_get_vertexBufferTarget);
|
||||||
|
|
||||||
Utils.RegisterFunc(L, Utils.SETTER_IDX, "quality", _s_set_quality);
|
Utils.RegisterFunc(L, Utils.SETTER_IDX, "quality", _s_set_quality);
|
||||||
Utils.RegisterFunc(L, Utils.SETTER_IDX, "updateWhenOffscreen", _s_set_updateWhenOffscreen);
|
Utils.RegisterFunc(L, Utils.SETTER_IDX, "updateWhenOffscreen", _s_set_updateWhenOffscreen);
|
||||||
Utils.RegisterFunc(L, Utils.SETTER_IDX, "forceMatrixRecalculationPerRender", _s_set_forceMatrixRecalculationPerRender);
|
Utils.RegisterFunc(L, Utils.SETTER_IDX, "forceMatrixRecalculationPerRender", _s_set_forceMatrixRecalculationPerRender);
|
||||||
Utils.RegisterFunc(L, Utils.SETTER_IDX, "rootBone", _s_set_rootBone);
|
Utils.RegisterFunc(L, Utils.SETTER_IDX, "rootBone", _s_set_rootBone);
|
||||||
Utils.RegisterFunc(L, Utils.SETTER_IDX, "bones", _s_set_bones);
|
Utils.RegisterFunc(L, Utils.SETTER_IDX, "bones", _s_set_bones);
|
||||||
Utils.RegisterFunc(L, Utils.SETTER_IDX, "sharedMesh", _s_set_sharedMesh);
|
Utils.RegisterFunc(L, Utils.SETTER_IDX, "sharedMesh", _s_set_sharedMesh);
|
||||||
Utils.RegisterFunc(L, Utils.SETTER_IDX, "skinnedMotionVectors", _s_set_skinnedMotionVectors);
|
Utils.RegisterFunc(L, Utils.SETTER_IDX, "skinnedMotionVectors", _s_set_skinnedMotionVectors);
|
||||||
Utils.RegisterFunc(L, Utils.SETTER_IDX, "vertexBufferTarget", _s_set_vertexBufferTarget);
|
Utils.RegisterFunc(L, Utils.SETTER_IDX, "vertexBufferTarget", _s_set_vertexBufferTarget);
|
||||||
|
|
||||||
|
|
||||||
Utils.EndObjectRegister(type, L, translator, null, null,
|
Utils.EndObjectRegister(type, L, translator, null, null,
|
||||||
null, null, null);
|
null, null, null);
|
||||||
|
|
||||||
Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0);
|
Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Utils.EndClassRegister(type, L, translator);
|
Utils.EndClassRegister(type, L, translator);
|
||||||
}
|
}
|
||||||
|
|
||||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||||
static int __CreateInstance(RealStatePtr L)
|
static int __CreateInstance(RealStatePtr L)
|
||||||
{
|
{
|
||||||
|
|
||||||
try {
|
try {
|
||||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||||
if(LuaAPI.lua_gettop(L) == 1)
|
if(LuaAPI.lua_gettop(L) == 1)
|
||||||
{
|
{
|
||||||
|
|
||||||
var gen_ret = new UnityEngine.SkinnedMeshRenderer();
|
var gen_ret = new UnityEngine.SkinnedMeshRenderer();
|
||||||
translator.Push(L, gen_ret);
|
translator.Push(L, gen_ret);
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
catch(System.Exception gen_e) {
|
catch(System.Exception gen_e) {
|
||||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||||
}
|
}
|
||||||
return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.SkinnedMeshRenderer constructor!");
|
return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.SkinnedMeshRenderer constructor!");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||||
static int _m_GetBlendShapeWeight(RealStatePtr L)
|
static int _m_GetBlendShapeWeight(RealStatePtr L)
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
|
|
||||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||||
|
|
||||||
|
|
||||||
UnityEngine.SkinnedMeshRenderer gen_to_be_invoked = (UnityEngine.SkinnedMeshRenderer)translator.FastGetCSObj(L, 1);
|
UnityEngine.SkinnedMeshRenderer gen_to_be_invoked = (UnityEngine.SkinnedMeshRenderer)translator.FastGetCSObj(L, 1);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
{
|
{
|
||||||
int _index = LuaAPI.xlua_tointeger(L, 2);
|
int _index = LuaAPI.xlua_tointeger(L, 2);
|
||||||
|
|
||||||
var gen_ret = gen_to_be_invoked.GetBlendShapeWeight( _index );
|
var gen_ret = gen_to_be_invoked.GetBlendShapeWeight( _index );
|
||||||
LuaAPI.lua_pushnumber(L, gen_ret);
|
LuaAPI.lua_pushnumber(L, gen_ret);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
} catch(System.Exception gen_e) {
|
} catch(System.Exception gen_e) {
|
||||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||||
static int _m_SetBlendShapeWeight(RealStatePtr L)
|
static int _m_SetBlendShapeWeight(RealStatePtr L)
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
|
|
||||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||||
|
|
||||||
|
|
||||||
UnityEngine.SkinnedMeshRenderer gen_to_be_invoked = (UnityEngine.SkinnedMeshRenderer)translator.FastGetCSObj(L, 1);
|
UnityEngine.SkinnedMeshRenderer gen_to_be_invoked = (UnityEngine.SkinnedMeshRenderer)translator.FastGetCSObj(L, 1);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
{
|
{
|
||||||
int _index = LuaAPI.xlua_tointeger(L, 2);
|
int _index = LuaAPI.xlua_tointeger(L, 2);
|
||||||
float _value = (float)LuaAPI.lua_tonumber(L, 3);
|
float _value = (float)LuaAPI.lua_tonumber(L, 3);
|
||||||
|
|
||||||
gen_to_be_invoked.SetBlendShapeWeight( _index, _value );
|
gen_to_be_invoked.SetBlendShapeWeight( _index, _value );
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
} catch(System.Exception gen_e) {
|
} catch(System.Exception gen_e) {
|
||||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||||
static int _m_BakeMesh(RealStatePtr L)
|
static int _m_BakeMesh(RealStatePtr L)
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
|
|
||||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||||
|
|
||||||
|
|
||||||
UnityEngine.SkinnedMeshRenderer gen_to_be_invoked = (UnityEngine.SkinnedMeshRenderer)translator.FastGetCSObj(L, 1);
|
UnityEngine.SkinnedMeshRenderer gen_to_be_invoked = (UnityEngine.SkinnedMeshRenderer)translator.FastGetCSObj(L, 1);
|
||||||
|
|
||||||
|
|
||||||
int gen_param_count = LuaAPI.lua_gettop(L);
|
int gen_param_count = LuaAPI.lua_gettop(L);
|
||||||
|
|
||||||
if(gen_param_count == 2&& translator.Assignable<UnityEngine.Mesh>(L, 2))
|
if(gen_param_count == 2&& translator.Assignable<UnityEngine.Mesh>(L, 2))
|
||||||
{
|
{
|
||||||
UnityEngine.Mesh _mesh = (UnityEngine.Mesh)translator.GetObject(L, 2, typeof(UnityEngine.Mesh));
|
UnityEngine.Mesh _mesh = (UnityEngine.Mesh)translator.GetObject(L, 2, typeof(UnityEngine.Mesh));
|
||||||
|
|
||||||
gen_to_be_invoked.BakeMesh( _mesh );
|
gen_to_be_invoked.BakeMesh( _mesh );
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
if(gen_param_count == 3&& translator.Assignable<UnityEngine.Mesh>(L, 2)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3))
|
if(gen_param_count == 3&& translator.Assignable<UnityEngine.Mesh>(L, 2)&& LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3))
|
||||||
{
|
{
|
||||||
UnityEngine.Mesh _mesh = (UnityEngine.Mesh)translator.GetObject(L, 2, typeof(UnityEngine.Mesh));
|
UnityEngine.Mesh _mesh = (UnityEngine.Mesh)translator.GetObject(L, 2, typeof(UnityEngine.Mesh));
|
||||||
bool _useScale = LuaAPI.lua_toboolean(L, 3);
|
bool _useScale = LuaAPI.lua_toboolean(L, 3);
|
||||||
|
|
||||||
gen_to_be_invoked.BakeMesh( _mesh, _useScale );
|
gen_to_be_invoked.BakeMesh( _mesh, _useScale );
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
} catch(System.Exception gen_e) {
|
} catch(System.Exception gen_e) {
|
||||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||||
}
|
}
|
||||||
|
|
||||||
return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.SkinnedMeshRenderer.BakeMesh!");
|
return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.SkinnedMeshRenderer.BakeMesh!");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||||
static int _m_GetVertexBuffer(RealStatePtr L)
|
static int _m_GetVertexBuffer(RealStatePtr L)
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
|
|
||||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||||
|
|
||||||
|
|
||||||
UnityEngine.SkinnedMeshRenderer gen_to_be_invoked = (UnityEngine.SkinnedMeshRenderer)translator.FastGetCSObj(L, 1);
|
UnityEngine.SkinnedMeshRenderer gen_to_be_invoked = (UnityEngine.SkinnedMeshRenderer)translator.FastGetCSObj(L, 1);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|
||||||
var gen_ret = gen_to_be_invoked.GetVertexBuffer( );
|
var gen_ret = gen_to_be_invoked.GetVertexBuffer( );
|
||||||
translator.Push(L, gen_ret);
|
translator.Push(L, gen_ret);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
} catch(System.Exception gen_e) {
|
} catch(System.Exception gen_e) {
|
||||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||||
static int _m_GetPreviousVertexBuffer(RealStatePtr L)
|
static int _m_GetPreviousVertexBuffer(RealStatePtr L)
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
|
|
||||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||||
|
|
||||||
|
|
||||||
UnityEngine.SkinnedMeshRenderer gen_to_be_invoked = (UnityEngine.SkinnedMeshRenderer)translator.FastGetCSObj(L, 1);
|
UnityEngine.SkinnedMeshRenderer gen_to_be_invoked = (UnityEngine.SkinnedMeshRenderer)translator.FastGetCSObj(L, 1);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|
||||||
var gen_ret = gen_to_be_invoked.GetPreviousVertexBuffer( );
|
var gen_ret = gen_to_be_invoked.GetPreviousVertexBuffer( );
|
||||||
translator.Push(L, gen_ret);
|
translator.Push(L, gen_ret);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
} catch(System.Exception gen_e) {
|
} catch(System.Exception gen_e) {
|
||||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||||
static int _g_get_quality(RealStatePtr L)
|
static int _g_get_quality(RealStatePtr L)
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||||
|
|
||||||
UnityEngine.SkinnedMeshRenderer gen_to_be_invoked = (UnityEngine.SkinnedMeshRenderer)translator.FastGetCSObj(L, 1);
|
UnityEngine.SkinnedMeshRenderer gen_to_be_invoked = (UnityEngine.SkinnedMeshRenderer)translator.FastGetCSObj(L, 1);
|
||||||
translator.Push(L, gen_to_be_invoked.quality);
|
translator.Push(L, gen_to_be_invoked.quality);
|
||||||
} catch(System.Exception gen_e) {
|
} catch(System.Exception gen_e) {
|
||||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||||
}
|
}
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||||
static int _g_get_updateWhenOffscreen(RealStatePtr L)
|
static int _g_get_updateWhenOffscreen(RealStatePtr L)
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||||
|
|
||||||
UnityEngine.SkinnedMeshRenderer gen_to_be_invoked = (UnityEngine.SkinnedMeshRenderer)translator.FastGetCSObj(L, 1);
|
UnityEngine.SkinnedMeshRenderer gen_to_be_invoked = (UnityEngine.SkinnedMeshRenderer)translator.FastGetCSObj(L, 1);
|
||||||
LuaAPI.lua_pushboolean(L, gen_to_be_invoked.updateWhenOffscreen);
|
LuaAPI.lua_pushboolean(L, gen_to_be_invoked.updateWhenOffscreen);
|
||||||
} catch(System.Exception gen_e) {
|
} catch(System.Exception gen_e) {
|
||||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||||
}
|
}
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||||
static int _g_get_forceMatrixRecalculationPerRender(RealStatePtr L)
|
static int _g_get_forceMatrixRecalculationPerRender(RealStatePtr L)
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||||
|
|
||||||
UnityEngine.SkinnedMeshRenderer gen_to_be_invoked = (UnityEngine.SkinnedMeshRenderer)translator.FastGetCSObj(L, 1);
|
UnityEngine.SkinnedMeshRenderer gen_to_be_invoked = (UnityEngine.SkinnedMeshRenderer)translator.FastGetCSObj(L, 1);
|
||||||
LuaAPI.lua_pushboolean(L, gen_to_be_invoked.forceMatrixRecalculationPerRender);
|
LuaAPI.lua_pushboolean(L, gen_to_be_invoked.forceMatrixRecalculationPerRender);
|
||||||
} catch(System.Exception gen_e) {
|
} catch(System.Exception gen_e) {
|
||||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||||
}
|
}
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||||
static int _g_get_rootBone(RealStatePtr L)
|
static int _g_get_rootBone(RealStatePtr L)
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||||
|
|
||||||
UnityEngine.SkinnedMeshRenderer gen_to_be_invoked = (UnityEngine.SkinnedMeshRenderer)translator.FastGetCSObj(L, 1);
|
UnityEngine.SkinnedMeshRenderer gen_to_be_invoked = (UnityEngine.SkinnedMeshRenderer)translator.FastGetCSObj(L, 1);
|
||||||
translator.Push(L, gen_to_be_invoked.rootBone);
|
translator.Push(L, gen_to_be_invoked.rootBone);
|
||||||
} catch(System.Exception gen_e) {
|
} catch(System.Exception gen_e) {
|
||||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||||
}
|
}
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||||
static int _g_get_bones(RealStatePtr L)
|
static int _g_get_bones(RealStatePtr L)
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||||
|
|
||||||
UnityEngine.SkinnedMeshRenderer gen_to_be_invoked = (UnityEngine.SkinnedMeshRenderer)translator.FastGetCSObj(L, 1);
|
UnityEngine.SkinnedMeshRenderer gen_to_be_invoked = (UnityEngine.SkinnedMeshRenderer)translator.FastGetCSObj(L, 1);
|
||||||
translator.Push(L, gen_to_be_invoked.bones);
|
translator.Push(L, gen_to_be_invoked.bones);
|
||||||
} catch(System.Exception gen_e) {
|
} catch(System.Exception gen_e) {
|
||||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||||
}
|
}
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||||
static int _g_get_sharedMesh(RealStatePtr L)
|
static int _g_get_sharedMesh(RealStatePtr L)
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||||
|
|
||||||
UnityEngine.SkinnedMeshRenderer gen_to_be_invoked = (UnityEngine.SkinnedMeshRenderer)translator.FastGetCSObj(L, 1);
|
UnityEngine.SkinnedMeshRenderer gen_to_be_invoked = (UnityEngine.SkinnedMeshRenderer)translator.FastGetCSObj(L, 1);
|
||||||
translator.Push(L, gen_to_be_invoked.sharedMesh);
|
translator.Push(L, gen_to_be_invoked.sharedMesh);
|
||||||
} catch(System.Exception gen_e) {
|
} catch(System.Exception gen_e) {
|
||||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||||
}
|
}
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||||
static int _g_get_skinnedMotionVectors(RealStatePtr L)
|
static int _g_get_skinnedMotionVectors(RealStatePtr L)
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||||
|
|
||||||
UnityEngine.SkinnedMeshRenderer gen_to_be_invoked = (UnityEngine.SkinnedMeshRenderer)translator.FastGetCSObj(L, 1);
|
UnityEngine.SkinnedMeshRenderer gen_to_be_invoked = (UnityEngine.SkinnedMeshRenderer)translator.FastGetCSObj(L, 1);
|
||||||
LuaAPI.lua_pushboolean(L, gen_to_be_invoked.skinnedMotionVectors);
|
LuaAPI.lua_pushboolean(L, gen_to_be_invoked.skinnedMotionVectors);
|
||||||
} catch(System.Exception gen_e) {
|
} catch(System.Exception gen_e) {
|
||||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||||
}
|
}
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||||
static int _g_get_vertexBufferTarget(RealStatePtr L)
|
static int _g_get_vertexBufferTarget(RealStatePtr L)
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||||
|
|
||||||
UnityEngine.SkinnedMeshRenderer gen_to_be_invoked = (UnityEngine.SkinnedMeshRenderer)translator.FastGetCSObj(L, 1);
|
UnityEngine.SkinnedMeshRenderer gen_to_be_invoked = (UnityEngine.SkinnedMeshRenderer)translator.FastGetCSObj(L, 1);
|
||||||
translator.Push(L, gen_to_be_invoked.vertexBufferTarget);
|
translator.Push(L, gen_to_be_invoked.vertexBufferTarget);
|
||||||
} catch(System.Exception gen_e) {
|
} catch(System.Exception gen_e) {
|
||||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||||
}
|
}
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||||
static int _s_set_quality(RealStatePtr L)
|
static int _s_set_quality(RealStatePtr L)
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||||
|
|
||||||
UnityEngine.SkinnedMeshRenderer gen_to_be_invoked = (UnityEngine.SkinnedMeshRenderer)translator.FastGetCSObj(L, 1);
|
UnityEngine.SkinnedMeshRenderer gen_to_be_invoked = (UnityEngine.SkinnedMeshRenderer)translator.FastGetCSObj(L, 1);
|
||||||
UnityEngine.SkinQuality gen_value;translator.Get(L, 2, out gen_value);
|
UnityEngine.SkinQuality gen_value;translator.Get(L, 2, out gen_value);
|
||||||
gen_to_be_invoked.quality = gen_value;
|
gen_to_be_invoked.quality = gen_value;
|
||||||
|
|
||||||
} catch(System.Exception gen_e) {
|
} catch(System.Exception gen_e) {
|
||||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||||
static int _s_set_updateWhenOffscreen(RealStatePtr L)
|
static int _s_set_updateWhenOffscreen(RealStatePtr L)
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||||
|
|
||||||
UnityEngine.SkinnedMeshRenderer gen_to_be_invoked = (UnityEngine.SkinnedMeshRenderer)translator.FastGetCSObj(L, 1);
|
UnityEngine.SkinnedMeshRenderer gen_to_be_invoked = (UnityEngine.SkinnedMeshRenderer)translator.FastGetCSObj(L, 1);
|
||||||
gen_to_be_invoked.updateWhenOffscreen = LuaAPI.lua_toboolean(L, 2);
|
gen_to_be_invoked.updateWhenOffscreen = LuaAPI.lua_toboolean(L, 2);
|
||||||
|
|
||||||
} catch(System.Exception gen_e) {
|
} catch(System.Exception gen_e) {
|
||||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||||
static int _s_set_forceMatrixRecalculationPerRender(RealStatePtr L)
|
static int _s_set_forceMatrixRecalculationPerRender(RealStatePtr L)
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||||
|
|
||||||
UnityEngine.SkinnedMeshRenderer gen_to_be_invoked = (UnityEngine.SkinnedMeshRenderer)translator.FastGetCSObj(L, 1);
|
UnityEngine.SkinnedMeshRenderer gen_to_be_invoked = (UnityEngine.SkinnedMeshRenderer)translator.FastGetCSObj(L, 1);
|
||||||
gen_to_be_invoked.forceMatrixRecalculationPerRender = LuaAPI.lua_toboolean(L, 2);
|
gen_to_be_invoked.forceMatrixRecalculationPerRender = LuaAPI.lua_toboolean(L, 2);
|
||||||
|
|
||||||
} catch(System.Exception gen_e) {
|
} catch(System.Exception gen_e) {
|
||||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||||
static int _s_set_rootBone(RealStatePtr L)
|
static int _s_set_rootBone(RealStatePtr L)
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||||
|
|
||||||
UnityEngine.SkinnedMeshRenderer gen_to_be_invoked = (UnityEngine.SkinnedMeshRenderer)translator.FastGetCSObj(L, 1);
|
UnityEngine.SkinnedMeshRenderer gen_to_be_invoked = (UnityEngine.SkinnedMeshRenderer)translator.FastGetCSObj(L, 1);
|
||||||
gen_to_be_invoked.rootBone = (UnityEngine.Transform)translator.GetObject(L, 2, typeof(UnityEngine.Transform));
|
gen_to_be_invoked.rootBone = (UnityEngine.Transform)translator.GetObject(L, 2, typeof(UnityEngine.Transform));
|
||||||
|
|
||||||
} catch(System.Exception gen_e) {
|
} catch(System.Exception gen_e) {
|
||||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||||
static int _s_set_bones(RealStatePtr L)
|
static int _s_set_bones(RealStatePtr L)
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||||
|
|
||||||
UnityEngine.SkinnedMeshRenderer gen_to_be_invoked = (UnityEngine.SkinnedMeshRenderer)translator.FastGetCSObj(L, 1);
|
UnityEngine.SkinnedMeshRenderer gen_to_be_invoked = (UnityEngine.SkinnedMeshRenderer)translator.FastGetCSObj(L, 1);
|
||||||
gen_to_be_invoked.bones = (UnityEngine.Transform[])translator.GetObject(L, 2, typeof(UnityEngine.Transform[]));
|
gen_to_be_invoked.bones = (UnityEngine.Transform[])translator.GetObject(L, 2, typeof(UnityEngine.Transform[]));
|
||||||
|
|
||||||
} catch(System.Exception gen_e) {
|
} catch(System.Exception gen_e) {
|
||||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||||
static int _s_set_sharedMesh(RealStatePtr L)
|
static int _s_set_sharedMesh(RealStatePtr L)
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||||
|
|
||||||
UnityEngine.SkinnedMeshRenderer gen_to_be_invoked = (UnityEngine.SkinnedMeshRenderer)translator.FastGetCSObj(L, 1);
|
UnityEngine.SkinnedMeshRenderer gen_to_be_invoked = (UnityEngine.SkinnedMeshRenderer)translator.FastGetCSObj(L, 1);
|
||||||
gen_to_be_invoked.sharedMesh = (UnityEngine.Mesh)translator.GetObject(L, 2, typeof(UnityEngine.Mesh));
|
gen_to_be_invoked.sharedMesh = (UnityEngine.Mesh)translator.GetObject(L, 2, typeof(UnityEngine.Mesh));
|
||||||
|
|
||||||
} catch(System.Exception gen_e) {
|
} catch(System.Exception gen_e) {
|
||||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||||
static int _s_set_skinnedMotionVectors(RealStatePtr L)
|
static int _s_set_skinnedMotionVectors(RealStatePtr L)
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||||
|
|
||||||
UnityEngine.SkinnedMeshRenderer gen_to_be_invoked = (UnityEngine.SkinnedMeshRenderer)translator.FastGetCSObj(L, 1);
|
UnityEngine.SkinnedMeshRenderer gen_to_be_invoked = (UnityEngine.SkinnedMeshRenderer)translator.FastGetCSObj(L, 1);
|
||||||
gen_to_be_invoked.skinnedMotionVectors = LuaAPI.lua_toboolean(L, 2);
|
gen_to_be_invoked.skinnedMotionVectors = LuaAPI.lua_toboolean(L, 2);
|
||||||
|
|
||||||
} catch(System.Exception gen_e) {
|
} catch(System.Exception gen_e) {
|
||||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||||
static int _s_set_vertexBufferTarget(RealStatePtr L)
|
static int _s_set_vertexBufferTarget(RealStatePtr L)
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||||
|
|
||||||
UnityEngine.SkinnedMeshRenderer gen_to_be_invoked = (UnityEngine.SkinnedMeshRenderer)translator.FastGetCSObj(L, 1);
|
UnityEngine.SkinnedMeshRenderer gen_to_be_invoked = (UnityEngine.SkinnedMeshRenderer)translator.FastGetCSObj(L, 1);
|
||||||
UnityEngine.GraphicsBuffer.Target gen_value;translator.Get(L, 2, out gen_value);
|
UnityEngine.GraphicsBuffer.Target gen_value;translator.Get(L, 2, out gen_value);
|
||||||
gen_to_be_invoked.vertexBufferTarget = gen_value;
|
gen_to_be_invoked.vertexBufferTarget = gen_value;
|
||||||
|
|
||||||
} catch(System.Exception gen_e) {
|
} catch(System.Exception gen_e) {
|
||||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -1,167 +1,167 @@
|
|||||||
#if USE_UNI_LUA
|
#if USE_UNI_LUA
|
||||||
using LuaAPI = UniLua.Lua;
|
using LuaAPI = UniLua.Lua;
|
||||||
using RealStatePtr = UniLua.ILuaState;
|
using RealStatePtr = UniLua.ILuaState;
|
||||||
using LuaCSFunction = UniLua.CSharpFunctionDelegate;
|
using LuaCSFunction = UniLua.CSharpFunctionDelegate;
|
||||||
#else
|
#else
|
||||||
using LuaAPI = XLua.LuaDLL.Lua;
|
using LuaAPI = XLua.LuaDLL.Lua;
|
||||||
using RealStatePtr = System.IntPtr;
|
using RealStatePtr = System.IntPtr;
|
||||||
using LuaCSFunction = XLua.LuaDLL.lua_CSFunction;
|
using LuaCSFunction = XLua.LuaDLL.lua_CSFunction;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
using XLua;
|
using XLua;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
|
||||||
|
|
||||||
namespace XLua.CSObjectWrap
|
namespace XLua.CSObjectWrap
|
||||||
{
|
{
|
||||||
using Utils = XLua.Utils;
|
using Utils = XLua.Utils;
|
||||||
public class UnityEngineTextAssetWrap
|
public class UnityEngineTextAssetWrap
|
||||||
{
|
{
|
||||||
public static void __Register(RealStatePtr L)
|
public static void __Register(RealStatePtr L)
|
||||||
{
|
{
|
||||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||||
System.Type type = typeof(UnityEngine.TextAsset);
|
System.Type type = typeof(UnityEngine.TextAsset);
|
||||||
Utils.BeginObjectRegister(type, L, translator, 0, 1, 3, 0);
|
Utils.BeginObjectRegister(type, L, translator, 0, 1, 3, 0);
|
||||||
|
|
||||||
Utils.RegisterFunc(L, Utils.METHOD_IDX, "ToString", _m_ToString);
|
Utils.RegisterFunc(L, Utils.METHOD_IDX, "ToString", _m_ToString);
|
||||||
|
|
||||||
|
|
||||||
Utils.RegisterFunc(L, Utils.GETTER_IDX, "bytes", _g_get_bytes);
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "bytes", _g_get_bytes);
|
||||||
Utils.RegisterFunc(L, Utils.GETTER_IDX, "text", _g_get_text);
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "text", _g_get_text);
|
||||||
Utils.RegisterFunc(L, Utils.GETTER_IDX, "dataSize", _g_get_dataSize);
|
Utils.RegisterFunc(L, Utils.GETTER_IDX, "dataSize", _g_get_dataSize);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Utils.EndObjectRegister(type, L, translator, null, null,
|
Utils.EndObjectRegister(type, L, translator, null, null,
|
||||||
null, null, null);
|
null, null, null);
|
||||||
|
|
||||||
Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0);
|
Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Utils.EndClassRegister(type, L, translator);
|
Utils.EndClassRegister(type, L, translator);
|
||||||
}
|
}
|
||||||
|
|
||||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||||
static int __CreateInstance(RealStatePtr L)
|
static int __CreateInstance(RealStatePtr L)
|
||||||
{
|
{
|
||||||
|
|
||||||
try {
|
try {
|
||||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||||
if(LuaAPI.lua_gettop(L) == 1)
|
if(LuaAPI.lua_gettop(L) == 1)
|
||||||
{
|
{
|
||||||
|
|
||||||
var gen_ret = new UnityEngine.TextAsset();
|
var gen_ret = new UnityEngine.TextAsset();
|
||||||
translator.Push(L, gen_ret);
|
translator.Push(L, gen_ret);
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
if(LuaAPI.lua_gettop(L) == 2 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING))
|
if(LuaAPI.lua_gettop(L) == 2 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING))
|
||||||
{
|
{
|
||||||
string _text = LuaAPI.lua_tostring(L, 2);
|
string _text = LuaAPI.lua_tostring(L, 2);
|
||||||
|
|
||||||
var gen_ret = new UnityEngine.TextAsset(_text);
|
var gen_ret = new UnityEngine.TextAsset(_text);
|
||||||
translator.Push(L, gen_ret);
|
translator.Push(L, gen_ret);
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
catch(System.Exception gen_e) {
|
catch(System.Exception gen_e) {
|
||||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||||
}
|
}
|
||||||
return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.TextAsset constructor!");
|
return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.TextAsset constructor!");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||||
static int _m_ToString(RealStatePtr L)
|
static int _m_ToString(RealStatePtr L)
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
|
|
||||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||||
|
|
||||||
|
|
||||||
UnityEngine.TextAsset gen_to_be_invoked = (UnityEngine.TextAsset)translator.FastGetCSObj(L, 1);
|
UnityEngine.TextAsset gen_to_be_invoked = (UnityEngine.TextAsset)translator.FastGetCSObj(L, 1);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|
||||||
var gen_ret = gen_to_be_invoked.ToString( );
|
var gen_ret = gen_to_be_invoked.ToString( );
|
||||||
LuaAPI.lua_pushstring(L, gen_ret);
|
LuaAPI.lua_pushstring(L, gen_ret);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
} catch(System.Exception gen_e) {
|
} catch(System.Exception gen_e) {
|
||||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||||
static int _g_get_bytes(RealStatePtr L)
|
static int _g_get_bytes(RealStatePtr L)
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||||
|
|
||||||
UnityEngine.TextAsset gen_to_be_invoked = (UnityEngine.TextAsset)translator.FastGetCSObj(L, 1);
|
UnityEngine.TextAsset gen_to_be_invoked = (UnityEngine.TextAsset)translator.FastGetCSObj(L, 1);
|
||||||
LuaAPI.lua_pushstring(L, gen_to_be_invoked.bytes);
|
LuaAPI.lua_pushstring(L, gen_to_be_invoked.bytes);
|
||||||
} catch(System.Exception gen_e) {
|
} catch(System.Exception gen_e) {
|
||||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||||
}
|
}
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||||
static int _g_get_text(RealStatePtr L)
|
static int _g_get_text(RealStatePtr L)
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||||
|
|
||||||
UnityEngine.TextAsset gen_to_be_invoked = (UnityEngine.TextAsset)translator.FastGetCSObj(L, 1);
|
UnityEngine.TextAsset gen_to_be_invoked = (UnityEngine.TextAsset)translator.FastGetCSObj(L, 1);
|
||||||
LuaAPI.lua_pushstring(L, gen_to_be_invoked.text);
|
LuaAPI.lua_pushstring(L, gen_to_be_invoked.text);
|
||||||
} catch(System.Exception gen_e) {
|
} catch(System.Exception gen_e) {
|
||||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||||
}
|
}
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||||
static int _g_get_dataSize(RealStatePtr L)
|
static int _g_get_dataSize(RealStatePtr L)
|
||||||
{
|
{
|
||||||
try {
|
try {
|
||||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||||
|
|
||||||
UnityEngine.TextAsset gen_to_be_invoked = (UnityEngine.TextAsset)translator.FastGetCSObj(L, 1);
|
UnityEngine.TextAsset gen_to_be_invoked = (UnityEngine.TextAsset)translator.FastGetCSObj(L, 1);
|
||||||
LuaAPI.lua_pushint64(L, gen_to_be_invoked.dataSize);
|
LuaAPI.lua_pushint64(L, gen_to_be_invoked.dataSize);
|
||||||
} catch(System.Exception gen_e) {
|
} catch(System.Exception gen_e) {
|
||||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||||
}
|
}
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -1,84 +1,84 @@
|
|||||||
#if USE_UNI_LUA
|
#if USE_UNI_LUA
|
||||||
using LuaAPI = UniLua.Lua;
|
using LuaAPI = UniLua.Lua;
|
||||||
using RealStatePtr = UniLua.ILuaState;
|
using RealStatePtr = UniLua.ILuaState;
|
||||||
using LuaCSFunction = UniLua.CSharpFunctionDelegate;
|
using LuaCSFunction = UniLua.CSharpFunctionDelegate;
|
||||||
#else
|
#else
|
||||||
using LuaAPI = XLua.LuaDLL.Lua;
|
using LuaAPI = XLua.LuaDLL.Lua;
|
||||||
using RealStatePtr = System.IntPtr;
|
using RealStatePtr = System.IntPtr;
|
||||||
using LuaCSFunction = XLua.LuaDLL.lua_CSFunction;
|
using LuaCSFunction = XLua.LuaDLL.lua_CSFunction;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
using XLua;
|
using XLua;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
|
|
||||||
|
|
||||||
namespace XLua.CSObjectWrap
|
namespace XLua.CSObjectWrap
|
||||||
{
|
{
|
||||||
using Utils = XLua.Utils;
|
using Utils = XLua.Utils;
|
||||||
public class UnityEngineUIInputFieldEndEditEventWrap
|
public class UnityEngineUIInputFieldEndEditEventWrap
|
||||||
{
|
{
|
||||||
public static void __Register(RealStatePtr L)
|
public static void __Register(RealStatePtr L)
|
||||||
{
|
{
|
||||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||||
System.Type type = typeof(UnityEngine.UI.InputField.EndEditEvent);
|
System.Type type = typeof(UnityEngine.UI.InputField.EndEditEvent);
|
||||||
Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0);
|
Utils.BeginObjectRegister(type, L, translator, 0, 0, 0, 0);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Utils.EndObjectRegister(type, L, translator, null, null,
|
Utils.EndObjectRegister(type, L, translator, null, null,
|
||||||
null, null, null);
|
null, null, null);
|
||||||
|
|
||||||
Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0);
|
Utils.BeginClassRegister(type, L, __CreateInstance, 1, 0, 0);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Utils.EndClassRegister(type, L, translator);
|
Utils.EndClassRegister(type, L, translator);
|
||||||
}
|
}
|
||||||
|
|
||||||
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
|
||||||
static int __CreateInstance(RealStatePtr L)
|
static int __CreateInstance(RealStatePtr L)
|
||||||
{
|
{
|
||||||
|
|
||||||
try {
|
try {
|
||||||
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
|
||||||
if(LuaAPI.lua_gettop(L) == 1)
|
if(LuaAPI.lua_gettop(L) == 1)
|
||||||
{
|
{
|
||||||
|
|
||||||
var gen_ret = new UnityEngine.UI.InputField.EndEditEvent();
|
var gen_ret = new UnityEngine.UI.InputField.EndEditEvent();
|
||||||
translator.Push(L, gen_ret);
|
translator.Push(L, gen_ret);
|
||||||
|
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
catch(System.Exception gen_e) {
|
catch(System.Exception gen_e) {
|
||||||
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
return LuaAPI.luaL_error(L, "c# exception:" + gen_e);
|
||||||
}
|
}
|
||||||
return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.UI.InputField.EndEditEvent constructor!");
|
return LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.UI.InputField.EndEditEvent constructor!");
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@ -4,5 +4,5 @@ NativeFormatImporter:
|
|||||||
externalObjects: {}
|
externalObjects: {}
|
||||||
mainObjectFileID: 4343727234628468602
|
mainObjectFileID: 4343727234628468602
|
||||||
userData:
|
userData:
|
||||||
assetBundleName:
|
assetBundleName: arts/textures/icon/avater.ab
|
||||||
assetBundleVariant:
|
assetBundleVariant:
|
||||||
|
|||||||
@ -4,5 +4,5 @@ NativeFormatImporter:
|
|||||||
externalObjects: {}
|
externalObjects: {}
|
||||||
mainObjectFileID: 11400000
|
mainObjectFileID: 11400000
|
||||||
userData:
|
userData:
|
||||||
assetBundleName:
|
assetBundleName: arts/textures/icon/collection.ab
|
||||||
assetBundleVariant:
|
assetBundleVariant:
|
||||||
|
|||||||
@ -4,5 +4,5 @@ NativeFormatImporter:
|
|||||||
externalObjects: {}
|
externalObjects: {}
|
||||||
mainObjectFileID: 4343727234628468602
|
mainObjectFileID: 4343727234628468602
|
||||||
userData:
|
userData:
|
||||||
assetBundleName:
|
assetBundleName: arts/textures/icon/collection.ab
|
||||||
assetBundleVariant:
|
assetBundleVariant:
|
||||||
|
|||||||
@ -4,5 +4,5 @@ NativeFormatImporter:
|
|||||||
externalObjects: {}
|
externalObjects: {}
|
||||||
mainObjectFileID: 11400000
|
mainObjectFileID: 11400000
|
||||||
userData:
|
userData:
|
||||||
assetBundleName:
|
assetBundleName: arts/textures/icon/force_equip.ab
|
||||||
assetBundleVariant:
|
assetBundleVariant:
|
||||||
|
|||||||
@ -4,5 +4,5 @@ NativeFormatImporter:
|
|||||||
externalObjects: {}
|
externalObjects: {}
|
||||||
mainObjectFileID: 4343727234628468602
|
mainObjectFileID: 4343727234628468602
|
||||||
userData:
|
userData:
|
||||||
assetBundleName:
|
assetBundleName: arts/textures/icon/force_equip.ab
|
||||||
assetBundleVariant:
|
assetBundleVariant:
|
||||||
|
|||||||
@ -159,6 +159,7 @@ MonoBehaviour:
|
|||||||
- {fileID: 21300000, guid: de67ff43cf9c86c46be7127c2fb7cc84, type: 3}
|
- {fileID: 21300000, guid: de67ff43cf9c86c46be7127c2fb7cc84, type: 3}
|
||||||
- {fileID: 21300000, guid: 77026c4d6ad5e0f4d941920a0ef3f272, type: 3}
|
- {fileID: 21300000, guid: 77026c4d6ad5e0f4d941920a0ef3f272, type: 3}
|
||||||
- {fileID: 21300000, guid: 1421585b364b1fb4ab0d951bb5d0f35d, type: 3}
|
- {fileID: 21300000, guid: 1421585b364b1fb4ab0d951bb5d0f35d, type: 3}
|
||||||
|
- {fileID: 21300000, guid: 7716cb1bbd8234cdea572390f709ea1b, type: 3}
|
||||||
- {fileID: 21300000, guid: 9bb2f10b15aa44a4fa22ec0655146511, type: 3}
|
- {fileID: 21300000, guid: 9bb2f10b15aa44a4fa22ec0655146511, type: 3}
|
||||||
- {fileID: 21300000, guid: be484dcfccac44f48bece88cc9294c8f, type: 3}
|
- {fileID: 21300000, guid: be484dcfccac44f48bece88cc9294c8f, type: 3}
|
||||||
- {fileID: 21300000, guid: e53d6e8ee4f256040a5d26aa8233520b, type: 3}
|
- {fileID: 21300000, guid: e53d6e8ee4f256040a5d26aa8233520b, type: 3}
|
||||||
@ -166,4 +167,4 @@ MonoBehaviour:
|
|||||||
- {fileID: 21300000, guid: 4883eddf5771c424c964bc2e32f2cb09, type: 3}
|
- {fileID: 21300000, guid: 4883eddf5771c424c964bc2e32f2cb09, type: 3}
|
||||||
- {fileID: 21300000, guid: 90cd8a98ab36f5f429ca27d808dc664f, type: 3}
|
- {fileID: 21300000, guid: 90cd8a98ab36f5f429ca27d808dc664f, type: 3}
|
||||||
- {fileID: 21300000, guid: 9f4d825138b34164cb6e9e64406dd12a, type: 3}
|
- {fileID: 21300000, guid: 9f4d825138b34164cb6e9e64406dd12a, type: 3}
|
||||||
spriteNameList: 73ef7596df354ed3e0354ed3e2354ed3e3354ed3919850e8929850e8939850e8949850e8959850e8969850e8979850e8947eef9a667213652f396c3f22b5421523b5421537aa723a01d54ed3525806155358061504b9a932ede09396eee09396efe09396f0e09396f1e09396f2e09396bd9b0e6913dcc4b814dcc4b815dcc4b816dcc4b817dcc4b818dcc4b819dcc4b81adcc4b81bdcc4b81cdcc4b8be9b0e6932dcc4b833dcc4b834dcc4b835dcc4b836dcc4b837dcc4b838dcc4b839dcc4b83adcc4b83bdcc4b8bf9b0e6951dcc4b852dcc4b853dcc4b854dcc4b855dcc4b856dcc4b8c09b0e69c19b0e69c29b0e69c39b0e69c49b0e69c59b0e696fe5222e54a9179b0d7ccc490e7ccc490f7ccc49107ccc49132253d3c33f686cc43f686cc53f686ca4afbba06a2996ce6b2996ce6c2996ce6d2996cef90ee7ab9afa36db9bfa36db9cfa36db0196263e029d3752a3c0a1b6a4c0a1b6a5c0a1b6958cd3a2415abdf4495bbdf4c767bdf4948dbdf4e0b6b5f6a45a15e809d618e85a4c581b1ddd9f90c7a6c0f42f42c0b73042c0b73142c0b739fba4313afba4313bfba431ce71fe31cf71fe31d071fe31c0b35232c1b35232c2b35232cd4fd4681304c2f41bed664187156e7a86d89f5487d89f5488d89f5489d89f5442e685d543e685d5499b18984a9b18984b9b18984c9b18984d9b1898e1d0a115ccb53bb2cdb53bb2d120b00dd220b00d50fb2eba51fb2eba73ea16e874ea16e81e5457221f5457222bf929362cf92936cf0775471557dd4782b8592383b85923ebb25356ecb2535683b74c9784b74c978c8d63ad107222fd627da494f525e9106e14a26803e475062623b5b6
|
spriteNameList: 73ef7596df354ed3e0354ed3e2354ed3e3354ed3919850e8929850e8939850e8949850e8959850e8969850e8979850e8947eef9a667213652f396c3f22b5421523b5421537aa723a01d54ed3525806155358061504b9a932ede09396eee09396efe09396f0e09396f1e09396f2e09396bd9b0e6913dcc4b814dcc4b815dcc4b816dcc4b817dcc4b818dcc4b819dcc4b81adcc4b81bdcc4b81cdcc4b8be9b0e6932dcc4b833dcc4b834dcc4b835dcc4b836dcc4b837dcc4b838dcc4b839dcc4b83adcc4b83bdcc4b8bf9b0e6951dcc4b852dcc4b853dcc4b854dcc4b855dcc4b856dcc4b8c09b0e69c19b0e69c29b0e69c39b0e69c49b0e69c59b0e696fe5222e54a9179b0d7ccc490e7ccc490f7ccc49107ccc49132253d3c33f686cc43f686cc53f686ca4afbba06a2996ce6b2996ce6c2996ce6d2996cef90ee7ab9afa36db9bfa36db9cfa36db0196263e029d3752a3c0a1b6a4c0a1b6a5c0a1b6958cd3a2415abdf4495bbdf4c767bdf4948dbdf4e0b6b5f6a45a15e809d618e85a4c581b1ddd9f90c7a6c0f42f42c0b73042c0b73142c0b739fba4313afba4313bfba431ce71fe31cf71fe31d071fe31c0b35232c1b35232c2b35232cd4fd4681304c2f41bed664187156e7a86d89f5487d89f5488d89f5489d89f5442e685d543e685d5499b18984a9b18984b9b18984c9b18984d9b1898e1d0a115ccb53bb2cdb53bb2d120b00dd220b00d50fb2eba51fb2eba73ea16e874ea16e81e5457221f5457222bf929362cf92936cf0775471557dd4782b8592383b85923ebb25356ecb2535683b74c9784b74c97450c00008c8d63ad107222fd627da494f525e9106e14a26803e475062623b5b6
|
||||||
|
|||||||
@ -4,5 +4,5 @@ NativeFormatImporter:
|
|||||||
externalObjects: {}
|
externalObjects: {}
|
||||||
mainObjectFileID: 11400000
|
mainObjectFileID: 11400000
|
||||||
userData:
|
userData:
|
||||||
assetBundleName:
|
assetBundleName: arts/textures/ui/force_equip.ab
|
||||||
assetBundleVariant:
|
assetBundleVariant:
|
||||||
|
|||||||
@ -4,5 +4,5 @@ NativeFormatImporter:
|
|||||||
externalObjects: {}
|
externalObjects: {}
|
||||||
mainObjectFileID: 4343727234628468602
|
mainObjectFileID: 4343727234628468602
|
||||||
userData:
|
userData:
|
||||||
assetBundleName:
|
assetBundleName: arts/textures/ui/force_equip.ab
|
||||||
assetBundleVariant:
|
assetBundleVariant:
|
||||||
|
|||||||
@ -4,5 +4,5 @@ NativeFormatImporter:
|
|||||||
externalObjects: {}
|
externalObjects: {}
|
||||||
mainObjectFileID: 11400000
|
mainObjectFileID: 11400000
|
||||||
userData:
|
userData:
|
||||||
assetBundleName:
|
assetBundleName: arts/textures/ui/idle.ab
|
||||||
assetBundleVariant:
|
assetBundleVariant:
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user