Vixen
c7401864
csharp
public sealed class TimeLimitDecorator

Fails the branch once it has been running for too long.

Read the guide page for this →

Fields and properties (2)

  • public override int StateSize

    How many bytes of per-agent state it needs.

  • public override bool Continuous

Methods (4)

  • public TimeLimitDecorator(float seconds)

    Fails the branch once it has been running for too long.

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

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

  • public override void Enter(in BehaviorContext context, Span<byte> state)

    The node is being entered.

  • 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 (2)

  • BehaviorTreeDecoratorTestsVixen.Ai.Tests
  • BuildStateVixen.Ai