| | |
| | | { |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | System.Type type = typeof(SFXPlayUtility); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 8, 0, 0); |
| | | Utils.BeginObjectRegister(type, L, translator, 0, 9, 0, 0); |
| | | |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "Initialize", _m_Initialize); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "PlayEffectAsync", _m_PlayEffectAsync); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "PlayBattleEffect", _m_PlayBattleEffect); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "Play", _m_Play); |
| | | Utils.RegisterFunc(L, Utils.METHOD_IDX, "PlayWithEulerAngle", _m_PlayWithEulerAngle); |
| | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_PlayEffectAsync(RealStatePtr L) |
| | | { |
| | | try { |
| | | |
| | | ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); |
| | | |
| | | |
| | | SFXPlayUtility gen_to_be_invoked = (SFXPlayUtility)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)&& translator.Assignable<UnityEngine.Transform>(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) |
| | | { |
| | | int _id = LuaAPI.xlua_tointeger(L, 2); |
| | | UnityEngine.Transform _parent = (UnityEngine.Transform)translator.GetObject(L, 3, typeof(UnityEngine.Transform)); |
| | | float _scale = (float)LuaAPI.lua_tonumber(L, 4); |
| | | |
| | | SFXController gen_ret = gen_to_be_invoked.PlayEffectAsync( _id, _parent, _scale ); |
| | | translator.Push(L, gen_ret); |
| | | |
| | | |
| | | |
| | | return 1; |
| | | } |
| | | if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable<UnityEngine.Transform>(L, 3)) |
| | | { |
| | | int _id = LuaAPI.xlua_tointeger(L, 2); |
| | | UnityEngine.Transform _parent = (UnityEngine.Transform)translator.GetObject(L, 3, typeof(UnityEngine.Transform)); |
| | | |
| | | SFXController gen_ret = gen_to_be_invoked.PlayEffectAsync( _id, _parent ); |
| | | translator.Push(L, gen_ret); |
| | | |
| | | |
| | | |
| | | return 1; |
| | | } |
| | | if(gen_param_count == 4&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable<GActor>(L, 3)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4)) |
| | | { |
| | | int _id = LuaAPI.xlua_tointeger(L, 2); |
| | | GActor _parent = (GActor)translator.GetObject(L, 3, typeof(GActor)); |
| | | float _scale = (float)LuaAPI.lua_tonumber(L, 4); |
| | | |
| | | SFXController gen_ret = gen_to_be_invoked.PlayEffectAsync( _id, _parent, _scale ); |
| | | translator.Push(L, gen_ret); |
| | | |
| | | |
| | | |
| | | return 1; |
| | | } |
| | | if(gen_param_count == 3&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable<GActor>(L, 3)) |
| | | { |
| | | int _id = LuaAPI.xlua_tointeger(L, 2); |
| | | GActor _parent = (GActor)translator.GetObject(L, 3, typeof(GActor)); |
| | | |
| | | SFXController gen_ret = gen_to_be_invoked.PlayEffectAsync( _id, _parent ); |
| | | translator.Push(L, gen_ret); |
| | | |
| | | |
| | | |
| | | return 1; |
| | | } |
| | | if(gen_param_count == 5&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable<UnityEngine.Vector3>(L, 3)&& translator.Assignable<UnityEngine.Vector3>(L, 4)&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 5)) |
| | | { |
| | | int _id = LuaAPI.xlua_tointeger(L, 2); |
| | | UnityEngine.Vector3 _position;translator.Get(L, 3, out _position); |
| | | UnityEngine.Vector3 _forward;translator.Get(L, 4, out _forward); |
| | | float _scale = (float)LuaAPI.lua_tonumber(L, 5); |
| | | |
| | | SFXController gen_ret = gen_to_be_invoked.PlayEffectAsync( _id, _position, _forward, _scale ); |
| | | translator.Push(L, gen_ret); |
| | | |
| | | |
| | | |
| | | return 1; |
| | | } |
| | | if(gen_param_count == 4&& LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2)&& translator.Assignable<UnityEngine.Vector3>(L, 3)&& translator.Assignable<UnityEngine.Vector3>(L, 4)) |
| | | { |
| | | int _id = LuaAPI.xlua_tointeger(L, 2); |
| | | UnityEngine.Vector3 _position;translator.Get(L, 3, out _position); |
| | | UnityEngine.Vector3 _forward;translator.Get(L, 4, out _forward); |
| | | |
| | | SFXController gen_ret = gen_to_be_invoked.PlayEffectAsync( _id, _position, _forward ); |
| | | 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 SFXPlayUtility.PlayEffectAsync!"); |
| | | |
| | | } |
| | | |
| | | [MonoPInvokeCallbackAttribute(typeof(LuaCSFunction))] |
| | | static int _m_PlayBattleEffect(RealStatePtr L) |
| | | { |
| | | try { |