AAIHandler.cs 445 B

123456789101112131415161718
  1. using System;
  2. namespace ET
  3. {
  4. public class AIHandlerAttribute: BaseAttribute
  5. {
  6. }
  7. [AIHandler]
  8. public abstract class AAIHandler
  9. {
  10. // 检查是否满足条件
  11. public abstract int Check(AIComponent aiComponent, AIConfig aiConfig);
  12. // 协程编写必须可以取消
  13. public abstract ETTask Execute(AIComponent aiComponent, AIConfig aiConfig, ETCancellationToken cancellationToken);
  14. }
  15. }