Ejemplo n.º 1
0
        static int _s_set_m_CurEffectNum(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

            try {
                xc.EffectManager __cl_gen_to_be_invoked = (xc.EffectManager)translator.FastGetCSObj(L, 1);
                __cl_gen_to_be_invoked.m_CurEffectNum = LuaAPI.xlua_tointeger(L, 2);
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
            return(0);
        }
Ejemplo n.º 2
0
        static int _g_get_MaxPlayerEffectCount(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

            try {
                xc.EffectManager __cl_gen_to_be_invoked = (xc.EffectManager)translator.FastGetCSObj(L, 1);
                LuaAPI.xlua_pushinteger(L, __cl_gen_to_be_invoked.MaxPlayerEffectCount);
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
            return(1);
        }
Ejemplo n.º 3
0
        static int __CreateInstance(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

            try {
                if (LuaAPI.lua_gettop(L) == 1)
                {
                    xc.EffectManager __cl_gen_ret = new xc.EffectManager();
                    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 xc.EffectManager constructor!"));
        }
Ejemplo n.º 4
0
        static int _m_DecreaseEffectNum(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


            xc.EffectManager __cl_gen_to_be_invoked = (xc.EffectManager)translator.FastGetCSObj(L, 1);


            try {
                {
                    __cl_gen_to_be_invoked.DecreaseEffectNum(  );



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


            xc.EffectManager __cl_gen_to_be_invoked = (xc.EffectManager)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 effectPrefab = LuaAPI.lua_tostring(L, 2);
                    int    maxCount     = LuaAPI.xlua_tointeger(L, 3);

                    xc.EffectEmitter __cl_gen_ret = __cl_gen_to_be_invoked.GetEffectEmitter(effectPrefab, maxCount);
                    translator.Push(L, __cl_gen_ret);



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

                    xc.EffectEmitter __cl_gen_ret = __cl_gen_to_be_invoked.GetEffectEmitter(effectPrefab);
                    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 xc.EffectManager.GetEffectEmitter!"));
        }
Ejemplo n.º 6
0
        static int _m_AddAnimationEffect(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


            xc.EffectManager __cl_gen_to_be_invoked = (xc.EffectManager)translator.FastGetCSObj(L, 1);


            try {
                {
                    xc.AnimationEffect kEffect = (xc.AnimationEffect)translator.GetObject(L, 2, typeof(xc.AnimationEffect));

                    __cl_gen_to_be_invoked.AddAnimationEffect(kEffect);



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


            xc.EffectManager __cl_gen_to_be_invoked = (xc.EffectManager)translator.FastGetCSObj(L, 1);


            try {
                {
                    ulong uiID = LuaAPI.lua_touint64(L, 2);

                    xc.SkillAttackInstance __cl_gen_ret = __cl_gen_to_be_invoked.GetAttackInstance(uiID);
                    translator.Push(L, __cl_gen_ret);



                    return(1);
                }
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
        }
Ejemplo n.º 8
0
        static int _m_AddSkillInstance(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


            xc.EffectManager __cl_gen_to_be_invoked = (xc.EffectManager)translator.FastGetCSObj(L, 1);


            try {
                {
                    ulong uiID = LuaAPI.lua_touint64(L, 2);
                    xc.SkillAttackInstance kSkillEffect = (xc.SkillAttackInstance)translator.GetObject(L, 3, typeof(xc.SkillAttackInstance));

                    __cl_gen_to_be_invoked.AddSkillInstance(uiID, kSkillEffect);



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