Пример #1
0
        public void UpdateGodEquip(Net.PkgElementEp elementEquip)
        {
            pkgElementEp = elementEquip;

            if (ExtraAttrs == null)
            {
                ExtraAttrs = new EquipAttributes();
            }
            else
            {
                ExtraAttrs.Clear();
            }

            foreach (var attr in elementEquip.legend_attrs)
            {
                ExtraAttrs.Add(attr.id, attr.vals);
            }
        }
Пример #2
0
        static int _m_UpdateGodEquip(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


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


            try {
                {
                    Net.PkgElementEp elementEquip = (Net.PkgElementEp)translator.GetObject(L, 2, typeof(Net.PkgElementEp));

                    __cl_gen_to_be_invoked.UpdateGodEquip(elementEquip);



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