mirror of
https://github.com/Alex-Rachel/TEngine.git
synced 2025-08-14 16:51:28 +00:00
18 lines
445 B
C#
18 lines
445 B
C#
using System;
|
|
|
|
namespace ET
|
|
{
|
|
public class AIHandlerAttribute: BaseAttribute
|
|
{
|
|
}
|
|
|
|
[AIHandler]
|
|
public abstract class AAIHandler
|
|
{
|
|
// 检查是否满足条件
|
|
public abstract int Check(AIComponent aiComponent, AIConfig aiConfig);
|
|
|
|
// 协程编写必须可以取消
|
|
public abstract ETTask Execute(AIComponent aiComponent, AIConfig aiConfig, ETCancellationToken cancellationToken);
|
|
}
|
|
} |