IBuff.cs 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. using XGame.Database;
  2. namespace FL.Battle.Buffs
  3. {
  4. public interface IBuff
  5. {
  6. public int TableId { get; }
  7. public long EntityId { get; }
  8. public long OwnerId { get; }
  9. ///// <summary>
  10. ///// Buff施放者的EntityId
  11. ///// </summary>
  12. //public long MasterId { get; set; }
  13. ///// <summary>
  14. ///// Buff作用目标的EntityId
  15. ///// </summary>
  16. //public List<long> Targets { get; }
  17. ///// <summary>
  18. ///// 剩余时间
  19. ///// 单位:毫秒
  20. ///// </summary>
  21. //public int RemainTime { get; }
  22. /// <summary>
  23. /// 持续时间
  24. /// -1表示无限时长
  25. /// 单位:毫秒
  26. /// </summary>
  27. public int Duration { get; }
  28. /// <summary>
  29. /// 叠加层数
  30. /// </summary>
  31. public int Layers { get; set; }
  32. /// <summary>
  33. /// 叠加上限
  34. /// </summary>
  35. public int LayerLimit { get; }
  36. /// <summary>
  37. /// 类型
  38. /// </summary>
  39. public EBuffType BuffType { get; }
  40. /// <summary>
  41. /// 元素属性
  42. /// </summary>
  43. public EElementType ElementType { get; }
  44. /// <summary>
  45. /// 图标名字
  46. /// </summary>
  47. public string IconName { get; }
  48. }
  49. }