예제 #1
0
        static int __CreateInstance(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

            try {
                if (LuaAPI.lua_gettop(L) == 1)
                {
                    Engine.AudioManager __cl_gen_ret = new Engine.AudioManager();
                    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.AudioManager constructor!"));
        }
예제 #2
0
        static int _m_PlayEffect(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


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


            int __gen_param_count = LuaAPI.lua_gettop(L);

            try {
                if (__gen_param_count == 4 && translator.Assignable <UnityEngine.GameObject>(L, 2) && (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING) && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 4))
                {
                    UnityEngine.GameObject obj = (UnityEngine.GameObject)translator.GetObject(L, 2, typeof(UnityEngine.GameObject));
                    string strEffect           = LuaAPI.lua_tostring(L, 3);
                    bool   bLoop = LuaAPI.lua_toboolean(L, 4);

                    uint __cl_gen_ret = __cl_gen_to_be_invoked.PlayEffect(obj, strEffect, bLoop);
                    LuaAPI.xlua_pushuint(L, __cl_gen_ret);



                    return(1);
                }
                if (__gen_param_count == 3 && translator.Assignable <UnityEngine.GameObject>(L, 2) && (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING))
                {
                    UnityEngine.GameObject obj = (UnityEngine.GameObject)translator.GetObject(L, 2, typeof(UnityEngine.GameObject));
                    string strEffect           = LuaAPI.lua_tostring(L, 3);

                    uint __cl_gen_ret = __cl_gen_to_be_invoked.PlayEffect(obj, strEffect);
                    LuaAPI.xlua_pushuint(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.AudioManager.PlayEffect!"));
        }
예제 #3
0
        static int _m_Close(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


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


            try {
                {
                    __cl_gen_to_be_invoked.Close(  );



                    return(0);
                }
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
        }
예제 #4
0
        static int _m_GetEffectVolume(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


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


            try {
                {
                    float __cl_gen_ret = __cl_gen_to_be_invoked.GetEffectVolume(  );
                    LuaAPI.lua_pushnumber(L, __cl_gen_ret);



                    return(1);
                }
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
        }
예제 #5
0
        static int _m_SetMusicVolume(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


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


            try {
                {
                    float fVolume = (float)LuaAPI.lua_tonumber(L, 2);

                    __cl_gen_to_be_invoked.SetMusicVolume(fVolume);



                    return(0);
                }
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
        }
예제 #6
0
        static int _m_SetListener(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


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


            try {
                {
                    UnityEngine.AudioListener listener = (UnityEngine.AudioListener)translator.GetObject(L, 2, typeof(UnityEngine.AudioListener));

                    __cl_gen_to_be_invoked.SetListener(listener);



                    return(0);
                }
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
        }
예제 #7
0
        static int _m_PlayMusic(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


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


            int __gen_param_count = LuaAPI.lua_gettop(L);

            try {
                if (__gen_param_count == 3 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3))
                {
                    string strMusic = LuaAPI.lua_tostring(L, 2);
                    float  fDelay   = (float)LuaAPI.lua_tonumber(L, 3);

                    __cl_gen_to_be_invoked.PlayMusic(strMusic, fDelay);



                    return(0);
                }
                if (__gen_param_count == 2 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING))
                {
                    string strMusic = LuaAPI.lua_tostring(L, 2);

                    __cl_gen_to_be_invoked.PlayMusic(strMusic);



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

            return(LuaAPI.luaL_error(L, "invalid arguments to Engine.AudioManager.PlayMusic!"));
        }
예제 #8
0
        static int _m_IsPlaying(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


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


            try {
                {
                    uint nid = LuaAPI.xlua_touint(L, 2);

                    bool __cl_gen_ret = __cl_gen_to_be_invoked.IsPlaying(nid);
                    LuaAPI.lua_pushboolean(L, __cl_gen_ret);



                    return(1);
                }
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
        }
예제 #9
0
        static int _m_PlayUIEffect(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


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


            try {
                {
                    string strEffect = LuaAPI.lua_tostring(L, 2);

                    uint __cl_gen_ret = __cl_gen_to_be_invoked.PlayUIEffect(strEffect);
                    LuaAPI.xlua_pushuint(L, __cl_gen_ret);



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