Exemplo 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));
 }
Exemplo 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));
 }
Exemplo 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));
 }
Exemplo n.º 4
0
 public float AnticipationVal(float val)
 {
     return(BaseAttrMgr <T> .GetAttrValByFaction(Val, val, FactionType));
 }
Exemplo n.º 5
0
 public string ToString(bool isHaveSign = false, bool isHaveColor = true, bool isHeveAttrName = true)
 {
     return(BaseAttrMgr <T> .GetFullAttrString(Type, RealVal, isHaveSign, isHaveColor, isHeveAttrName));
 }
Exemplo 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)));
        }
Exemplo n.º 7
0
 public string GetDesc(bool isHaveSign = false, bool isHaveColor = false, bool isHeveAttrName = true) => BaseAttrMgr <T> .GetAttrCostStr(Type, RealVal, isHaveSign, isHaveColor, isHeveAttrName);
Exemplo n.º 8
0
 public Sprite GetIcon() => BaseAttrMgr <T> .GetAttrIcon(Type);
Exemplo n.º 9
0
 public string GetName() => BaseAttrMgr <T> .GetAttrName(Type);