static int CacheLoadGameObject(IntPtr L)
	{
		try
		{
			int count = LuaDLL.lua_gettop(L);

			if (count == 3)
			{
				WCG.ResourceMgr obj = (WCG.ResourceMgr)ToLua.CheckObject<WCG.ResourceMgr>(L, 1);
				string arg0 = ToLua.CheckString(L, 2);
				int arg1 = (int)LuaDLL.luaL_checknumber(L, 3);
				obj.CacheLoadGameObject(arg0, arg1);
				return 0;
			}
			else if (count == 4)
			{
				WCG.ResourceMgr obj = (WCG.ResourceMgr)ToLua.CheckObject<WCG.ResourceMgr>(L, 1);
				string arg0 = ToLua.CheckString(L, 2);
				int arg1 = (int)LuaDLL.luaL_checknumber(L, 3);
				bool arg2 = LuaDLL.luaL_checkboolean(L, 4);
				obj.CacheLoadGameObject(arg0, arg1, arg2);
				return 0;
			}
			else
			{
				return LuaDLL.luaL_throw(L, "invalid arguments to method: WCG.ResourceMgr.CacheLoadGameObject");
			}
		}
		catch (Exception e)
		{
			return LuaDLL.toluaL_exception(L, e);
		}
	}
	static int OnInsAsynAssObj(IntPtr L)
	{
		try
		{
			int count = LuaDLL.lua_gettop(L);

			if (count == 4)
			{
				WCG.ResourceMgr obj = (WCG.ResourceMgr)ToLua.CheckObject<WCG.ResourceMgr>(L, 1);
				UnityEngine.Events.UnityAction<string,UnityEngine.GameObject> arg0 = (UnityEngine.Events.UnityAction<string,UnityEngine.GameObject>)ToLua.CheckDelegate<UnityEngine.Events.UnityAction<string,UnityEngine.GameObject>>(L, 2);
				string arg1 = ToLua.CheckString(L, 3);
				UnityEngine.GameObject arg2 = (UnityEngine.GameObject)ToLua.CheckObject(L, 4, typeof(UnityEngine.GameObject));
				obj.OnInsAsynAssObj(arg0, arg1, arg2);
				return 0;
			}
			else if (count == 5)
			{
				WCG.ResourceMgr obj = (WCG.ResourceMgr)ToLua.CheckObject<WCG.ResourceMgr>(L, 1);
				UnityEngine.Events.UnityAction<string,UnityEngine.GameObject> arg0 = (UnityEngine.Events.UnityAction<string,UnityEngine.GameObject>)ToLua.CheckDelegate<UnityEngine.Events.UnityAction<string,UnityEngine.GameObject>>(L, 2);
				string arg1 = ToLua.CheckString(L, 3);
				UnityEngine.GameObject arg2 = (UnityEngine.GameObject)ToLua.CheckObject(L, 4, typeof(UnityEngine.GameObject));
				bool arg3 = LuaDLL.luaL_checkboolean(L, 5);
				obj.OnInsAsynAssObj(arg0, arg1, arg2, arg3);
				return 0;
			}
			else
			{
				return LuaDLL.luaL_throw(L, "invalid arguments to method: WCG.ResourceMgr.OnInsAsynAssObj");
			}
		}
		catch (Exception e)
		{
			return LuaDLL.toluaL_exception(L, e);
		}
	}
