/// <summary> /// 获取单一Buff /// </summary> /// <param name="managerId">经理Id</param> /// <param name="buffCode">Buff枚举</param> /// <param name="fillSource">是否填充源</param> /// <param name="syncFlag">缓存标记</param> /// <returns></returns> public DTOBuffValue GetBuffValue(Guid managerId, EnumBuffCode buffCode, bool fillSource, bool syncFlag) { var buffCodes = new EnumBuffCode[] { buffCode }; var values = GetBuffValues(managerId, EnumBuffUnitType.None, fillSource, syncFlag, buffCodes); if (null != values && values.Length > 0) { return(values[0]); } return(null); }
public static bool ForceSyncBuff(this IBuffCore core, EnumBuffCode buffCode, bool forceFlag) { return(core.ForceSyncBuff((int)buffCode, forceFlag)); }
public static bool RemoveBuff(this IBuffCore core, EnumBuffCode buffCode, int skillId) { return(core.RemoveBuff((int)buffCode, skillId)); }
public static bool TryGetBuff(this IBuffCore core, EnumBuffCode buffCode, ref IBuff buff) { return(core.TryGetBuff((int)buffCode, ref buff)); }
public double GetBuffValue(EnumBuffCode buffCode, double rawVal = 0, double curVal = 0) { return(this[(int)buffCode, rawVal, curVal, true]); }
public double GetActionRange(EnumBuffCode buffCode) { return(this[(int)buffCode, 0, -1, true]); }
public double GetActionRate(EnumBuffCode buffCode, double rawVal) { return(this[(int)buffCode, rawVal, -1, true]); }
public double GetPropValue(EnumBuffCode buffCode, bool buffFlag) { return(this[(int)buffCode, 0, 0, buffFlag]); }