/// <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)); }
/// <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)); }
// 获得加成的描述 // anticipationFaction:用户自定义的因子 public string GetDesc(bool isIgnoreName = false, bool isColor = true, float?inputVal = null) { return(BaseAttrMgr <T> .GetAttrStr( Type, AnticipationVal(inputVal), IsPercentSign(), isIgnoreName, isColor)); }
public float AnticipationVal(float val) { return(BaseAttrMgr <T> .GetAttrValByFaction(Val, val, FactionType)); }
public string ToString(bool isHaveSign = false, bool isHaveColor = true, bool isHeveAttrName = true) { return(BaseAttrMgr <T> .GetFullAttrString(Type, RealVal, isHaveSign, isHaveColor, isHeveAttrName)); }
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))); }
public string GetDesc(bool isHaveSign = false, bool isHaveColor = false, bool isHeveAttrName = true) => BaseAttrMgr <T> .GetAttrCostStr(Type, RealVal, isHaveSign, isHaveColor, isHeveAttrName);
public Sprite GetIcon() => BaseAttrMgr <T> .GetAttrIcon(Type);
public string GetName() => BaseAttrMgr <T> .GetAttrName(Type);