Beispiel #1
0
        static int _m_StopAllLoadedSounds(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                UnityGameFramework.Runtime.SoundComponent gen_to_be_invoked = (UnityGameFramework.Runtime.SoundComponent)translator.FastGetCSObj(L, 1);


                int gen_param_count = LuaAPI.lua_gettop(L);

                if (gen_param_count == 1)
                {
                    gen_to_be_invoked.StopAllLoadedSounds(  );



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

                    gen_to_be_invoked.StopAllLoadedSounds(_fadeOutSeconds);



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

            return(LuaAPI.luaL_error(L, "invalid arguments to UnityGameFramework.Runtime.SoundComponent.StopAllLoadedSounds!"));
        }
Beispiel #2
0
        static int _g_get_AudioMixer(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

                UnityGameFramework.Runtime.SoundComponent gen_to_be_invoked = (UnityGameFramework.Runtime.SoundComponent)translator.FastGetCSObj(L, 1);
                translator.Push(L, gen_to_be_invoked.AudioMixer);
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
            return(1);
        }
        static StackObject *StopAllLoadedSounds_1(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject *ptr_of_this_method;
            StackObject *__ret = ILIntepreter.Minus(__esp, 1);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            UnityGameFramework.Runtime.SoundComponent instance_of_this_method = (UnityGameFramework.Runtime.SoundComponent) typeof(UnityGameFramework.Runtime.SoundComponent).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            instance_of_this_method.StopAllLoadedSounds();

            return(__ret);
        }
Beispiel #4
0
        static int __CreateInstance(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);
                if (LuaAPI.lua_gettop(L) == 1)
                {
                    UnityGameFramework.Runtime.SoundComponent gen_ret = new UnityGameFramework.Runtime.SoundComponent();
                    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 UnityGameFramework.Runtime.SoundComponent constructor!"));
        }
Beispiel #5
0
        static int _m_AddSoundGroup(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                UnityGameFramework.Runtime.SoundComponent gen_to_be_invoked = (UnityGameFramework.Runtime.SoundComponent)translator.FastGetCSObj(L, 1);


                int gen_param_count = LuaAPI.lua_gettop(L);

                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 _soundGroupName        = LuaAPI.lua_tostring(L, 2);
                    int    _soundAgentHelperCount = LuaAPI.xlua_tointeger(L, 3);

                    bool gen_ret = gen_to_be_invoked.AddSoundGroup(_soundGroupName, _soundAgentHelperCount);
                    LuaAPI.lua_pushboolean(L, gen_ret);



                    return(1);
                }
                if (gen_param_count == 6 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING) && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 3) && LuaTypes.LUA_TBOOLEAN == LuaAPI.lua_type(L, 4) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 6))
                {
                    string _soundGroupName = LuaAPI.lua_tostring(L, 2);
                    bool   _soundGroupAvoidBeingReplacedBySamePriority = LuaAPI.lua_toboolean(L, 3);
                    bool   _soundGroupMute        = LuaAPI.lua_toboolean(L, 4);
                    float  _soundGroupVolume      = (float)LuaAPI.lua_tonumber(L, 5);
                    int    _soundAgentHelperCount = LuaAPI.xlua_tointeger(L, 6);

                    bool gen_ret = gen_to_be_invoked.AddSoundGroup(_soundGroupName, _soundGroupAvoidBeingReplacedBySamePriority, _soundGroupMute, _soundGroupVolume, _soundAgentHelperCount);
                    LuaAPI.lua_pushboolean(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 UnityGameFramework.Runtime.SoundComponent.AddSoundGroup!"));
        }
Beispiel #6
0
        static int _m_StopAllLoadingSounds(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                UnityGameFramework.Runtime.SoundComponent gen_to_be_invoked = (UnityGameFramework.Runtime.SoundComponent)translator.FastGetCSObj(L, 1);



                {
                    gen_to_be_invoked.StopAllLoadingSounds(  );



                    return(0);
                }
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
        }
Beispiel #7
0
        static int _m_StopSound(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                UnityGameFramework.Runtime.SoundComponent gen_to_be_invoked = (UnityGameFramework.Runtime.SoundComponent)translator.FastGetCSObj(L, 1);


                int gen_param_count = LuaAPI.lua_gettop(L);

                if (gen_param_count == 2 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2))
                {
                    int _serialId = LuaAPI.xlua_tointeger(L, 2);

                    bool gen_ret = gen_to_be_invoked.StopSound(_serialId);
                    LuaAPI.lua_pushboolean(L, gen_ret);



                    return(1);
                }
                if (gen_param_count == 3 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3))
                {
                    int   _serialId       = LuaAPI.xlua_tointeger(L, 2);
                    float _fadeOutSeconds = (float)LuaAPI.lua_tonumber(L, 3);

                    bool gen_ret = gen_to_be_invoked.StopSound(_serialId, _fadeOutSeconds);
                    LuaAPI.lua_pushboolean(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 UnityGameFramework.Runtime.SoundComponent.StopSound!"));
        }
Beispiel #8
0
        static StackObject *PlayMusic_0(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj)
        {
            ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject *ptr_of_this_method;
            StackObject *__ret = ILIntepreter.Minus(__esp, 3);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            System.Object @userData = (System.Object) typeof(System.Object).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            System.Int32 @musicId = ptr_of_this_method->Value;

            ptr_of_this_method = ILIntepreter.Minus(__esp, 3);
            UnityGameFramework.Runtime.SoundComponent @soundComponent = (UnityGameFramework.Runtime.SoundComponent) typeof(UnityGameFramework.Runtime.SoundComponent).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);


            var result_of_this_method = Trinity.SoundExtension.PlayMusic(@soundComponent, @musicId, @userData);

            return(ILIntepreter.PushObject(__ret, __mStack, result_of_this_method));
        }
