Vixen
c7401864
csharp
public sealed class CooldownDecorator

Refuses entry until a number of seconds has passed since the branch last ended.

Read the guide page for this →

Fields and properties (1)

  • public override int StateSize

    How many bytes of per-agent state it needs.

Methods (3)

  • public CooldownDecorator(float seconds)

    Refuses entry until a number of seconds has passed since the branch last ended.

  • public override bool Evaluate(in BehaviorContext context, ReadOnlySpan<byte> state)

    Whether the node may be entered, or may keep running.

  • public override ActionStatus Finish(in BehaviorContext context, Span<byte> state, ActionStatus result)

    The node has finished, and this is the last chance to change what that meant.

Used by (3)

  • BehaviorTreeCompilerTestsVixen.Ai.Tests
  • BehaviorTreeDecoratorTestsVixen.Ai.Tests
  • BuildStateVixen.Ai