Vixen
c7401864
csharp
public sealed class ConditionalLoopDecorator

Runs the node again for as long as a key condition holds.

Read the guide page for this →

Fields and properties (1)

  • public override ReadOnlySpan<BlackboardKey> ObservedKeys

    The blackboard keys it reads.

Methods (3)

  • public ConditionalLoopDecorator(BehaviorDecorator condition)

    Runs the node again for as long as a key condition holds.

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

    Whether the node should run again instead of returning.

Used by (3)

  • AuthorableNodeTestsVixen.Ai.Tests
  • BehaviorTreeDecoratorTestsVixen.Ai.Tests
  • BuildStateVixen.Ai