Beispiel #3
0
 static int set_ms_resourceMgr(IntPtr L)
 {
     try
     {
         WCG.ResourceMgr arg0 = (WCG.ResourceMgr)ToLua.CheckObject <WCG.ResourceMgr>(L, 2);
         WCG.GameMgr.ms_resourceMgr = arg0;
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
	static int Destroy(IntPtr L)
	{
		try
		{
			ToLua.CheckArgsCount(L, 1);
			WCG.ResourceMgr obj = (WCG.ResourceMgr)ToLua.CheckObject<WCG.ResourceMgr>(L, 1);
			obj.Destroy();
			return 0;
		}
		catch (Exception e)
		{
			return LuaDLL.toluaL_exception(L, e);
		}
	}
	static int InitResLoadCallBack(IntPtr L)
	{
		try
		{
			ToLua.CheckArgsCount(L, 1);
			WCG.ResourceMgr obj = (WCG.ResourceMgr)ToLua.CheckObject<WCG.ResourceMgr>(L, 1);
			obj.InitResLoadCallBack();
			return 0;
		}
		catch (Exception e)
		{
			return LuaDLL.toluaL_exception(L, e);
		}
	}
	static int ClearInsGameObjOnChangeScene(IntPtr L)
	{
		try
		{
			ToLua.CheckArgsCount(L, 1);
			WCG.ResourceMgr obj = (WCG.ResourceMgr)ToLua.CheckObject<WCG.ResourceMgr>(L, 1);
			obj.ClearInsGameObjOnChangeScene();
			return 0;
		}
		catch (Exception e)
		{
			return LuaDLL.toluaL_exception(L, e);
		}
	}
	static int ClearInsCacheGameObj(IntPtr L)
	{
		try
		{
			ToLua.CheckArgsCount(L, 3);
			WCG.ResourceMgr obj = (WCG.ResourceMgr)ToLua.CheckObject<WCG.ResourceMgr>(L, 1);
			string arg0 = ToLua.CheckString(L, 2);
			int arg1 = (int)LuaDLL.luaL_checknumber(L, 3);
			obj.ClearInsCacheGameObj(arg0, arg1);
			return 0;
		}
		catch (Exception e)
		{
			return LuaDLL.toluaL_exception(L, e);
		}
	}
	static int GetAllDependencies(IntPtr L)
	{
		try
		{
			ToLua.CheckArgsCount(L, 2);
			WCG.ResourceMgr obj = (WCG.ResourceMgr)ToLua.CheckObject<WCG.ResourceMgr>(L, 1);
			string arg0 = ToLua.CheckString(L, 2);
			string[] o = obj.GetAllDependencies(arg0);
			ToLua.Push(L, o);
			return 1;
		}
		catch (Exception e)
		{
			return LuaDLL.toluaL_exception(L, e);
		}
	}
	static int AsynABIsLoaded(IntPtr L)
	{
		try
		{
			ToLua.CheckArgsCount(L, 2);
			WCG.ResourceMgr obj = (WCG.ResourceMgr)ToLua.CheckObject<WCG.ResourceMgr>(L, 1);
			string arg0 = ToLua.CheckString(L, 2);
			bool o = obj.AsynABIsLoaded(arg0);
			LuaDLL.lua_pushboolean(L, o);
			return 1;
		}
		catch (Exception e)
		{
			return LuaDLL.toluaL_exception(L, e);
		}
	}
	static int GetAsynABLoaded(IntPtr L)
	{
		try
		{
			ToLua.CheckArgsCount(L, 2);
			WCG.ResourceMgr obj = (WCG.ResourceMgr)ToLua.CheckObject<WCG.ResourceMgr>(L, 1);
			string arg0 = ToLua.CheckString(L, 2);
			UnityEngine.AssetBundle o = obj.GetAsynABLoaded(arg0);
			ToLua.PushSealed(L, o);
			return 1;
		}
		catch (Exception e)
		{
			return LuaDLL.toluaL_exception(L, e);
		}
	}
	static int OnAsynLoadObjOk(IntPtr L)
	{
		try
		{
			ToLua.CheckArgsCount(L, 3);
			WCG.ResourceMgr obj = (WCG.ResourceMgr)ToLua.CheckObject<WCG.ResourceMgr>(L, 1);
			string arg0 = ToLua.CheckString(L, 2);
			UnityEngine.GameObject arg1 = (UnityEngine.GameObject)ToLua.CheckObject(L, 3, typeof(UnityEngine.GameObject));
			obj.OnAsynLoadObjOk(arg0, arg1);
			return 0;
		}
		catch (Exception e)
		{
			return LuaDLL.toluaL_exception(L, e);
		}
	}
	static int LoadAssetBundleAsync(IntPtr L)
	{
		try
		{
			ToLua.CheckArgsCount(L, 3);
			WCG.ResourceMgr obj = (WCG.ResourceMgr)ToLua.CheckObject<WCG.ResourceMgr>(L, 1);
			string arg0 = ToLua.CheckString(L, 2);
			UnityEngine.Events.UnityAction<string,UnityEngine.AssetBundle> arg1 = (UnityEngine.Events.UnityAction<string,UnityEngine.AssetBundle>)ToLua.CheckDelegate<UnityEngine.Events.UnityAction<string,UnityEngine.AssetBundle>>(L, 3);
			obj.LoadAssetBundleAsync(arg0, arg1);
			return 0;
		}
		catch (Exception e)
		{
			return LuaDLL.toluaL_exception(L, e);
		}
	}
	static int AsynABIsLoading(IntPtr L)
	{
		try
		{
			ToLua.CheckArgsCount(L, 3);
			WCG.ResourceMgr obj = (WCG.ResourceMgr)ToLua.CheckObject<WCG.ResourceMgr>(L, 1);
			string arg0 = ToLua.CheckString(L, 2);
			UnityEngine.Events.UnityAction<string,UnityEngine.AssetBundle> arg1 = (UnityEngine.Events.UnityAction<string,UnityEngine.AssetBundle>)ToLua.CheckDelegate<UnityEngine.Events.UnityAction<string,UnityEngine.AssetBundle>>(L, 3);
			bool o = obj.AsynABIsLoading(arg0, arg1);
			LuaDLL.lua_pushboolean(L, o);
			return 1;
		}
		catch (Exception e)
		{
			return LuaDLL.toluaL_exception(L, e);
		}
	}
	static int AddAssObjToCache(IntPtr L)
	{
		try
		{
			int count = LuaDLL.lua_gettop(L);

			if (count == 5)
			{
				WCG.ResourceMgr obj = (WCG.ResourceMgr)ToLua.CheckObject<WCG.ResourceMgr>(L, 1);
				string arg0 = ToLua.CheckString(L, 2);
				string arg1 = ToLua.CheckString(L, 3);
				UnityEngine.Object arg2 = (UnityEngine.Object)ToLua.CheckObject<UnityEngine.Object>(L, 4);
				UnityEngine.AssetBundle arg3 = (UnityEngine.AssetBundle)ToLua.CheckObject(L, 5, typeof(UnityEngine.AssetBundle));
				obj.AddAssObjToCache(arg0, arg1, arg2, arg3);
				return 0;
			}
			else if (count == 6)
			{
				WCG.ResourceMgr obj = (WCG.ResourceMgr)ToLua.CheckObject<WCG.ResourceMgr>(L, 1);
				string arg0 = ToLua.CheckString(L, 2);
				string arg1 = ToLua.CheckString(L, 3);
				UnityEngine.Object arg2 = (UnityEngine.Object)ToLua.CheckObject<UnityEngine.Object>(L, 4);
				UnityEngine.AssetBundle arg3 = (UnityEngine.AssetBundle)ToLua.CheckObject(L, 5, typeof(UnityEngine.AssetBundle));
				bool arg4 = LuaDLL.luaL_checkboolean(L, 6);
				obj.AddAssObjToCache(arg0, arg1, arg2, arg3, arg4);
				return 0;
			}
			else
			{
				return LuaDLL.luaL_throw(L, "invalid arguments to method: WCG.ResourceMgr.AddAssObjToCache");
			}
		}
		catch (Exception e)
		{
			return LuaDLL.toluaL_exception(L, e);
		}
	}