Vixen
caa30e12
csharp
public sealed class FinishWithTask

Succeeds or fails at once. The branch terminator.

Read the guide page for this →

Remarks

Two of these are what most trees actually need for "and then stop trying" and "this branch is a dead end" — and having a node say so is what stops authors reaching for an inverter on an empty sequence to mean the same thing.

Methods (4)

  • public FinishWithTask(ActionStatus result)

    Succeeds or fails at once. The branch terminator.

  • public void Start(in AgentContext context, Span<byte> state)

    Begins. Called once before the first Tick, on a zeroed span.

  • public ActionStatus Tick(in AgentContext context, Span<byte> state, float delta)

    Advances it.

  • public void Abort(in AgentContext context, Span<byte> state)

    Stops it early. The span is zeroed afterwards; this is for what is outside it.

Used by (5)

  • AuthorableNodeTestsVixen.Ai.Tests
  • BehaviorTreeResolverVixen.Ai
  • BehaviorTreeTaskTestsVixen.Ai.Tests
  • BindingTestsVixen.Ai.Perception.Tests
  • BuildStateVixen.Ai