public void Init(Net.PkgGoodsInfo equip) { Attrs = new Attributes(); BasicAttrs = new ActorAttribute(); LegendAttrs = new EquipAttributes(); if (equip != null) { //处理LegendAttrs } }
/// <summary> /// 根据PkgExotic列表生成EquipAttributes /// </summary> /// <param name="pkgExotics"></param> /// <returns></returns> public static EquipAttributes ParseByPkgKvMins(List <Net.PkgExotic> pkgExotics) { EquipAttributes equipAttributes = new EquipAttributes(); foreach (var attr in pkgExotics) { equipAttributes.Add(attr.id, attr.vals); } return(equipAttributes); }