Vixen
c7401864
csharp
public sealed class InverterDecorator

Inverts what the node it is attached to returns.

Read the guide page for this →

Remarks

Gates nothing: a node under an inverter is always entered, and it is the result that turns over. That is the difference between this and a negated condition, and it is why CompositeDecorator with Not exists as well.

Methods (2)

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

  • BehaviorTreeDecoratorTestsVixen.Ai.Tests
  • BuildStateVixen.Ai