using System;
|
using System.Collections.Generic;
|
using System.Linq;
|
using System.Text;
|
|
namespace vnxbqy.UI
|
{
|
public class CalculateSkillGetAttrHurtUtility : Singleton<CalculateSkillGetAttrHurtUtility>
|
{
|
|
|
public bool TryGetAttrDictBySkill(int _skillId,out Dictionary<int,int> attrDict)
|
{
|
attrDict = new Dictionary<int, int>();
|
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;
|
}
|
}
|
}
|