using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Snxxz.UI { public class CalculateSkillGetAttrHurtUtility : Singleton { public bool TryGetAttrDictBySkill(int _skillId,out Dictionary attrDict) { attrDict = new Dictionary(); var attrIds = GeneralDefine.GetAttrIdsBySkill(_skillId); if(attrIds != null) { foreach(var attrId in attrIds) { attrDict.Add(attrId, (int)UIHelper.GetPropertyValue((PropertyType)attrId)); } } return attrDict.Count > 0; } } }