static int _m_CreatePrefab(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


            Engine.AssetManager __cl_gen_to_be_invoked = (Engine.AssetManager)translator.FastGetCSObj(L, 1);


            int __gen_param_count = LuaAPI.lua_gettop(L);

            try {
                if (__gen_param_count == 5 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING) && translator.Assignable <Engine.CreatePrefabEvent>(L, 3) && translator.Assignable <object>(L, 4) && translator.Assignable <Engine.TaskPriority>(L, 5))
                {
                    string strPrefabName = LuaAPI.lua_tostring(L, 2);
                    Engine.CreatePrefabEvent callBack = translator.GetDelegate <Engine.CreatePrefabEvent>(L, 3);
                    object custumParam = translator.GetObject(L, 4, typeof(object));
                    Engine.TaskPriority ePriority; translator.Get(L, 5, out ePriority);

                    Engine.IPrefab __cl_gen_ret = __cl_gen_to_be_invoked.CreatePrefab(strPrefabName, callBack, custumParam, ePriority);
                    translator.Push(L, __cl_gen_ret);



                    return(1);
                }
                if (__gen_param_count == 4 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING) && translator.Assignable <Engine.CreatePrefabEvent>(L, 3) && translator.Assignable <object>(L, 4))
                {
                    string strPrefabName = LuaAPI.lua_tostring(L, 2);
                    Engine.CreatePrefabEvent callBack = translator.GetDelegate <Engine.CreatePrefabEvent>(L, 3);
                    object custumParam = translator.GetObject(L, 4, typeof(object));

                    Engine.IPrefab __cl_gen_ret = __cl_gen_to_be_invoked.CreatePrefab(strPrefabName, callBack, custumParam);
                    translator.Push(L, __cl_gen_ret);



                    return(1);
                }
                if (__gen_param_count == 3 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING) && translator.Assignable <Engine.CreatePrefabEvent>(L, 3))
                {
                    string strPrefabName = LuaAPI.lua_tostring(L, 2);
                    Engine.CreatePrefabEvent callBack = translator.GetDelegate <Engine.CreatePrefabEvent>(L, 3);

                    Engine.IPrefab __cl_gen_ret = __cl_gen_to_be_invoked.CreatePrefab(strPrefabName, callBack);
                    translator.Push(L, __cl_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 Engine.AssetManager.CreatePrefab!"));
        }
Esempio n. 2
0
        static int _m_GetObj(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


            Engine.IPrefab __cl_gen_to_be_invoked = (Engine.IPrefab)translator.FastGetCSObj(L, 1);


            try {
                {
                    UnityEngine.Object __cl_gen_ret = __cl_gen_to_be_invoked.GetObj(  );
                    translator.Push(L, __cl_gen_ret);



                    return(1);
                }
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
        }