public sealed class BehaviorNodeDefinitionOne authored node, before it is compiled.
Remarks
The tree as a person drew it: a root with children, each carrying its own decorators and services as lists. Children is ordered, and that order is the whole priority ordering of the compiled tree.
⚠ Child order is stored, not derived from a position on a canvas. Unreal derives it from the horizontal position of the child nodes, which makes three ordinary gestures dangerous: auto-layout re-derives positions, so laying the graph out silently reorders the tree; dragging a node six pixels left to line it up with its sibling changes which branch wins; and a merge that resolves two positions produces a tree neither author wrote, with a diff showing only coordinates. All three are silent and all three change what the agent does — doc 37 § D5.
Fields and properties (10)
public Symbol NameWhat it is called, for diagnostics and for the editor.
public BehaviorNodeKind KindComposite or task.
public BehaviorCompositeKind CompositeHow it walks its children, when it is a composite.
public Symbol ActionWhich registered action it runs, when it is a task.
public ParallelFinishMode FinishModeWhat a parallel does when its main task ends.
public float WeightIts share of a random selector's draw. Non-positive is treated as one.
public BehaviorTreeAsset? SubtreeThe tree to splice in here, when this task is a static RunSubtree.
public List<BehaviorNodeDefinition> ChildrenIts children, in priority order.
public List<BehaviorDecorator> DecoratorsIts decorators, in evaluation order.
public List<BehaviorServiceDefinition> ServicesIts services.
Methods (3)
public BehaviorNodeDefinition With(BehaviorDecorator decorator)Attaches a decorator, after the ones already there.
public BehaviorNodeDefinition With(BehaviorService service, float interval, float randomDeviation = 0)Attaches a service.
public BehaviorNodeDefinition Add(BehaviorNodeDefinition child)Adds a child, after the ones already there.
Used by (18)
- AiSnapshotTestsVixen.Ai.Tests
- AiSystemTreeTestsVixen.Ai.Tests
- BehaviorTreeVixen.Ai
- BehaviorTreeAbortOrderingTestsVixen.Ai.Tests
- BehaviorTreeAbortTestsVixen.Ai.Tests
- BehaviorTreeAssetVixen.Ai
- BehaviorTreeCompilerTestsVixen.Ai.Tests
- BehaviorTreeCompositeTestsVixen.Ai.Tests
- BehaviorTreeContentCompilerVixen.Ai
- BehaviorTreeCostTestsVixen.Ai.Tests
- BehaviorTreeDecoratorTestsVixen.Ai.Tests
- BehaviorTreeDeterminismTestsVixen.Ai.Tests
- BehaviorTreeServiceTestsVixen.Ai.Tests
- BuildStateVixen.Ai
- CompileStateVixen.Ai
- FleetVixen.Ai.Tests
- TreeHarnessVixen.Ai.Tests
- VillageVixen.Ai.Nodes.Tests