Beispiel #1
0
        public override IconItemData Convert()
        {
            IconItemData data = base.Convert();

            data.Image = InternalMethods.GetImageByUnitFunctionType(functionType);
            BDDescriptionAttribute bdDescAttr = EnumAttrDict <UnitFunctionType, BDDescriptionAttribute> .Instance.GetAttribute(functionType);

            data.Tip = bdDescAttr.Tip;

            return(data);
        }
Beispiel #2
0
 public FunctionData()
 {
     functionGroupType = InternalMethods.GetUnitFunctionGroupType(functionType);
     Text = EnumDictionary <UnitFunctionType> .Instance.GetDescription(functionType);
 }