csharp
public sealed class CompareEntriesDecoratorTwo keys against each other.
Remarks
Its own decorator rather than a special case of BlackboardDecorator, because "is the target closer than the leash" is a different authoring gesture from "is the target closer than four metres" and the editor shows two key pickers rather than one and a number.
Fields and properties (2)
public override ObserverAborts AbortsWhat this may interrupt when the keys it reads change.
public override ReadOnlySpan<BlackboardKey> ObservedKeysThe blackboard keys it reads.
Methods (2)
public CompareEntriesDecorator(BlackboardKey left, BlackboardKey right, BlackboardTest test = Equal, ObserverAborts aborts = None)Compares two keys of the same type.
public override bool Evaluate(in BehaviorContext context, ReadOnlySpan<byte> state)Whether the node may be entered, or may keep running.
Used by (2)
- BehaviorTreeDecoratorTestsVixen.Ai.Tests
- BuildStateVixen.Ai