Beispiel #9
0
        static int _m_HasSoundGroup(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                UnityGameFramework.Runtime.SoundComponent gen_to_be_invoked = (UnityGameFramework.Runtime.SoundComponent)translator.FastGetCSObj(L, 1);



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

                    bool gen_ret = gen_to_be_invoked.HasSoundGroup(_soundGroupName);
                    LuaAPI.lua_pushboolean(L, gen_ret);



                    return(1);
                }
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
        }
Beispiel #10
0
        static int _m_IsLoadingSound(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                UnityGameFramework.Runtime.SoundComponent gen_to_be_invoked = (UnityGameFramework.Runtime.SoundComponent)translator.FastGetCSObj(L, 1);



                {
                    int _serialId = LuaAPI.xlua_tointeger(L, 2);

                    bool gen_ret = gen_to_be_invoked.IsLoadingSound(_serialId);
                    LuaAPI.lua_pushboolean(L, gen_ret);



                    return(1);
                }
            } catch (System.Exception gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + gen_e));
            }
        }
Beispiel #11
0
        static int _m_GetAllLoadingSoundSerialIds(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                UnityGameFramework.Runtime.SoundComponent gen_to_be_invoked = (UnityGameFramework.Runtime.SoundComponent)translator.FastGetCSObj(L, 1);


                int gen_param_count = LuaAPI.lua_gettop(L);

                if (gen_param_count == 1)
                {
                    int[] gen_ret = gen_to_be_invoked.GetAllLoadingSoundSerialIds(  );
                    translator.Push(L, gen_ret);



                    return(1);
                }
                if (gen_param_count == 2 && translator.Assignable <System.Collections.Generic.List <int> >(L, 2))
                {
                    System.Collections.Generic.List <int> _results = (System.Collections.Generic.List <int>)translator.GetObject(L, 2, typeof(System.Collections.Generic.List <int>));

                    gen_to_be_invoked.GetAllLoadingSoundSerialIds(_results);



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

            return(LuaAPI.luaL_error(L, "invalid arguments to UnityGameFramework.Runtime.SoundComponent.GetAllLoadingSoundSerialIds!"));
        }
Beispiel #12
0
        static int _m_PlaySound(RealStatePtr L)
        {
            try {
                ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


                UnityGameFramework.Runtime.SoundComponent gen_to_be_invoked = (UnityGameFramework.Runtime.SoundComponent)translator.FastGetCSObj(L, 1);


                int gen_param_count = LuaAPI.lua_gettop(L);

                if (gen_param_count == 3 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING) && (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING))
                {
                    string _soundAssetName = LuaAPI.lua_tostring(L, 2);
                    string _soundGroupName = LuaAPI.lua_tostring(L, 3);

                    int gen_ret = gen_to_be_invoked.PlaySound(_soundAssetName, _soundGroupName);
                    LuaAPI.xlua_pushinteger(L, gen_ret);



                    return(1);
                }
                if (gen_param_count == 4 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING) && (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4))
                {
                    string _soundAssetName = LuaAPI.lua_tostring(L, 2);
                    string _soundGroupName = LuaAPI.lua_tostring(L, 3);
                    int    _priority       = LuaAPI.xlua_tointeger(L, 4);

                    int gen_ret = gen_to_be_invoked.PlaySound(_soundAssetName, _soundGroupName, _priority);
                    LuaAPI.xlua_pushinteger(L, gen_ret);



                    return(1);
                }
                if (gen_param_count == 4 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING) && (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING) && translator.Assignable <GameFramework.Sound.PlaySoundParams>(L, 4))
                {
                    string _soundAssetName = LuaAPI.lua_tostring(L, 2);
                    string _soundGroupName = LuaAPI.lua_tostring(L, 3);
                    GameFramework.Sound.PlaySoundParams _playSoundParams = (GameFramework.Sound.PlaySoundParams)translator.GetObject(L, 4, typeof(GameFramework.Sound.PlaySoundParams));

                    int gen_ret = gen_to_be_invoked.PlaySound(_soundAssetName, _soundGroupName, _playSoundParams);
                    LuaAPI.xlua_pushinteger(L, gen_ret);



                    return(1);
                }
                if (gen_param_count == 4 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING) && (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING) && translator.Assignable <UnityGameFramework.Runtime.Entity>(L, 4))
                {
                    string _soundAssetName = LuaAPI.lua_tostring(L, 2);
                    string _soundGroupName = LuaAPI.lua_tostring(L, 3);
                    UnityGameFramework.Runtime.Entity _bindingEntity = (UnityGameFramework.Runtime.Entity)translator.GetObject(L, 4, typeof(UnityGameFramework.Runtime.Entity));

                    int gen_ret = gen_to_be_invoked.PlaySound(_soundAssetName, _soundGroupName, _bindingEntity);
                    LuaAPI.xlua_pushinteger(L, gen_ret);



                    return(1);
                }
                if (gen_param_count == 4 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING) && (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING) && translator.Assignable <UnityEngine.Vector3>(L, 4))
                {
                    string _soundAssetName = LuaAPI.lua_tostring(L, 2);
                    string _soundGroupName = LuaAPI.lua_tostring(L, 3);
                    UnityEngine.Vector3 _worldPosition; translator.Get(L, 4, out _worldPosition);

                    int gen_ret = gen_to_be_invoked.PlaySound(_soundAssetName, _soundGroupName, _worldPosition);
                    LuaAPI.xlua_pushinteger(L, gen_ret);



                    return(1);
                }
                if (gen_param_count == 4 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING) && (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING) && translator.Assignable <object>(L, 4))
                {
                    string _soundAssetName = LuaAPI.lua_tostring(L, 2);
                    string _soundGroupName = LuaAPI.lua_tostring(L, 3);
                    object _userData       = translator.GetObject(L, 4, typeof(object));

                    int gen_ret = gen_to_be_invoked.PlaySound(_soundAssetName, _soundGroupName, _userData);
                    LuaAPI.xlua_pushinteger(L, gen_ret);



                    return(1);
                }
                if (gen_param_count == 5 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING) && (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4) && translator.Assignable <GameFramework.Sound.PlaySoundParams>(L, 5))
                {
                    string _soundAssetName = LuaAPI.lua_tostring(L, 2);
                    string _soundGroupName = LuaAPI.lua_tostring(L, 3);
                    int    _priority       = LuaAPI.xlua_tointeger(L, 4);
                    GameFramework.Sound.PlaySoundParams _playSoundParams = (GameFramework.Sound.PlaySoundParams)translator.GetObject(L, 5, typeof(GameFramework.Sound.PlaySoundParams));

                    int gen_ret = gen_to_be_invoked.PlaySound(_soundAssetName, _soundGroupName, _priority, _playSoundParams);
                    LuaAPI.xlua_pushinteger(L, gen_ret);



                    return(1);
                }
                if (gen_param_count == 6 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING) && (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4) && translator.Assignable <GameFramework.Sound.PlaySoundParams>(L, 5) && translator.Assignable <object>(L, 6))
                {
                    string _soundAssetName = LuaAPI.lua_tostring(L, 2);
                    string _soundGroupName = LuaAPI.lua_tostring(L, 3);
                    int    _priority       = LuaAPI.xlua_tointeger(L, 4);
                    GameFramework.Sound.PlaySoundParams _playSoundParams = (GameFramework.Sound.PlaySoundParams)translator.GetObject(L, 5, typeof(GameFramework.Sound.PlaySoundParams));
                    object _userData = translator.GetObject(L, 6, typeof(object));

                    int gen_ret = gen_to_be_invoked.PlaySound(_soundAssetName, _soundGroupName, _priority, _playSoundParams, _userData);
                    LuaAPI.xlua_pushinteger(L, gen_ret);



                    return(1);
                }
                if (gen_param_count == 6 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING) && (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4) && translator.Assignable <GameFramework.Sound.PlaySoundParams>(L, 5) && translator.Assignable <UnityGameFramework.Runtime.Entity>(L, 6))
                {
                    string _soundAssetName = LuaAPI.lua_tostring(L, 2);
                    string _soundGroupName = LuaAPI.lua_tostring(L, 3);
                    int    _priority       = LuaAPI.xlua_tointeger(L, 4);
                    GameFramework.Sound.PlaySoundParams _playSoundParams = (GameFramework.Sound.PlaySoundParams)translator.GetObject(L, 5, typeof(GameFramework.Sound.PlaySoundParams));
                    UnityGameFramework.Runtime.Entity   _bindingEntity   = (UnityGameFramework.Runtime.Entity)translator.GetObject(L, 6, typeof(UnityGameFramework.Runtime.Entity));

                    int gen_ret = gen_to_be_invoked.PlaySound(_soundAssetName, _soundGroupName, _priority, _playSoundParams, _bindingEntity);
                    LuaAPI.xlua_pushinteger(L, gen_ret);



                    return(1);
                }
                if (gen_param_count == 6 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING) && (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4) && translator.Assignable <GameFramework.Sound.PlaySoundParams>(L, 5) && translator.Assignable <UnityEngine.Vector3>(L, 6))
                {
                    string _soundAssetName = LuaAPI.lua_tostring(L, 2);
                    string _soundGroupName = LuaAPI.lua_tostring(L, 3);
                    int    _priority       = LuaAPI.xlua_tointeger(L, 4);
                    GameFramework.Sound.PlaySoundParams _playSoundParams = (GameFramework.Sound.PlaySoundParams)translator.GetObject(L, 5, typeof(GameFramework.Sound.PlaySoundParams));
                    UnityEngine.Vector3 _worldPosition; translator.Get(L, 6, out _worldPosition);

                    int gen_ret = gen_to_be_invoked.PlaySound(_soundAssetName, _soundGroupName, _priority, _playSoundParams, _worldPosition);
                    LuaAPI.xlua_pushinteger(L, gen_ret);



                    return(1);
                }
                if (gen_param_count == 7 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING) && (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4) && translator.Assignable <GameFramework.Sound.PlaySoundParams>(L, 5) && translator.Assignable <UnityGameFramework.Runtime.Entity>(L, 6) && translator.Assignable <object>(L, 7))
                {
                    string _soundAssetName = LuaAPI.lua_tostring(L, 2);
                    string _soundGroupName = LuaAPI.lua_tostring(L, 3);
                    int    _priority       = LuaAPI.xlua_tointeger(L, 4);
                    GameFramework.Sound.PlaySoundParams _playSoundParams = (GameFramework.Sound.PlaySoundParams)translator.GetObject(L, 5, typeof(GameFramework.Sound.PlaySoundParams));
                    UnityGameFramework.Runtime.Entity   _bindingEntity   = (UnityGameFramework.Runtime.Entity)translator.GetObject(L, 6, typeof(UnityGameFramework.Runtime.Entity));
                    object _userData = translator.GetObject(L, 7, typeof(object));

                    int gen_ret = gen_to_be_invoked.PlaySound(_soundAssetName, _soundGroupName, _priority, _playSoundParams, _bindingEntity, _userData);
                    LuaAPI.xlua_pushinteger(L, gen_ret);



                    return(1);
                }
                if (gen_param_count == 7 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING) && (LuaAPI.lua_isnil(L, 3) || LuaAPI.lua_type(L, 3) == LuaTypes.LUA_TSTRING) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4) && translator.Assignable <GameFramework.Sound.PlaySoundParams>(L, 5) && translator.Assignable <UnityEngine.Vector3>(L, 6) && translator.Assignable <object>(L, 7))
                {
                    string _soundAssetName = LuaAPI.lua_tostring(L, 2);
                    string _soundGroupName = LuaAPI.lua_tostring(L, 3);
                    int    _priority       = LuaAPI.xlua_tointeger(L, 4);
                    GameFramework.Sound.PlaySoundParams _playSoundParams = (GameFramework.Sound.PlaySoundParams)translator.GetObject(L, 5, typeof(GameFramework.Sound.PlaySoundParams));
                    UnityEngine.Vector3 _worldPosition; translator.Get(L, 6, out _worldPosition);
                    object _userData = translator.GetObject(L, 7, typeof(object));

                    int gen_ret = gen_to_be_invoked.PlaySound(_soundAssetName, _soundGroupName, _priority, _playSoundParams, _worldPosition, _userData);
                    LuaAPI.xlua_pushinteger(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 UnityGameFramework.Runtime.SoundComponent.PlaySound!"));
        }