VfxArgs.cs 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. using FL.Battle.Actions;
  2. using System;
  3. using XGame.Framework.Interfaces;
  4. namespace FL.Battle.Components
  5. {
  6. /// <summary>
  7. /// 特效播放参数
  8. /// VfxComponent.Acquire创建实例
  9. /// VfxComponent.Recycle回收实例
  10. /// 默认特效播放结束自动回收
  11. /// </summary>
  12. public class VfxArgs : IReference
  13. {
  14. public string vfxName;
  15. /// <summary>
  16. /// 延迟播放
  17. /// 单位: 毫秒
  18. /// </summary>
  19. public int delay = 0;
  20. /// <summary>
  21. /// 播放时长,大于零
  22. /// 单位: 毫秒
  23. /// </summary>
  24. public int duration = 0;
  25. public EVfxFollowType followType;
  26. public IAction action;
  27. public Action onFinish;
  28. /// <summary>
  29. /// 通过next实现特效顺序播放
  30. /// </summary>
  31. public VfxArgs next;
  32. void IReference.Clear()
  33. {
  34. vfxName = string.Empty;
  35. delay = 0;
  36. duration = 0;
  37. followType = EVfxFollowType.Center;
  38. action = null;
  39. onFinish = null;
  40. next = null;
  41. }
  42. }
  43. }