361 lines
		
	
	
		
			6.8 KiB
		
	
	
	
		
			C#
		
	
			
		
		
	
	
			361 lines
		
	
	
		
			6.8 KiB
		
	
	
	
		
			C#
		
	
//this source code was auto-generated by tolua#, do not modify it
 | 
						|
using System;
 | 
						|
using LuaInterface;
 | 
						|
 | 
						|
public class AppWrap
 | 
						|
{
 | 
						|
	public static void Register(LuaState L)
 | 
						|
	{
 | 
						|
		L.BeginClass(typeof(App), typeof(GameCore.UnitySingleton<App>));
 | 
						|
		L.RegFunction("Initialize", Initialize);
 | 
						|
		L.RegFunction("StartUp", StartUp);
 | 
						|
		L.RegFunction("InitResMgr", InitResMgr);
 | 
						|
		L.RegFunction("ReStart", ReStart);
 | 
						|
		L.RegFunction("CallLuaMessage", CallLuaMessage);
 | 
						|
		L.RegFunction("__eq", op_Equality);
 | 
						|
		L.RegFunction("__tostring", ToLua.op_ToString);
 | 
						|
		L.RegVar("ResMgr", get_ResMgr, null);
 | 
						|
		L.RegVar("AssetBundleMgr", get_AssetBundleMgr, null);
 | 
						|
		L.RegVar("LuaMgr", get_LuaMgr, null);
 | 
						|
		L.RegVar("ObjectPoolMgr", get_ObjectPoolMgr, null);
 | 
						|
		L.RegVar("NetWorkMgr", get_NetWorkMgr, null);
 | 
						|
		L.RegVar("CompressMgr", get_CompressMgr, null);
 | 
						|
		L.RegVar("GameMgr", get_GameMgr, null);
 | 
						|
		L.RegVar("TAMgr", get_TAMgr, null);
 | 
						|
		L.RegVar("TBDMgr", get_TBDMgr, null);
 | 
						|
		L.RegVar("BuglyMgr", get_BuglyMgr, null);
 | 
						|
		L.RegVar("ImageDownloadMgr", get_ImageDownloadMgr, null);
 | 
						|
		L.RegVar("SpeakMgr", get_SpeakMgr, null);
 | 
						|
		L.RegVar("SDKMgr", get_SDKMgr, null);
 | 
						|
		L.RegVar("RRenderMgr", get_RRenderMgr, null);
 | 
						|
		L.RegVar("VersionMgr", get_VersionMgr, null);
 | 
						|
		L.RegVar("ConfigMgr", get_ConfigMgr, null);
 | 
						|
		L.EndClass();
 | 
						|
	}
 | 
						|
 | 
						|
	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
 | 
						|
	static int Initialize(IntPtr L)
 | 
						|
	{
 | 
						|
		try
 | 
						|
		{
 | 
						|
			ToLua.CheckArgsCount(L, 1);
 | 
						|
			App obj = (App)ToLua.CheckObject<App>(L, 1);
 | 
						|
			obj.Initialize();
 | 
						|
			return 0;
 | 
						|
		}
 | 
						|
		catch (Exception e)
 | 
						|
		{
 | 
						|
			return LuaDLL.toluaL_exception(L, e);
 | 
						|
		}
 | 
						|
	}
 | 
						|
 | 
						|
	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
 | 
						|
	static int StartUp(IntPtr L)
 | 
						|
	{
 | 
						|
		try
 | 
						|
		{
 | 
						|
			ToLua.CheckArgsCount(L, 1);
 | 
						|
			App obj = (App)ToLua.CheckObject<App>(L, 1);
 | 
						|
			obj.StartUp();
 | 
						|
			return 0;
 | 
						|
		}
 | 
						|
		catch (Exception e)
 | 
						|
		{
 | 
						|
			return LuaDLL.toluaL_exception(L, e);
 | 
						|
		}
 | 
						|
	}
 | 
						|
 | 
						|
	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
 | 
						|
	static int InitResMgr(IntPtr L)
 | 
						|
	{
 | 
						|
		try
 | 
						|
		{
 | 
						|
			ToLua.CheckArgsCount(L, 1);
 | 
						|
			App obj = (App)ToLua.CheckObject<App>(L, 1);
 | 
						|
			obj.InitResMgr();
 | 
						|
			return 0;
 | 
						|
		}
 | 
						|
		catch (Exception e)
 | 
						|
		{
 | 
						|
			return LuaDLL.toluaL_exception(L, e);
 | 
						|
		}
 | 
						|
	}
 | 
						|
 | 
						|
	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
 | 
						|
	static int ReStart(IntPtr L)
 | 
						|
	{
 | 
						|
		try
 | 
						|
		{
 | 
						|
			ToLua.CheckArgsCount(L, 1);
 | 
						|
			App obj = (App)ToLua.CheckObject<App>(L, 1);
 | 
						|
			obj.ReStart();
 | 
						|
			return 0;
 | 
						|
		}
 | 
						|
		catch (Exception e)
 | 
						|
		{
 | 
						|
			return LuaDLL.toluaL_exception(L, e);
 | 
						|
		}
 | 
						|
	}
 | 
						|
 | 
						|
	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
 | 
						|
	static int CallLuaMessage(IntPtr L)
 | 
						|
	{
 | 
						|
		try
 | 
						|
		{
 | 
						|
			ToLua.CheckArgsCount(L, 3);
 | 
						|
			App obj = (App)ToLua.CheckObject<App>(L, 1);
 | 
						|
			string arg0 = ToLua.CheckString(L, 2);
 | 
						|
			object arg1 = ToLua.ToVarObject(L, 3);
 | 
						|
			obj.CallLuaMessage(arg0, arg1);
 | 
						|
			return 0;
 | 
						|
		}
 | 
						|
		catch (Exception e)
 | 
						|
		{
 | 
						|
			return LuaDLL.toluaL_exception(L, e);
 | 
						|
		}
 | 
						|
	}
 | 
						|
 | 
						|
	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
 | 
						|
	static int op_Equality(IntPtr L)
 | 
						|
	{
 | 
						|
		try
 | 
						|
		{
 | 
						|
			ToLua.CheckArgsCount(L, 2);
 | 
						|
			UnityEngine.Object arg0 = (UnityEngine.Object)ToLua.ToObject(L, 1);
 | 
						|
			UnityEngine.Object arg1 = (UnityEngine.Object)ToLua.ToObject(L, 2);
 | 
						|
			bool o = arg0 == arg1;
 | 
						|
			LuaDLL.lua_pushboolean(L, o);
 | 
						|
			return 1;
 | 
						|
		}
 | 
						|
		catch (Exception e)
 | 
						|
		{
 | 
						|
			return LuaDLL.toluaL_exception(L, e);
 | 
						|
		}
 | 
						|
	}
 | 
						|
 | 
						|
	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
 | 
						|
	static int get_ResMgr(IntPtr L)
 | 
						|
	{
 | 
						|
		try
 | 
						|
		{
 | 
						|
			ToLua.PushObject(L, App.ResMgr);
 | 
						|
			return 1;
 | 
						|
		}
 | 
						|
		catch (Exception e)
 | 
						|
		{
 | 
						|
			return LuaDLL.toluaL_exception(L, e);
 | 
						|
		}
 | 
						|
	}
 | 
						|
 | 
						|
	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
 | 
						|
	static int get_AssetBundleMgr(IntPtr L)
 | 
						|
	{
 | 
						|
		try
 | 
						|
		{
 | 
						|
			ToLua.Push(L, App.AssetBundleMgr);
 | 
						|
			return 1;
 | 
						|
		}
 | 
						|
		catch (Exception e)
 | 
						|
		{
 | 
						|
			return LuaDLL.toluaL_exception(L, e);
 | 
						|
		}
 | 
						|
	}
 | 
						|
 | 
						|
	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
 | 
						|
	static int get_LuaMgr(IntPtr L)
 | 
						|
	{
 | 
						|
		try
 | 
						|
		{
 | 
						|
			ToLua.Push(L, App.LuaMgr);
 | 
						|
			return 1;
 | 
						|
		}
 | 
						|
		catch (Exception e)
 | 
						|
		{
 | 
						|
			return LuaDLL.toluaL_exception(L, e);
 | 
						|
		}
 | 
						|
	}
 | 
						|
 | 
						|
	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
 | 
						|
	static int get_ObjectPoolMgr(IntPtr L)
 | 
						|
	{
 | 
						|
		try
 | 
						|
		{
 | 
						|
			ToLua.Push(L, App.ObjectPoolMgr);
 | 
						|
			return 1;
 | 
						|
		}
 | 
						|
		catch (Exception e)
 | 
						|
		{
 | 
						|
			return LuaDLL.toluaL_exception(L, e);
 | 
						|
		}
 | 
						|
	}
 | 
						|
 | 
						|
	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
 | 
						|
	static int get_NetWorkMgr(IntPtr L)
 | 
						|
	{
 | 
						|
		try
 | 
						|
		{
 | 
						|
			ToLua.Push(L, App.NetWorkMgr);
 | 
						|
			return 1;
 | 
						|
		}
 | 
						|
		catch (Exception e)
 | 
						|
		{
 | 
						|
			return LuaDLL.toluaL_exception(L, e);
 | 
						|
		}
 | 
						|
	}
 | 
						|
 | 
						|
	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
 | 
						|
	static int get_CompressMgr(IntPtr L)
 | 
						|
	{
 | 
						|
		try
 | 
						|
		{
 | 
						|
			ToLua.Push(L, App.CompressMgr);
 | 
						|
			return 1;
 | 
						|
		}
 | 
						|
		catch (Exception e)
 | 
						|
		{
 | 
						|
			return LuaDLL.toluaL_exception(L, e);
 | 
						|
		}
 | 
						|
	}
 | 
						|
 | 
						|
	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
 | 
						|
	static int get_GameMgr(IntPtr L)
 | 
						|
	{
 | 
						|
		try
 | 
						|
		{
 | 
						|
			ToLua.Push(L, App.GameMgr);
 | 
						|
			return 1;
 | 
						|
		}
 | 
						|
		catch (Exception e)
 | 
						|
		{
 | 
						|
			return LuaDLL.toluaL_exception(L, e);
 | 
						|
		}
 | 
						|
	}
 | 
						|
 | 
						|
	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
 | 
						|
	static int get_TAMgr(IntPtr L)
 | 
						|
	{
 | 
						|
		try
 | 
						|
		{
 | 
						|
			ToLua.Push(L, App.TAMgr);
 | 
						|
			return 1;
 | 
						|
		}
 | 
						|
		catch (Exception e)
 | 
						|
		{
 | 
						|
			return LuaDLL.toluaL_exception(L, e);
 | 
						|
		}
 | 
						|
	}
 | 
						|
 | 
						|
	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
 | 
						|
	static int get_TBDMgr(IntPtr L)
 | 
						|
	{
 | 
						|
		try
 | 
						|
		{
 | 
						|
			ToLua.Push(L, App.TBDMgr);
 | 
						|
			return 1;
 | 
						|
		}
 | 
						|
		catch (Exception e)
 | 
						|
		{
 | 
						|
			return LuaDLL.toluaL_exception(L, e);
 | 
						|
		}
 | 
						|
	}
 | 
						|
 | 
						|
	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
 | 
						|
	static int get_BuglyMgr(IntPtr L)
 | 
						|
	{
 | 
						|
		try
 | 
						|
		{
 | 
						|
			ToLua.Push(L, App.BuglyMgr);
 | 
						|
			return 1;
 | 
						|
		}
 | 
						|
		catch (Exception e)
 | 
						|
		{
 | 
						|
			return LuaDLL.toluaL_exception(L, e);
 | 
						|
		}
 | 
						|
	}
 | 
						|
 | 
						|
	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
 | 
						|
	static int get_ImageDownloadMgr(IntPtr L)
 | 
						|
	{
 | 
						|
		try
 | 
						|
		{
 | 
						|
			ToLua.Push(L, App.ImageDownloadMgr);
 | 
						|
			return 1;
 | 
						|
		}
 | 
						|
		catch (Exception e)
 | 
						|
		{
 | 
						|
			return LuaDLL.toluaL_exception(L, e);
 | 
						|
		}
 | 
						|
	}
 | 
						|
 | 
						|
	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
 | 
						|
	static int get_SpeakMgr(IntPtr L)
 | 
						|
	{
 | 
						|
		try
 | 
						|
		{
 | 
						|
			ToLua.Push(L, App.SpeakMgr);
 | 
						|
			return 1;
 | 
						|
		}
 | 
						|
		catch (Exception e)
 | 
						|
		{
 | 
						|
			return LuaDLL.toluaL_exception(L, e);
 | 
						|
		}
 | 
						|
	}
 | 
						|
 | 
						|
	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
 | 
						|
	static int get_SDKMgr(IntPtr L)
 | 
						|
	{
 | 
						|
		try
 | 
						|
		{
 | 
						|
			ToLua.Push(L, App.SDKMgr);
 | 
						|
			return 1;
 | 
						|
		}
 | 
						|
		catch (Exception e)
 | 
						|
		{
 | 
						|
			return LuaDLL.toluaL_exception(L, e);
 | 
						|
		}
 | 
						|
	}
 | 
						|
 | 
						|
	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
 | 
						|
	static int get_RRenderMgr(IntPtr L)
 | 
						|
	{
 | 
						|
		try
 | 
						|
		{
 | 
						|
			ToLua.Push(L, App.RRenderMgr);
 | 
						|
			return 1;
 | 
						|
		}
 | 
						|
		catch (Exception e)
 | 
						|
		{
 | 
						|
			return LuaDLL.toluaL_exception(L, e);
 | 
						|
		}
 | 
						|
	}
 | 
						|
 | 
						|
	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
 | 
						|
	static int get_VersionMgr(IntPtr L)
 | 
						|
	{
 | 
						|
		try
 | 
						|
		{
 | 
						|
			ToLua.PushObject(L, App.VersionMgr);
 | 
						|
			return 1;
 | 
						|
		}
 | 
						|
		catch (Exception e)
 | 
						|
		{
 | 
						|
			return LuaDLL.toluaL_exception(L, e);
 | 
						|
		}
 | 
						|
	}
 | 
						|
 | 
						|
	[MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))]
 | 
						|
	static int get_ConfigMgr(IntPtr L)
 | 
						|
	{
 | 
						|
		try
 | 
						|
		{
 | 
						|
			ToLua.PushObject(L, App.ConfigMgr);
 | 
						|
			return 1;
 | 
						|
		}
 | 
						|
		catch (Exception e)
 | 
						|
		{
 | 
						|
			return LuaDLL.toluaL_exception(L, e);
 | 
						|
		}
 | 
						|
	}
 | 
						|
}
 | 
						|
 |