Esempio n. 1
0
 /// <summary>
 /// layer:用户自定义层数
 /// </summary>
 /// <param name="isIgnoreName"></param>
 /// <param name="isColor"></param>
 /// <param name="layer"></param>
 /// <returns></returns>
 public string GetDescByLayer(bool isIgnoreName = false, bool isColor = true, int layer = 1)
 {
     return(BaseAttrMgr <T> .GetAttrStr(
                Type,
                RealVal *layer,
                IsPercentOp(),
                isIgnoreName,
                isColor));
 }
Esempio n. 2
0
 /// <summary>
 /// 获得加成的描述
 /// anticipationFaction:用户自定义的因子
 /// </summary>
 /// <returns></returns>
 public string GetDesc(bool isIgnoreName = false, bool isColor = true, float?anticipationFaction = null)
 {
     return(BaseAttrMgr <T> .GetAttrStr(
                Type,
                anticipationFaction == null?RealVal : AnticipationVal(anticipationFaction.Value),
                IsPercentOp(),
                isIgnoreName,
                isColor));
 }
Esempio n. 3
0
 // 获得加成的描述
 // anticipationFaction:用户自定义的因子
 public string GetDesc(bool isIgnoreName = false, bool isColor = true, float?inputVal = null)
 {
     return(BaseAttrMgr <T> .GetAttrStr(
                Type,
                AnticipationVal(inputVal),
                IsPercentSign(),
                isIgnoreName,
                isColor));
 }
Esempio n. 4
0
 public float AnticipationVal(float val)
 {
     return(BaseAttrMgr <T> .GetAttrValByFaction(Val, val, FactionType));
 }
Esempio n. 5
0
 public string ToString(bool isHaveSign = false, bool isHaveColor = true, bool isHeveAttrName = true)
 {
     return(BaseAttrMgr <T> .GetFullAttrString(Type, RealVal, isHaveSign, isHaveColor, isHeveAttrName));
 }
Esempio n. 6
0
        public override string GetDesc()
        {
            TDBaseAttrData attrData = BaseAttrMgr <Type> .GetAttrDataList()[Enum <Type> .Int(AttrType)];

            return(GetStr("AC_IsAttrToAct", (AttrType as Enum).GetName(), CompareType.GetName(), BaseAttrMgr <Type> .GetAttrNumberStr(AttrType, val)));
        }
Esempio n. 7
0
 public string GetDesc(bool isHaveSign = false, bool isHaveColor = false, bool isHeveAttrName = true) => BaseAttrMgr <T> .GetAttrCostStr(Type, RealVal, isHaveSign, isHaveColor, isHeveAttrName);
Esempio n. 8
0
 public Sprite GetIcon() => BaseAttrMgr <T> .GetAttrIcon(Type);
Esempio n. 9
0
 public string GetName() => BaseAttrMgr <T> .GetAttrName(Type);