IRunnable.cs 413 B

123456789101112131415161718192021
  1. namespace XGame.Framework.Interfaces
  2. {
  3. /// <summary>
  4. /// 可运行
  5. /// </summary>
  6. public interface IRunnable
  7. {
  8. /// <summary>
  9. /// 是否开始
  10. /// </summary>
  11. bool Started { get; }
  12. /// <summary>
  13. /// 开始
  14. /// </summary>
  15. void Start();
  16. /// <summary>
  17. /// 停止
  18. /// </summary>
  19. void Stop();
  20. }
  21. }