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



            try {
                {
                    xc.BuffCtrl      buff_ctrl   = (xc.BuffCtrl)translator.GetObject(L, 1, typeof(xc.BuffCtrl));
                    xc.Buff.BuffInfo kInfo       = (xc.Buff.BuffInfo)translator.GetObject(L, 2, typeof(xc.Buff.BuffInfo));
                    float            lifeTime    = (float)LuaAPI.lua_tonumber(L, 3);
                    uint             layer       = LuaAPI.xlua_touint(L, 4);
                    bool             shiftExcept = LuaAPI.lua_toboolean(L, 5);

                    xc.Buff __cl_gen_ret = xc.Buff.Construct(buff_ctrl, kInfo, lifeTime, layer, shiftExcept);
                    translator.Push(L, __cl_gen_ret);



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

            try {
                xc.Buff __cl_gen_to_be_invoked = (xc.Buff)translator.FastGetCSObj(L, 1);
                __cl_gen_to_be_invoked.ShiftExcept = LuaAPI.lua_toboolean(L, 2);
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
            return(0);
        }
示例#3
0
        static int _g_get_m_BuffId(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

            try {
                xc.Buff __cl_gen_to_be_invoked = (xc.Buff)translator.FastGetCSObj(L, 1);
                LuaAPI.xlua_pushuint(L, __cl_gen_to_be_invoked.m_BuffId);
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
            return(1);
        }
示例#4
0
        static int _m_AddBuff(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


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


            int __gen_param_count = LuaAPI.lua_gettop(L);

            try {
                if (__gen_param_count == 4 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 3) && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 4))
                {
                    uint  buff_id   = LuaAPI.xlua_touint(L, 2);
                    float life_time = (float)LuaAPI.lua_tonumber(L, 3);
                    uint  layer     = LuaAPI.xlua_touint(L, 4);

                    xc.Buff __cl_gen_ret = __cl_gen_to_be_invoked.AddBuff(buff_id, life_time, layer);
                    translator.Push(L, __cl_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))
                {
                    uint  buff_id   = LuaAPI.xlua_touint(L, 2);
                    float life_time = (float)LuaAPI.lua_tonumber(L, 3);

                    xc.Buff __cl_gen_ret = __cl_gen_to_be_invoked.AddBuff(buff_id, life_time);
                    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.BuffCtrl.AddBuff!"));
        }
示例#5
0
        static int _m_Delete(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


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


            try {
                {
                    __cl_gen_to_be_invoked.Delete(  );



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


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


            try {
                {
                    uint __cl_gen_ret = __cl_gen_to_be_invoked.GetOverlayNum(  );
                    LuaAPI.xlua_pushuint(L, __cl_gen_ret);



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


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


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

                    xc.Buff __cl_gen_ret = __cl_gen_to_be_invoked.GetBuff(buff_id);
                    translator.Push(L, __cl_gen_ret);



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


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


            try {
                {
                    float lifeTime = (float)LuaAPI.lua_tonumber(L, 2);
                    uint  layer    = LuaAPI.xlua_touint(L, 3);

                    __cl_gen_to_be_invoked.ResetTime(lifeTime, layer);



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