示例#1
0
        static int _m_SetPreloading(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                UnityEngine.StreamingController gen_to_be_invoked = (UnityEngine.StreamingController)translator.FastGetCSObj(L, 1);


                int gen_param_count = LuaAPI.lua_gettop(L);

                if (gen_param_count == 4 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3) && translator.Assignable <UnityEngine.Camera>(L, 4))
                {
                    float _timeoutSeconds          = (float)LuaAPI.lua_tonumber(L, 2);
                    bool  _activateCameraOnTimeout = LuaAPI.lua_toboolean(L, 3);
                    UnityEngine.Camera _disableCameraCuttingFrom = (UnityEngine.Camera)translator.GetObject(L, 4, typeof(UnityEngine.Camera));

                    gen_to_be_invoked.SetPreloading(_timeoutSeconds, _activateCameraOnTimeout, _disableCameraCuttingFrom);



                    return(0);
                }
                if (gen_param_count == 3 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3))
                {
                    float _timeoutSeconds          = (float)LuaAPI.lua_tonumber(L, 2);
                    bool  _activateCameraOnTimeout = LuaAPI.lua_toboolean(L, 3);

                    gen_to_be_invoked.SetPreloading(_timeoutSeconds, _activateCameraOnTimeout);



                    return(0);
                }
                if (gen_param_count == 2 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2))
                {
                    float _timeoutSeconds = (float)LuaAPI.lua_tonumber(L, 2);

                    gen_to_be_invoked.SetPreloading(_timeoutSeconds);



                    return(0);
                }
                if (gen_param_count == 1)
                {
                    gen_to_be_invoked.SetPreloading(  );



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

            return(LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.StreamingController.SetPreloading!"));
        }
示例#2
0
        static int _s_set_streamingMipmapBias(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

                UnityEngine.StreamingController gen_to_be_invoked = (UnityEngine.StreamingController)translator.FastGetCSObj(L, 1);
                gen_to_be_invoked.streamingMipmapBias = (float)LuaAPI.lua_tonumber(L, 2);
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            return(0);
        }
示例#3
0
        static int __CreateInstance(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
                if (LuaAPI.lua_gettop(L) == 1)
                {
                    UnityEngine.StreamingController gen_ret = new UnityEngine.StreamingController();
                    translator.Push(L, 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 UnityEngine.StreamingController constructor!"));
        }
示例#4
0
        static int _m_CancelPreloading(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                UnityEngine.StreamingController gen_to_be_invoked = (UnityEngine.StreamingController)translator.FastGetCSObj(L, 1);



                {
                    gen_to_be_invoked.CancelPreloading(  );



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