Beispiel #1
0
    static int LoadPrefab(IntPtr L)
    {
        try
        {
            int count = LuaDLL.lua_gettop(L);

            if (count == 3)
            {
                LuaFramework.ResourceManager obj = (LuaFramework.ResourceManager)ToLua.CheckObject <LuaFramework.ResourceManager>(L, 1);
                string             arg0          = ToLua.CheckString(L, 2);
                string             arg1          = ToLua.CheckString(L, 3);
                UnityEngine.Object o             = obj.LoadPrefab(arg0, arg1);
                ToLua.Push(L, o);
                return(1);
            }
            else if (count == 4)
            {
                LuaFramework.ResourceManager obj = (LuaFramework.ResourceManager)ToLua.CheckObject <LuaFramework.ResourceManager>(L, 1);
                string      arg0 = ToLua.CheckString(L, 2);
                string[]    arg1 = ToLua.CheckStringArray(L, 3);
                LuaFunction arg2 = ToLua.CheckLuaFunction(L, 4);
                obj.LoadPrefab(arg0, arg1, arg2);
                return(0);
            }
            else
            {
                return(LuaDLL.luaL_throw(L, "invalid arguments to method: LuaFramework.ResourceManager.LoadPrefab"));
            }
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }
Beispiel #2
0
    static int LoadAsync(IntPtr L)
    {
        try
        {
            int count = LuaDLL.lua_gettop(L);

            if (count == 2)
            {
                XPage obj = (XPage)ToLua.CheckObject(L, 1, typeof(XPage));
                System.Action <UnityEngine.GameObject> arg0 = (System.Action <UnityEngine.GameObject>)ToLua.CheckDelegate <System.Action <UnityEngine.GameObject> >(L, 2);
                obj.LoadAsync(arg0);
                return(0);
            }
            else if (count == 3)
            {
                XPage obj = (XPage)ToLua.CheckObject(L, 1, typeof(XPage));
                LuaFramework.ResourceManager           arg0 = (LuaFramework.ResourceManager)ToLua.CheckObject <LuaFramework.ResourceManager>(L, 2);
                System.Action <UnityEngine.GameObject> arg1 = (System.Action <UnityEngine.GameObject>)ToLua.CheckDelegate <System.Action <UnityEngine.GameObject> >(L, 3);
                obj.LoadAsync(arg0, arg1);
                return(0);
            }
            else
            {
                return(LuaDLL.luaL_throw(L, "invalid arguments to method: XPage.LoadAsync"));
            }
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }
    static int Load(IntPtr L)
    {
        try
        {
            int count = LuaDLL.lua_gettop(L);

            if (count == 2)
            {
                LuaFramework.ResourceManager obj = (LuaFramework.ResourceManager)ToLua.CheckObject <LuaFramework.ResourceManager>(L, 1);
                string arg0 = ToLua.CheckString(L, 2);
                obj.Load(arg0);
                return(0);
            }
            else if (count == 3)
            {
                LuaFramework.ResourceManager obj = (LuaFramework.ResourceManager)ToLua.CheckObject <LuaFramework.ResourceManager>(L, 1);
                string      arg0 = ToLua.CheckString(L, 2);
                LuaFunction arg1 = ToLua.CheckLuaFunction(L, 3);
                obj.Load(arg0, arg1);
                return(0);
            }
            else
            {
                return(LuaDLL.luaL_throw(L, "invalid arguments to method: LuaFramework.ResourceManager.Load"));
            }
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }
Beispiel #4
0
    static int Initialize(IntPtr L)
    {
        try
        {
            ToLua.CheckArgsCount(L, 3);
            LuaFramework.ResourceManager obj = (LuaFramework.ResourceManager)ToLua.CheckObject(L, 1, typeof(LuaFramework.ResourceManager));
            string        arg0      = ToLua.CheckString(L, 2);
            System.Action arg1      = null;
            LuaTypes      funcType3 = LuaDLL.lua_type(L, 3);

            if (funcType3 != LuaTypes.LUA_TFUNCTION)
            {
                arg1 = (System.Action)ToLua.CheckObject(L, 3, typeof(System.Action));
            }
            else
            {
                LuaFunction func = ToLua.ToLuaFunction(L, 3);
                arg1 = DelegateFactory.CreateDelegate(typeof(System.Action), func) as System.Action;
            }

            obj.Initialize(arg0, arg1);
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }
Beispiel #5
0
    static int LoadSprite(IntPtr L)
    {
        try
        {
            int count = LuaDLL.lua_gettop(L);

            if (count == 4)
            {
                LuaFramework.ResourceManager obj = (LuaFramework.ResourceManager)ToLua.CheckObject <LuaFramework.ResourceManager>(L, 1);
                string      arg0 = ToLua.CheckString(L, 2);
                string[]    arg1 = ToLua.CheckStringArray(L, 3);
                LuaFunction arg2 = ToLua.CheckLuaFunction(L, 4);
                obj.LoadSprite(arg0, arg1, arg2);
                return(0);
            }
            else if (count == 5)
            {
                LuaFramework.ResourceManager obj = (LuaFramework.ResourceManager)ToLua.CheckObject <LuaFramework.ResourceManager>(L, 1);
                string                 arg0      = ToLua.CheckString(L, 2);
                string[]               arg1      = ToLua.CheckStringArray(L, 3);
                LuaFunction            arg2      = ToLua.CheckLuaFunction(L, 4);
                UnityEngine.GameObject arg3      = (UnityEngine.GameObject)ToLua.CheckObject(L, 5, typeof(UnityEngine.GameObject));
                obj.LoadSprite(arg0, arg1, arg2, arg3);
                return(0);
            }
            else
            {
                return(LuaDLL.luaL_throw(L, "invalid arguments to method: LuaFramework.ResourceManager.LoadSprite"));
            }
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }
Beispiel #6
0
    static int LoadAudioClip(IntPtr L)
    {
        try
        {
            ToLua.CheckArgsCount(L, 4);
            LuaFramework.ResourceManager obj = (LuaFramework.ResourceManager)ToLua.CheckObject(L, 1, typeof(LuaFramework.ResourceManager));
            string arg0 = ToLua.CheckString(L, 2);
            string arg1 = ToLua.CheckString(L, 3);
            System.Action <UnityEngine.Object[]> arg2 = null;
            LuaTypes funcType4 = LuaDLL.lua_type(L, 4);

            if (funcType4 != LuaTypes.LUA_TFUNCTION)
            {
                arg2 = (System.Action <UnityEngine.Object[]>)ToLua.CheckObject(L, 4, typeof(System.Action <UnityEngine.Object[]>));
            }
            else
            {
                LuaFunction func = ToLua.ToLuaFunction(L, 4);
                arg2 = DelegateFactory.CreateDelegate(typeof(System.Action <UnityEngine.Object[]>), func) as System.Action <UnityEngine.Object[]>;
            }

            obj.LoadAudioClip(arg0, arg1, arg2);
            return(0);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }
    static int LoadPrefab(IntPtr L)
    {
        try
        {
            int count = LuaDLL.lua_gettop(L);

            if (count == 2)
            {
                LuaFramework.ResourceManager obj = (LuaFramework.ResourceManager)ToLua.CheckObject <LuaFramework.ResourceManager>(L, 1);
                string arg0 = ToLua.CheckString(L, 2);
                UnityEngine.GameObject o = obj.LoadPrefab(arg0);
                ToLua.PushSealed(L, o);
                return(1);
            }
            else if (count == 3)
            {
                LuaFramework.ResourceManager obj = (LuaFramework.ResourceManager)ToLua.CheckObject <LuaFramework.ResourceManager>(L, 1);
                string arg0 = ToLua.CheckString(L, 2);
                UnityEngine.GameObject arg1 = (UnityEngine.GameObject)ToLua.CheckObject(L, 3, typeof(UnityEngine.GameObject));
                UnityEngine.GameObject o    = obj.LoadPrefab(arg0, arg1);
                ToLua.PushSealed(L, o);
                return(1);
            }
            else
            {
                return(LuaDLL.luaL_throw(L, "invalid arguments to method: LuaFramework.ResourceManager.LoadPrefab"));
            }
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }
    static int LoadAssetBundle(IntPtr L)
    {
        try
        {
            int count = LuaDLL.lua_gettop(L);

            if (count == 3 && TypeChecker.CheckTypes <System.Action <UnityEngine.Object[]> >(L, 3))
            {
                LuaFramework.ResourceManager obj = (LuaFramework.ResourceManager)ToLua.CheckObject <LuaFramework.ResourceManager>(L, 1);
                string arg0 = ToLua.CheckString(L, 2);
                System.Action <UnityEngine.Object[]> arg1 = (System.Action <UnityEngine.Object[]>)ToLua.ToObject(L, 3);
                obj.LoadAssetBundle(arg0, arg1);
                return(0);
            }
            else if (count == 3 && TypeChecker.CheckTypes <LuaInterface.LuaFunction>(L, 3))
            {
                LuaFramework.ResourceManager obj = (LuaFramework.ResourceManager)ToLua.CheckObject <LuaFramework.ResourceManager>(L, 1);
                string      arg0 = ToLua.CheckString(L, 2);
                LuaFunction arg1 = ToLua.ToLuaFunction(L, 3);
                obj.LoadAssetBundle(arg0, arg1);
                return(0);
            }
            else
            {
                return(LuaDLL.luaL_throw(L, "invalid arguments to method: LuaFramework.ResourceManager.LoadAssetBundle"));
            }
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }
    static int LoadSceneAsync(IntPtr L)
    {
        try
        {
            ToLua.CheckArgsCount(L, 6);
            LuaFramework.ResourceManager obj = (LuaFramework.ResourceManager)ToLua.CheckObject(L, 1, typeof(LuaFramework.ResourceManager));
            string arg0 = ToLua.CheckString(L, 2);
            string arg1 = ToLua.CheckString(L, 3);
            bool   arg2 = LuaDLL.luaL_checkboolean(L, 4);
            System.Action <UnityEngine.AsyncOperation> arg3 = null;
            LuaTypes funcType5 = LuaDLL.lua_type(L, 5);

            if (funcType5 != LuaTypes.LUA_TFUNCTION)
            {
                arg3 = (System.Action <UnityEngine.AsyncOperation>)ToLua.CheckObject(L, 5, typeof(System.Action <UnityEngine.AsyncOperation>));
            }
            else
            {
                LuaFunction func = ToLua.ToLuaFunction(L, 5);
                arg3 = DelegateFactory.CreateDelegate(typeof(System.Action <UnityEngine.AsyncOperation>), func) as System.Action <UnityEngine.AsyncOperation>;
            }

            bool arg4 = LuaDLL.luaL_checkboolean(L, 6);
            bool o    = obj.LoadSceneAsync(arg0, arg1, arg2, arg3, arg4);
            LuaDLL.lua_pushboolean(L, o);
            return(1);
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }
Beispiel #10
0
    static int LoadPrefab(IntPtr L)
    {
        try
        {
            int count = LuaDLL.lua_gettop(L);

            if (count == 3 && TypeChecker.CheckTypes(L, 1, typeof(LuaFramework.ResourceManager), typeof(string), typeof(LuaInterface.LuaFunction)))
            {
                LuaFramework.ResourceManager obj = (LuaFramework.ResourceManager)ToLua.ToObject(L, 1);
                string      arg0 = ToLua.ToString(L, 2);
                LuaFunction arg1 = ToLua.ToLuaFunction(L, 3);
                obj.LoadPrefab(arg0, arg1);
                return(0);
            }
            else if (count == 4 && TypeChecker.CheckTypes(L, 1, typeof(LuaFramework.ResourceManager), typeof(string), typeof(string[]), typeof(LuaInterface.LuaFunction)))
            {
                LuaFramework.ResourceManager obj = (LuaFramework.ResourceManager)ToLua.ToObject(L, 1);
                string      arg0 = ToLua.ToString(L, 2);
                string[]    arg1 = ToLua.CheckStringArray(L, 3);
                LuaFunction arg2 = ToLua.ToLuaFunction(L, 4);
                obj.LoadPrefab(arg0, arg1, arg2);
                return(0);
            }
            else
            {
                return(LuaDLL.luaL_throw(L, "invalid arguments to method: LuaFramework.ResourceManager.LoadPrefab"));
            }
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }
Beispiel #11
0
    static int Initialize(IntPtr L)
    {
        try
        {
            int count = LuaDLL.lua_gettop(L);

            if (count == 1 && TypeChecker.CheckTypes(L, 1, typeof(LuaFramework.ResourceManager)))
            {
                LuaFramework.ResourceManager obj = (LuaFramework.ResourceManager)ToLua.ToObject(L, 1);
                obj.Initialize();
                return(0);
            }
            else if (count == 2 && TypeChecker.CheckTypes(L, 1, typeof(LuaFramework.ResourceManager), typeof(UnityEngine.AssetBundleManifest)))
            {
                LuaFramework.ResourceManager    obj  = (LuaFramework.ResourceManager)ToLua.ToObject(L, 1);
                UnityEngine.AssetBundleManifest arg0 = (UnityEngine.AssetBundleManifest)ToLua.ToObject(L, 2);
                obj.Initialize(arg0);
                return(0);
            }
            else
            {
                return(LuaDLL.luaL_throw(L, "invalid arguments to method: LuaFramework.ResourceManager.Initialize"));
            }
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }
    static int UnloadAssetBundle(IntPtr L)
    {
        try
        {
            int count = LuaDLL.lua_gettop(L);

            if (count == 2)
            {
                LuaFramework.ResourceManager obj = (LuaFramework.ResourceManager)ToLua.CheckObject <LuaFramework.ResourceManager>(L, 1);
                string arg0 = ToLua.CheckString(L, 2);
                obj.UnloadAssetBundle(arg0);
                return(0);
            }
            else if (count == 3)
            {
                LuaFramework.ResourceManager obj = (LuaFramework.ResourceManager)ToLua.CheckObject <LuaFramework.ResourceManager>(L, 1);
                string arg0 = ToLua.CheckString(L, 2);
                bool   arg1 = LuaDLL.luaL_checkboolean(L, 3);
                obj.UnloadAssetBundle(arg0, arg1);
                return(0);
            }
            else
            {
                return(LuaDLL.luaL_throw(L, "invalid arguments to method: LuaFramework.ResourceManager.UnloadAssetBundle"));
            }
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }
Beispiel #13
0
    static int AddTask(IntPtr L)
    {
        try
        {
            int count = LuaDLL.lua_gettop(L);

            if (count == 3 && TypeChecker.CheckTypes <System.Action <UnityEngine.Object> >(L, 3))
            {
                LuaFramework.ResourceManager obj = (LuaFramework.ResourceManager)ToLua.CheckObject <LuaFramework.ResourceManager>(L, 1);
                string arg0 = ToLua.CheckString(L, 2);
                System.Action <UnityEngine.Object> arg1 = (System.Action <UnityEngine.Object>)ToLua.ToObject(L, 3);
                uint o = obj.AddTask(arg0, arg1);
                LuaDLL.lua_pushnumber(L, o);
                return(1);
            }
            else if (count == 3 && TypeChecker.CheckTypes <LuaInterface.LuaFunction>(L, 3))
            {
                LuaFramework.ResourceManager obj = (LuaFramework.ResourceManager)ToLua.CheckObject <LuaFramework.ResourceManager>(L, 1);
                string      arg0 = ToLua.CheckString(L, 2);
                LuaFunction arg1 = ToLua.ToLuaFunction(L, 3);
                uint        o    = obj.AddTask(arg0, arg1);
                LuaDLL.lua_pushnumber(L, o);
                return(1);
            }
            else if (count == 4 && TypeChecker.CheckTypes <LuaInterface.LuaFunction, int>(L, 3))
            {
                LuaFramework.ResourceManager obj = (LuaFramework.ResourceManager)ToLua.CheckObject <LuaFramework.ResourceManager>(L, 1);
                string      arg0 = ToLua.CheckString(L, 2);
                LuaFunction arg1 = ToLua.ToLuaFunction(L, 3);
                int         arg2 = (int)LuaDLL.lua_tonumber(L, 4);
                uint        o    = obj.AddTask(arg0, arg1, arg2);
                LuaDLL.lua_pushnumber(L, o);
                return(1);
            }
            else if (count == 4 && TypeChecker.CheckTypes <System.Action <UnityEngine.Object>, int>(L, 3))
            {
                LuaFramework.ResourceManager obj = (LuaFramework.ResourceManager)ToLua.CheckObject <LuaFramework.ResourceManager>(L, 1);
                string arg0 = ToLua.CheckString(L, 2);
                System.Action <UnityEngine.Object> arg1 = (System.Action <UnityEngine.Object>)ToLua.ToObject(L, 3);
                int  arg2 = (int)LuaDLL.lua_tonumber(L, 4);
                uint o    = obj.AddTask(arg0, arg1, arg2);
                LuaDLL.lua_pushnumber(L, o);
                return(1);
            }
            else
            {
                return(LuaDLL.luaL_throw(L, "invalid arguments to method: LuaFramework.ResourceManager.AddTask"));
            }
        }
        catch (Exception e)
        {
            return(LuaDLL.toluaL_exception(L, e));
        }
    }
Beispiel #14
0
 static int set_instance(IntPtr L)
 {
     try
     {
         LuaFramework.ResourceManager arg0 = (LuaFramework.ResourceManager)ToLua.CheckUnityObject(L, 2, typeof(LuaFramework.ResourceManager));
         LuaFramework.ResourceManager.instance = arg0;
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
 static int Initialize(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 1);
         LuaFramework.ResourceManager obj = (LuaFramework.ResourceManager)ToLua.CheckObject(L, 1, typeof(LuaFramework.ResourceManager));
         obj.Initialize();
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Beispiel #16
0
 static int CleanupDependenciesNow(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 1);
         LuaFramework.ResourceManager obj = (LuaFramework.ResourceManager)ToLua.CheckObject <LuaFramework.ResourceManager>(L, 1);
         obj.CleanupDependenciesNow();
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
 static int getIpAddress(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 1);
         LuaFramework.ResourceManager obj = (LuaFramework.ResourceManager)ToLua.CheckObject <LuaFramework.ResourceManager>(L, 1);
         obj.getIpAddress();
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Beispiel #18
0
 static int GetResManager(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 0);
         LuaFramework.ResourceManager o = LuaFramework.LuaHelper.GetResManager();
         ToLua.Push(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
 static int DestroyRes(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         LuaFramework.ResourceManager obj  = (LuaFramework.ResourceManager)ToLua.CheckObject <LuaFramework.ResourceManager>(L, 1);
         UnityEngine.GameObject       arg0 = (UnityEngine.GameObject)ToLua.CheckObject(L, 2, typeof(UnityEngine.GameObject));
         obj.DestroyRes(arg0);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
 static int getRandomUnitCircle(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 1);
         LuaFramework.ResourceManager obj = (LuaFramework.ResourceManager)ToLua.CheckObject <LuaFramework.ResourceManager>(L, 1);
         UnityEngine.Vector2          o   = obj.getRandomUnitCircle();
         ToLua.Push(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Beispiel #21
0
 static int LoadScene(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         LuaFramework.ResourceManager obj = (LuaFramework.ResourceManager)ToLua.CheckObject <LuaFramework.ResourceManager>(L, 1);
         string arg0 = ToLua.CheckString(L, 2);
         obj.LoadScene(arg0);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
 static int Initialize(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         LuaFramework.ResourceManager obj = (LuaFramework.ResourceManager)ToLua.CheckObject <LuaFramework.ResourceManager>(L, 1);
         System.Action arg0 = (System.Action)ToLua.CheckDelegate <System.Action>(L, 2);
         obj.Initialize(arg0);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
 static int UnloadAssetBundle(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         LuaFramework.ResourceManager obj = (LuaFramework.ResourceManager)ToLua.CheckObject(L, 1, typeof(LuaFramework.ResourceManager));
         string arg0 = ToLua.CheckString(L, 2);
         obj.UnloadAssetBundle(arg0);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Beispiel #24
0
 static int IsLoading(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         LuaFramework.ResourceManager obj = (LuaFramework.ResourceManager)ToLua.CheckObject <LuaFramework.ResourceManager>(L, 1);
         uint arg0 = (uint)LuaDLL.luaL_checknumber(L, 2);
         bool o    = obj.IsLoading(arg0);
         LuaDLL.lua_pushboolean(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Beispiel #25
0
 static int LoadTable(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         LuaFramework.ResourceManager obj = (LuaFramework.ResourceManager)ToLua.CheckObject(L, 1, typeof(LuaFramework.ResourceManager));
         string arg0 = ToLua.CheckString(L, 2);
         string o    = obj.LoadTable(arg0);
         LuaDLL.lua_pushstring(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Beispiel #26
0
 static int Release(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 3);
         LuaFramework.ResourceManager obj = (LuaFramework.ResourceManager)ToLua.CheckObject <LuaFramework.ResourceManager>(L, 1);
         string arg0 = ToLua.CheckString(L, 2);
         UnityEngine.GameObject arg1 = (UnityEngine.GameObject)ToLua.CheckObject(L, 3, typeof(UnityEngine.GameObject));
         obj.Release(arg0, arg1);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
 static int LoadMaterial(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         LuaFramework.ResourceManager obj = (LuaFramework.ResourceManager)ToLua.CheckObject <LuaFramework.ResourceManager>(L, 1);
         string arg0            = ToLua.CheckString(L, 2);
         UnityEngine.Material o = obj.LoadMaterial(arg0);
         ToLua.Push(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
 static int IsABPackLoaded(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         LuaFramework.ResourceManager obj = (LuaFramework.ResourceManager)ToLua.CheckObject <LuaFramework.ResourceManager>(L, 1);
         string arg0 = ToLua.CheckString(L, 2);
         bool   o    = obj.IsABPackLoaded(arg0);
         LuaDLL.lua_pushboolean(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
 static int LoadAssetBundle(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         LuaFramework.ResourceManager obj = (LuaFramework.ResourceManager)ToLua.CheckObject(L, 1, typeof(LuaFramework.ResourceManager));
         string arg0 = ToLua.CheckString(L, 2);
         UnityEngine.AssetBundle o = obj.LoadAssetBundle(arg0);
         ToLua.Push(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
Beispiel #30
0
 static int RemoveTask(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 3);
         LuaFramework.ResourceManager obj = (LuaFramework.ResourceManager)ToLua.CheckObject <LuaFramework.ResourceManager>(L, 1);
         uint arg0 = (uint)LuaDLL.luaL_checknumber(L, 2);
         System.Action <UnityEngine.Object> arg1 = (System.Action <UnityEngine.Object>)ToLua.CheckDelegate <System.Action <UnityEngine.Object> >(L, 3);
         obj.RemoveTask(arg0, arg1);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }