|
|
- //this source code was auto-generated by tolua#, do not modify it
- using System;
- using LuaInterface;
-
- public class UnityEngine_ApplicationWrap
- {
- public static void Register(LuaState L)
- {
- L.BeginStaticLibs("Application");
- L.RegFunction("Quit", Quit);
- L.RegFunction("Unload", Unload);
- L.RegFunction("CanStreamedLevelBeLoaded", CanStreamedLevelBeLoaded);
- L.RegFunction("IsPlaying", IsPlaying);
- L.RegFunction("GetBuildTags", GetBuildTags);
- L.RegFunction("SetBuildTags", SetBuildTags);
- L.RegFunction("HasProLicense", HasProLicense);
- L.RegFunction("RequestAdvertisingIdentifierAsync", RequestAdvertisingIdentifierAsync);
- L.RegFunction("OpenURL", OpenURL);
- L.RegFunction("GetStackTraceLogType", GetStackTraceLogType);
- L.RegFunction("SetStackTraceLogType", SetStackTraceLogType);
- L.RegFunction("RequestUserAuthorization", RequestUserAuthorization);
- L.RegFunction("HasUserAuthorization", HasUserAuthorization);
- L.RegVar("isPlaying", get_isPlaying, null);
- L.RegVar("isFocused", get_isFocused, null);
- L.RegVar("platform", get_platform, null);
- L.RegVar("buildGUID", get_buildGUID, null);
- L.RegVar("isMobilePlatform", get_isMobilePlatform, null);
- L.RegVar("isConsolePlatform", get_isConsolePlatform, null);
- L.RegVar("runInBackground", get_runInBackground, set_runInBackground);
- L.RegVar("isBatchMode", get_isBatchMode, null);
- L.RegVar("dataPath", get_dataPath, null);
- L.RegVar("streamingAssetsPath", get_streamingAssetsPath, null);
- L.RegVar("persistentDataPath", get_persistentDataPath, null);
- L.RegVar("temporaryCachePath", get_temporaryCachePath, null);
- L.RegVar("absoluteURL", get_absoluteURL, null);
- L.RegVar("unityVersion", get_unityVersion, null);
- L.RegVar("version", get_version, null);
- L.RegVar("installerName", get_installerName, null);
- L.RegVar("identifier", get_identifier, null);
- L.RegVar("installMode", get_installMode, null);
- L.RegVar("sandboxType", get_sandboxType, null);
- L.RegVar("productName", get_productName, null);
- L.RegVar("companyName", get_companyName, null);
- L.RegVar("cloudProjectId", get_cloudProjectId, null);
- L.RegVar("targetFrameRate", get_targetFrameRate, set_targetFrameRate);
- L.RegVar("systemLanguage", get_systemLanguage, null);
- L.RegVar("consoleLogPath", get_consoleLogPath, null);
- L.RegVar("backgroundLoadingPriority", get_backgroundLoadingPriority, set_backgroundLoadingPriority);
- L.RegVar("internetReachability", get_internetReachability, null);
- L.RegVar("genuine", get_genuine, null);
- L.RegVar("genuineCheckAvailable", get_genuineCheckAvailable, null);
- L.RegVar("isEditor", get_isEditor, null);
- L.RegVar("lowMemory", get_lowMemory, set_lowMemory);
- L.RegVar("logMessageReceived", get_logMessageReceived, set_logMessageReceived);
- L.RegVar("logMessageReceivedThreaded", get_logMessageReceivedThreaded, set_logMessageReceivedThreaded);
- L.RegVar("onBeforeRender", get_onBeforeRender, set_onBeforeRender);
- L.RegVar("focusChanged", get_focusChanged, set_focusChanged);
- L.RegVar("wantsToQuit", get_wantsToQuit, set_wantsToQuit);
- L.RegVar("quitting", get_quitting, set_quitting);
- L.RegFunction("AdvertisingIdentifierCallback", UnityEngine_Application_AdvertisingIdentifierCallback);
- L.RegFunction("LogCallback", UnityEngine_Application_LogCallback);
- L.RegFunction("LowMemoryCallback", UnityEngine_Application_LowMemoryCallback);
- L.EndStaticLibs();
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int Quit(IntPtr L)
- {
- try
- {
- int count = LuaDLL.lua_gettop(L);
-
- if (count == 0)
- {
- UnityEngine.Application.Quit();
- return 0;
- }
- else if (count == 1 && TypeChecker.CheckTypes(L, 1, typeof(int)))
- {
- int arg0 = (int)LuaDLL.lua_tonumber(L, 1);
- UnityEngine.Application.Quit(arg0);
- return 0;
- }
- else
- {
- return LuaDLL.luaL_throw(L, "invalid arguments to method: UnityEngine.Application.Quit");
- }
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int Unload(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 0);
- UnityEngine.Application.Unload();
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int CanStreamedLevelBeLoaded(IntPtr L)
- {
- try
- {
- int count = LuaDLL.lua_gettop(L);
-
- if (count == 1 && TypeChecker.CheckTypes(L, 1, typeof(int)))
- {
- int arg0 = (int)LuaDLL.lua_tonumber(L, 1);
- bool o = UnityEngine.Application.CanStreamedLevelBeLoaded(arg0);
- LuaDLL.lua_pushboolean(L, o);
- return 1;
- }
- else if (count == 1 && TypeChecker.CheckTypes(L, 1, typeof(string)))
- {
- string arg0 = ToLua.ToString(L, 1);
- bool o = UnityEngine.Application.CanStreamedLevelBeLoaded(arg0);
- LuaDLL.lua_pushboolean(L, o);
- return 1;
- }
- else
- {
- return LuaDLL.luaL_throw(L, "invalid arguments to method: UnityEngine.Application.CanStreamedLevelBeLoaded");
- }
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int IsPlaying(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 1);
- UnityEngine.Object arg0 = (UnityEngine.Object)ToLua.CheckUnityObject(L, 1, typeof(UnityEngine.Object));
- bool o = UnityEngine.Application.IsPlaying(arg0);
- LuaDLL.lua_pushboolean(L, o);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int GetBuildTags(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 0);
- string[] o = UnityEngine.Application.GetBuildTags();
- ToLua.Push(L, o);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int SetBuildTags(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 1);
- string[] arg0 = ToLua.CheckStringArray(L, 1);
- UnityEngine.Application.SetBuildTags(arg0);
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int HasProLicense(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 0);
- bool o = UnityEngine.Application.HasProLicense();
- LuaDLL.lua_pushboolean(L, o);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int RequestAdvertisingIdentifierAsync(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 1);
- UnityEngine.Application.AdvertisingIdentifierCallback arg0 = null;
- LuaTypes funcType1 = LuaDLL.lua_type(L, 1);
-
- if (funcType1 != LuaTypes.LUA_TFUNCTION)
- {
- arg0 = (UnityEngine.Application.AdvertisingIdentifierCallback)ToLua.CheckObject(L, 1, typeof(UnityEngine.Application.AdvertisingIdentifierCallback));
- }
- else
- {
- LuaFunction func = ToLua.ToLuaFunction(L, 1);
- arg0 = DelegateFactory.CreateDelegate(typeof(UnityEngine.Application.AdvertisingIdentifierCallback), func) as UnityEngine.Application.AdvertisingIdentifierCallback;
- }
-
- bool o = UnityEngine.Application.RequestAdvertisingIdentifierAsync(arg0);
- LuaDLL.lua_pushboolean(L, o);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int OpenURL(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 1);
- string arg0 = ToLua.CheckString(L, 1);
- UnityEngine.Application.OpenURL(arg0);
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int GetStackTraceLogType(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 1);
- UnityEngine.LogType arg0 = (UnityEngine.LogType)ToLua.CheckObject(L, 1, typeof(UnityEngine.LogType));
- UnityEngine.StackTraceLogType o = UnityEngine.Application.GetStackTraceLogType(arg0);
- ToLua.Push(L, o);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int SetStackTraceLogType(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 2);
- UnityEngine.LogType arg0 = (UnityEngine.LogType)ToLua.CheckObject(L, 1, typeof(UnityEngine.LogType));
- UnityEngine.StackTraceLogType arg1 = (UnityEngine.StackTraceLogType)ToLua.CheckObject(L, 2, typeof(UnityEngine.StackTraceLogType));
- UnityEngine.Application.SetStackTraceLogType(arg0, arg1);
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int RequestUserAuthorization(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 1);
- UnityEngine.UserAuthorization arg0 = (UnityEngine.UserAuthorization)ToLua.CheckObject(L, 1, typeof(UnityEngine.UserAuthorization));
- UnityEngine.AsyncOperation o = UnityEngine.Application.RequestUserAuthorization(arg0);
- ToLua.PushObject(L, o);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int HasUserAuthorization(IntPtr L)
- {
- try
- {
- ToLua.CheckArgsCount(L, 1);
- UnityEngine.UserAuthorization arg0 = (UnityEngine.UserAuthorization)ToLua.CheckObject(L, 1, typeof(UnityEngine.UserAuthorization));
- bool o = UnityEngine.Application.HasUserAuthorization(arg0);
- LuaDLL.lua_pushboolean(L, o);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_isPlaying(IntPtr L)
- {
- try
- {
- LuaDLL.lua_pushboolean(L, UnityEngine.Application.isPlaying);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_isFocused(IntPtr L)
- {
- try
- {
- LuaDLL.lua_pushboolean(L, UnityEngine.Application.isFocused);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_platform(IntPtr L)
- {
- try
- {
- ToLua.Push(L, UnityEngine.Application.platform);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_buildGUID(IntPtr L)
- {
- try
- {
- LuaDLL.lua_pushstring(L, UnityEngine.Application.buildGUID);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_isMobilePlatform(IntPtr L)
- {
- try
- {
- LuaDLL.lua_pushboolean(L, UnityEngine.Application.isMobilePlatform);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_isConsolePlatform(IntPtr L)
- {
- try
- {
- LuaDLL.lua_pushboolean(L, UnityEngine.Application.isConsolePlatform);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_runInBackground(IntPtr L)
- {
- try
- {
- LuaDLL.lua_pushboolean(L, UnityEngine.Application.runInBackground);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_isBatchMode(IntPtr L)
- {
- try
- {
- LuaDLL.lua_pushboolean(L, UnityEngine.Application.isBatchMode);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_dataPath(IntPtr L)
- {
- try
- {
- LuaDLL.lua_pushstring(L, UnityEngine.Application.dataPath);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_streamingAssetsPath(IntPtr L)
- {
- try
- {
- LuaDLL.lua_pushstring(L, UnityEngine.Application.streamingAssetsPath);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_persistentDataPath(IntPtr L)
- {
- try
- {
- LuaDLL.lua_pushstring(L, UnityEngine.Application.persistentDataPath);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_temporaryCachePath(IntPtr L)
- {
- try
- {
- LuaDLL.lua_pushstring(L, UnityEngine.Application.temporaryCachePath);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_absoluteURL(IntPtr L)
- {
- try
- {
- LuaDLL.lua_pushstring(L, UnityEngine.Application.absoluteURL);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_unityVersion(IntPtr L)
- {
- try
- {
- LuaDLL.lua_pushstring(L, UnityEngine.Application.unityVersion);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_version(IntPtr L)
- {
- try
- {
- LuaDLL.lua_pushstring(L, UnityEngine.Application.version);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_installerName(IntPtr L)
- {
- try
- {
- LuaDLL.lua_pushstring(L, UnityEngine.Application.installerName);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_identifier(IntPtr L)
- {
- try
- {
- LuaDLL.lua_pushstring(L, UnityEngine.Application.identifier);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_installMode(IntPtr L)
- {
- try
- {
- ToLua.Push(L, UnityEngine.Application.installMode);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_sandboxType(IntPtr L)
- {
- try
- {
- ToLua.Push(L, UnityEngine.Application.sandboxType);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_productName(IntPtr L)
- {
- try
- {
- LuaDLL.lua_pushstring(L, UnityEngine.Application.productName);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_companyName(IntPtr L)
- {
- try
- {
- LuaDLL.lua_pushstring(L, UnityEngine.Application.companyName);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_cloudProjectId(IntPtr L)
- {
- try
- {
- LuaDLL.lua_pushstring(L, UnityEngine.Application.cloudProjectId);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_targetFrameRate(IntPtr L)
- {
- try
- {
- LuaDLL.lua_pushinteger(L, UnityEngine.Application.targetFrameRate);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_systemLanguage(IntPtr L)
- {
- try
- {
- ToLua.Push(L, UnityEngine.Application.systemLanguage);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_consoleLogPath(IntPtr L)
- {
- try
- {
- LuaDLL.lua_pushstring(L, UnityEngine.Application.consoleLogPath);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_backgroundLoadingPriority(IntPtr L)
- {
- try
- {
- ToLua.Push(L, UnityEngine.Application.backgroundLoadingPriority);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_internetReachability(IntPtr L)
- {
- try
- {
- ToLua.Push(L, UnityEngine.Application.internetReachability);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_genuine(IntPtr L)
- {
- try
- {
- LuaDLL.lua_pushboolean(L, UnityEngine.Application.genuine);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_genuineCheckAvailable(IntPtr L)
- {
- try
- {
- LuaDLL.lua_pushboolean(L, UnityEngine.Application.genuineCheckAvailable);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_isEditor(IntPtr L)
- {
- try
- {
- LuaDLL.lua_pushboolean(L, UnityEngine.Application.isEditor);
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_lowMemory(IntPtr L)
- {
- ToLua.Push(L, new EventObject("UnityEngine.Application.lowMemory"));
- return 1;
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_logMessageReceived(IntPtr L)
- {
- ToLua.Push(L, new EventObject("UnityEngine.Application.logMessageReceived"));
- return 1;
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_logMessageReceivedThreaded(IntPtr L)
- {
- ToLua.Push(L, new EventObject("UnityEngine.Application.logMessageReceivedThreaded"));
- return 1;
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_onBeforeRender(IntPtr L)
- {
- ToLua.Push(L, new EventObject("UnityEngine.Application.onBeforeRender"));
- return 1;
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_focusChanged(IntPtr L)
- {
- ToLua.Push(L, new EventObject("UnityEngine.Application.focusChanged"));
- return 1;
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_wantsToQuit(IntPtr L)
- {
- ToLua.Push(L, new EventObject("UnityEngine.Application.wantsToQuit"));
- return 1;
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int get_quitting(IntPtr L)
- {
- ToLua.Push(L, new EventObject("UnityEngine.Application.quitting"));
- return 1;
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int set_runInBackground(IntPtr L)
- {
- try
- {
- bool arg0 = LuaDLL.luaL_checkboolean(L, 2);
- UnityEngine.Application.runInBackground = arg0;
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int set_targetFrameRate(IntPtr L)
- {
- try
- {
- int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
- UnityEngine.Application.targetFrameRate = arg0;
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int set_backgroundLoadingPriority(IntPtr L)
- {
- try
- {
- UnityEngine.ThreadPriority arg0 = (UnityEngine.ThreadPriority)ToLua.CheckObject(L, 2, typeof(UnityEngine.ThreadPriority));
- UnityEngine.Application.backgroundLoadingPriority = arg0;
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int set_lowMemory(IntPtr L)
- {
- try
- {
- EventObject arg0 = null;
-
- if (LuaDLL.lua_isuserdata(L, 2) != 0)
- {
- arg0 = (EventObject)ToLua.ToObject(L, 2);
- }
- else
- {
- return LuaDLL.luaL_throw(L, "The event 'UnityEngine.Application.lowMemory' can only appear on the left hand side of += or -= when used outside of the type 'UnityEngine.Application'");
- }
-
- if (arg0.op == EventOp.Add)
- {
- UnityEngine.Application.LowMemoryCallback ev = (UnityEngine.Application.LowMemoryCallback)DelegateFactory.CreateDelegate(typeof(UnityEngine.Application.LowMemoryCallback), arg0.func);
- UnityEngine.Application.lowMemory += ev;
- }
- else if (arg0.op == EventOp.Sub)
- {
- UnityEngine.Application.LowMemoryCallback ev = (UnityEngine.Application.LowMemoryCallback)LuaMisc.GetEventHandler(null, typeof(UnityEngine.Application), "lowMemory");
- Delegate[] ds = ev.GetInvocationList();
- LuaState state = LuaState.Get(L);
-
- for (int i = 0; i < ds.Length; i++)
- {
- ev = (UnityEngine.Application.LowMemoryCallback)ds[i];
- LuaDelegate ld = ev.Target as LuaDelegate;
-
- if (ld != null && ld.func == arg0.func)
- {
- UnityEngine.Application.lowMemory -= ev;
- state.DelayDispose(ld.func);
- break;
- }
- }
-
- arg0.func.Dispose();
- }
-
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int set_logMessageReceived(IntPtr L)
- {
- try
- {
- EventObject arg0 = null;
-
- if (LuaDLL.lua_isuserdata(L, 2) != 0)
- {
- arg0 = (EventObject)ToLua.ToObject(L, 2);
- }
- else
- {
- return LuaDLL.luaL_throw(L, "The event 'UnityEngine.Application.logMessageReceived' can only appear on the left hand side of += or -= when used outside of the type 'UnityEngine.Application'");
- }
-
- if (arg0.op == EventOp.Add)
- {
- UnityEngine.Application.LogCallback ev = (UnityEngine.Application.LogCallback)DelegateFactory.CreateDelegate(typeof(UnityEngine.Application.LogCallback), arg0.func);
- UnityEngine.Application.logMessageReceived += ev;
- }
- else if (arg0.op == EventOp.Sub)
- {
- UnityEngine.Application.LogCallback ev = (UnityEngine.Application.LogCallback)LuaMisc.GetEventHandler(null, typeof(UnityEngine.Application), "logMessageReceived");
- Delegate[] ds = ev.GetInvocationList();
- LuaState state = LuaState.Get(L);
-
- for (int i = 0; i < ds.Length; i++)
- {
- ev = (UnityEngine.Application.LogCallback)ds[i];
- LuaDelegate ld = ev.Target as LuaDelegate;
-
- if (ld != null && ld.func == arg0.func)
- {
- UnityEngine.Application.logMessageReceived -= ev;
- state.DelayDispose(ld.func);
- break;
- }
- }
-
- arg0.func.Dispose();
- }
-
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int set_logMessageReceivedThreaded(IntPtr L)
- {
- try
- {
- EventObject arg0 = null;
-
- if (LuaDLL.lua_isuserdata(L, 2) != 0)
- {
- arg0 = (EventObject)ToLua.ToObject(L, 2);
- }
- else
- {
- return LuaDLL.luaL_throw(L, "The event 'UnityEngine.Application.logMessageReceivedThreaded' can only appear on the left hand side of += or -= when used outside of the type 'UnityEngine.Application'");
- }
-
- if (arg0.op == EventOp.Add)
- {
- UnityEngine.Application.LogCallback ev = (UnityEngine.Application.LogCallback)DelegateFactory.CreateDelegate(typeof(UnityEngine.Application.LogCallback), arg0.func);
- UnityEngine.Application.logMessageReceivedThreaded += ev;
- }
- else if (arg0.op == EventOp.Sub)
- {
- UnityEngine.Application.LogCallback ev = (UnityEngine.Application.LogCallback)LuaMisc.GetEventHandler(null, typeof(UnityEngine.Application), "logMessageReceivedThreaded");
- Delegate[] ds = ev.GetInvocationList();
- LuaState state = LuaState.Get(L);
-
- for (int i = 0; i < ds.Length; i++)
- {
- ev = (UnityEngine.Application.LogCallback)ds[i];
- LuaDelegate ld = ev.Target as LuaDelegate;
-
- if (ld != null && ld.func == arg0.func)
- {
- UnityEngine.Application.logMessageReceivedThreaded -= ev;
- state.DelayDispose(ld.func);
- break;
- }
- }
-
- arg0.func.Dispose();
- }
-
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int set_onBeforeRender(IntPtr L)
- {
- try
- {
- EventObject arg0 = null;
-
- if (LuaDLL.lua_isuserdata(L, 2) != 0)
- {
- arg0 = (EventObject)ToLua.ToObject(L, 2);
- }
- else
- {
- return LuaDLL.luaL_throw(L, "The event 'UnityEngine.Application.onBeforeRender' can only appear on the left hand side of += or -= when used outside of the type 'UnityEngine.Application'");
- }
-
- if (arg0.op == EventOp.Add)
- {
- UnityEngine.Events.UnityAction ev = (UnityEngine.Events.UnityAction)DelegateFactory.CreateDelegate(typeof(UnityEngine.Events.UnityAction), arg0.func);
- UnityEngine.Application.onBeforeRender += ev;
- }
- else if (arg0.op == EventOp.Sub)
- {
- UnityEngine.Events.UnityAction ev = (UnityEngine.Events.UnityAction)LuaMisc.GetEventHandler(null, typeof(UnityEngine.Application), "onBeforeRender");
- Delegate[] ds = ev.GetInvocationList();
- LuaState state = LuaState.Get(L);
-
- for (int i = 0; i < ds.Length; i++)
- {
- ev = (UnityEngine.Events.UnityAction)ds[i];
- LuaDelegate ld = ev.Target as LuaDelegate;
-
- if (ld != null && ld.func == arg0.func)
- {
- UnityEngine.Application.onBeforeRender -= ev;
- state.DelayDispose(ld.func);
- break;
- }
- }
-
- arg0.func.Dispose();
- }
-
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int set_focusChanged(IntPtr L)
- {
- try
- {
- EventObject arg0 = null;
-
- if (LuaDLL.lua_isuserdata(L, 2) != 0)
- {
- arg0 = (EventObject)ToLua.ToObject(L, 2);
- }
- else
- {
- return LuaDLL.luaL_throw(L, "The event 'UnityEngine.Application.focusChanged' can only appear on the left hand side of += or -= when used outside of the type 'UnityEngine.Application'");
- }
-
- if (arg0.op == EventOp.Add)
- {
- System.Action<bool> ev = (System.Action<bool>)DelegateFactory.CreateDelegate(typeof(System.Action<bool>), arg0.func);
- UnityEngine.Application.focusChanged += ev;
- }
- else if (arg0.op == EventOp.Sub)
- {
- System.Action<bool> ev = (System.Action<bool>)LuaMisc.GetEventHandler(null, typeof(UnityEngine.Application), "focusChanged");
- Delegate[] ds = ev.GetInvocationList();
- LuaState state = LuaState.Get(L);
-
- for (int i = 0; i < ds.Length; i++)
- {
- ev = (System.Action<bool>)ds[i];
- LuaDelegate ld = ev.Target as LuaDelegate;
-
- if (ld != null && ld.func == arg0.func)
- {
- UnityEngine.Application.focusChanged -= ev;
- state.DelayDispose(ld.func);
- break;
- }
- }
-
- arg0.func.Dispose();
- }
-
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int set_wantsToQuit(IntPtr L)
- {
- try
- {
- EventObject arg0 = null;
-
- if (LuaDLL.lua_isuserdata(L, 2) != 0)
- {
- arg0 = (EventObject)ToLua.ToObject(L, 2);
- }
- else
- {
- return LuaDLL.luaL_throw(L, "The event 'UnityEngine.Application.wantsToQuit' can only appear on the left hand side of += or -= when used outside of the type 'UnityEngine.Application'");
- }
-
- if (arg0.op == EventOp.Add)
- {
- System.Func<bool> ev = (System.Func<bool>)DelegateFactory.CreateDelegate(typeof(System.Func<bool>), arg0.func);
- UnityEngine.Application.wantsToQuit += ev;
- }
- else if (arg0.op == EventOp.Sub)
- {
- System.Func<bool> ev = (System.Func<bool>)LuaMisc.GetEventHandler(null, typeof(UnityEngine.Application), "wantsToQuit");
- Delegate[] ds = ev.GetInvocationList();
- LuaState state = LuaState.Get(L);
-
- for (int i = 0; i < ds.Length; i++)
- {
- ev = (System.Func<bool>)ds[i];
- LuaDelegate ld = ev.Target as LuaDelegate;
-
- if (ld != null && ld.func == arg0.func)
- {
- UnityEngine.Application.wantsToQuit -= ev;
- state.DelayDispose(ld.func);
- break;
- }
- }
-
- arg0.func.Dispose();
- }
-
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int set_quitting(IntPtr L)
- {
- try
- {
- EventObject arg0 = null;
-
- if (LuaDLL.lua_isuserdata(L, 2) != 0)
- {
- arg0 = (EventObject)ToLua.ToObject(L, 2);
- }
- else
- {
- return LuaDLL.luaL_throw(L, "The event 'UnityEngine.Application.quitting' can only appear on the left hand side of += or -= when used outside of the type 'UnityEngine.Application'");
- }
-
- if (arg0.op == EventOp.Add)
- {
- System.Action ev = (System.Action)DelegateFactory.CreateDelegate(typeof(System.Action), arg0.func);
- UnityEngine.Application.quitting += ev;
- }
- else if (arg0.op == EventOp.Sub)
- {
- System.Action ev = (System.Action)LuaMisc.GetEventHandler(null, typeof(UnityEngine.Application), "quitting");
- Delegate[] ds = ev.GetInvocationList();
- LuaState state = LuaState.Get(L);
-
- for (int i = 0; i < ds.Length; i++)
- {
- ev = (System.Action)ds[i];
- LuaDelegate ld = ev.Target as LuaDelegate;
-
- if (ld != null && ld.func == arg0.func)
- {
- UnityEngine.Application.quitting -= ev;
- state.DelayDispose(ld.func);
- break;
- }
- }
-
- arg0.func.Dispose();
- }
-
- return 0;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int UnityEngine_Application_AdvertisingIdentifierCallback(IntPtr L)
- {
- try
- {
- int count = LuaDLL.lua_gettop(L);
- LuaFunction func = ToLua.CheckLuaFunction(L, 1);
-
- if (count == 1)
- {
- Delegate arg1 = DelegateFactory.CreateDelegate(typeof(UnityEngine.Application.AdvertisingIdentifierCallback), func);
- ToLua.Push(L, arg1);
- }
- else
- {
- LuaTable self = ToLua.CheckLuaTable(L, 2);
- Delegate arg1 = DelegateFactory.CreateDelegate(typeof(UnityEngine.Application.AdvertisingIdentifierCallback), func, self);
- ToLua.Push(L, arg1);
- }
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int UnityEngine_Application_LogCallback(IntPtr L)
- {
- try
- {
- int count = LuaDLL.lua_gettop(L);
- LuaFunction func = ToLua.CheckLuaFunction(L, 1);
-
- if (count == 1)
- {
- Delegate arg1 = DelegateFactory.CreateDelegate(typeof(UnityEngine.Application.LogCallback), func);
- ToLua.Push(L, arg1);
- }
- else
- {
- LuaTable self = ToLua.CheckLuaTable(L, 2);
- Delegate arg1 = DelegateFactory.CreateDelegate(typeof(UnityEngine.Application.LogCallback), func, self);
- ToLua.Push(L, arg1);
- }
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
-
- [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
- static int UnityEngine_Application_LowMemoryCallback(IntPtr L)
- {
- try
- {
- int count = LuaDLL.lua_gettop(L);
- LuaFunction func = ToLua.CheckLuaFunction(L, 1);
-
- if (count == 1)
- {
- Delegate arg1 = DelegateFactory.CreateDelegate(typeof(UnityEngine.Application.LowMemoryCallback), func);
- ToLua.Push(L, arg1);
- }
- else
- {
- LuaTable self = ToLua.CheckLuaTable(L, 2);
- Delegate arg1 = DelegateFactory.CreateDelegate(typeof(UnityEngine.Application.LowMemoryCallback), func, self);
- ToLua.Push(L, arg1);
- }
- return 1;
- }
- catch(Exception e)
- {
- return LuaDLL.toluaL_exception(L, e);
- }
- }
- }
-
|