public AvatarProperty(AvatarProperty other) { BodyId = other.BodyId; WeaponId = other.WeaponId; FashionWingId = other.FashionWingId; FashionBodyId = other.FashionBodyId; FashionWeaponId = other.FashionWeaponId; EquipBodyId = other.EquipBodyId; EquipWeaponId = other.EquipWeaponId; if (other.SuitEffectIds != null) { SuitEffectIds = new List <uint>(other.SuitEffectIds); } WingResPath = other.WingResPath; Vocation = other.Vocation; ElfinId = other.ElfinId; ElfinResPath = other.ElfinResPath; FashionMagicalPetId = other.FashionMagicalPetId; MagicalPetResPath = other.MagicalPetResPath; FashionFootprintId = other.FashionFootprintId; FashionBubbleId = other.FashionBubbleId; FashionPhotoFrameId = other.FashionPhotoFrameId; LightWeaponId = other.LightWeaponId; BackAttachmentID = other.BackAttachmentID; }
/// <summary> /// 将模型列表中的BODY替换成高模 /// </summary> public static List <uint> ReplaceModelList(List <uint> model_list, Actor.EVocationType vocation, bool newList = false) { // 暂时使用之前的model_list return(model_list); List <uint> modelList = null; if (newList) { modelList = new List <uint>(model_list); } else { modelList = model_list; } if (modelList == null) { GameDebug.LogError("[ReplaceModelList]ModelList is null"); return(null); } if (modelList.Count > 0) { for (int k = 0; k < modelList.Count; ++k) { DBAvatarPart dbAvatar = DBManager.GetInstance().GetDB <DBAvatarPart>(); DBAvatarPart.Data data = null; dbAvatar.mData.TryGetValue(modelList[k], out data); if (data != null) { if (data.part == DBAvatarPart.BODY_PART.BODY) { // 替换bodypart modelList[k] = modelList[k] * 100; } } } } else { DBAvatarDefault.Data defaultAvatar = null; if (DBManager.GetInstance().GetDB <DBAvatarDefault>().mData.TryGetValue(vocation, out defaultAvatar)) { modelList.Add(defaultAvatar.bodyId * 100); modelList.Add(defaultAvatar.weaponId); } } return(modelList); }
/// <summary> /// 获取职业图标 /// </summary> /// <param name="level"></param> /// <returns></returns> public string GetVocationIcon(Actor.EVocationType vocation_type) { return(string.Format("GuildWindow@Occupation_{0}", (int)vocation_type)); }