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

            try {
                xc.GoodsMountEquip __cl_gen_to_be_invoked = (xc.GoodsMountEquip)translator.FastGetCSObj(L, 1);
                LuaAPI.xlua_pushuint(L, __cl_gen_to_be_invoked.Score);
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
            return(1);
        }
Exemplo n.º 2
0
        static int _s_set_suit_lv(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);

            try {
                xc.GoodsMountEquip __cl_gen_to_be_invoked = (xc.GoodsMountEquip)translator.FastGetCSObj(L, 1);
                __cl_gen_to_be_invoked.suit_lv = LuaAPI.xlua_touint(L, 2);
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
            return(0);
        }
Exemplo n.º 3
0
        static int _m_GetBestMountEquip_xlua_st_(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);



            try {
                {
                    xc.GoodsMountEquip __cl_gen_ret = xc.MountEquipHelper.GetBestMountEquip(  );
                    translator.Push(L, __cl_gen_ret);



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

            try {
                if (LuaAPI.lua_gettop(L) == 3 && LuaTypes.LUA_TNUMBER == LuaAPI.lua_type(L, 2) && translator.Assignable <Net.PkgGoodsInfo>(L, 3))
                {
                    uint             typeId    = LuaAPI.xlua_touint(L, 2);
                    Net.PkgGoodsInfo goodsInfo = (Net.PkgGoodsInfo)translator.GetObject(L, 3, typeof(Net.PkgGoodsInfo));

                    xc.GoodsMountEquip __cl_gen_ret = new xc.GoodsMountEquip(typeId, goodsInfo);
                    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.GoodsMountEquip constructor!"));
        }
Exemplo n.º 5
0
        static int _m_RefreshEquipUp(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


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


            try {
                {
                    __cl_gen_to_be_invoked.RefreshEquipUp(  );



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



            try {
                {
                    xc.GoodsMountEquip goods = (xc.GoodsMountEquip)translator.GetObject(L, 1, typeof(xc.GoodsMountEquip));

                    bool __cl_gen_ret = xc.MountEquipHelper.IsBetterMountEquip(goods);
                    LuaAPI.lua_pushboolean(L, __cl_gen_ret);



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


            System.Collections.Generic.Dictionary <uint, xc.GoodsMountEquip> __cl_gen_to_be_invoked = (System.Collections.Generic.Dictionary <uint, xc.GoodsMountEquip>)translator.FastGetCSObj(L, 1);


            try {
                {
                    xc.GoodsMountEquip value = (xc.GoodsMountEquip)translator.GetObject(L, 2, typeof(xc.GoodsMountEquip));

                    bool __cl_gen_ret = __cl_gen_to_be_invoked.ContainsValue(value);
                    LuaAPI.lua_pushboolean(L, __cl_gen_ret);



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


            System.Collections.Generic.Dictionary <uint, xc.GoodsMountEquip> __cl_gen_to_be_invoked = (System.Collections.Generic.Dictionary <uint, xc.GoodsMountEquip>)translator.FastGetCSObj(L, 1);


            try {
                {
                    uint key = LuaAPI.xlua_touint(L, 2);
                    xc.GoodsMountEquip value = (xc.GoodsMountEquip)translator.GetObject(L, 3, typeof(xc.GoodsMountEquip));

                    __cl_gen_to_be_invoked.Add(key, value);



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