csharp
public sealed class BlackboardDecoratorA key is set, or not set, or compares to a constant.
Remarks
The commonest decorator there is, in every reference implementation. Everything it compares is resolved at construction — the key to an index, the constant to bytes — so a test is a span read and a comparison, and never a name lookup.
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 (6)
public static BlackboardDecorator Set(BlackboardKey key, bool set = true, ObserverAborts aborts = None)Tests whether a key holds anything at all.
public static BlackboardDecorator Bool(BlackboardKey key, bool value = true, ObserverAborts aborts = None)Tests a boolean key.
public static BlackboardDecorator Number(BlackboardKey key, BlackboardTest test, float value, ObserverAborts aborts = None)Compares a numeric key against a constant.
public static BlackboardDecorator Word(BlackboardKey key, Symbol value, bool equal = true, ObserverAborts aborts = None)Compares a symbol key against a constant.
public static BlackboardDecorator Is(BlackboardKey key, Entity value, bool equal = true, ObserverAborts aborts = None)Compares an entity key against one.
public override bool Evaluate(in BehaviorContext context, ReadOnlySpan<byte> state)Whether the node may be entered, or may keep running.
Used by (12)
- AiSnapshotTestsVixen.Ai.Tests
- AiSystemTreeTestsVixen.Ai.Tests
- BehaviorTreeAbortOrderingTestsVixen.Ai.Tests
- BehaviorTreeAbortTestsVixen.Ai.Tests
- BehaviorTreeCompilerTestsVixen.Ai.Tests
- BehaviorTreeCompositeTestsVixen.Ai.Tests
- BehaviorTreeCostTestsVixen.Ai.Tests
- BehaviorTreeDecoratorTestsVixen.Ai.Tests
- BehaviorTreeDeterminismTestsVixen.Ai.Tests
- BehaviorTreeServiceTestsVixen.Ai.Tests
- BuildStateVixen.Ai
- VillageVixen.Ai.Nodes.Tests