IBuildCommand.cs 704 B

123456789101112131415161718192021222324252627282930
  1. namespace XGame.Editor.Build
  2. {
  3. interface IBuildCommand
  4. {
  5. //void Start();
  6. //void Completed(BuildErrorCode code);
  7. }
  8. /// <summary>
  9. /// Cmd同步执行接口
  10. /// </summary>
  11. interface ICommandExecuter
  12. {
  13. /// <summary>
  14. /// 执行成功返回BuildErrorCode.CmdCompleted
  15. /// 失败则自行新增BuildErrorCode
  16. /// </summary>
  17. /// <returns></returns>
  18. BuildErrorCode Execute();
  19. }
  20. /// <summary>
  21. /// Cmd异步执行接口
  22. /// </summary>
  23. interface ICommandExecuterAsync
  24. {
  25. /// <summary>
  26. /// 结束需要主动调用Completed
  27. /// </summary>
  28. void Execute();
  29. }
  30. }