18 lines
456 B
C#
18 lines
456 B
C#
namespace Content.Server.NPC.HTN;
|
|
|
|
/// <summary>
|
|
/// Helper interface to run the appropriate shutdown for a particular task.
|
|
/// </summary>
|
|
public interface IHtnConditionalShutdown
|
|
{
|
|
/// <summary>
|
|
/// When to shut the task down.
|
|
/// </summary>
|
|
HTNPlanState ShutdownState { get; }
|
|
|
|
/// <summary>
|
|
/// Run whenever the <see cref="ShutdownState"/> specifies.
|
|
/// </summary>
|
|
void ConditionalShutdown(NPCBlackboard blackboard);
|
|
}
|