csharp
public readonly record struct BehaviorTaskBuildA task, and how many bytes of per-agent state it needs.
Remarks
⚠ The size is here because IAgentAction deliberately has no instance member for it — the size is a property of the type, is wanted before an instance exists, and a virtual call per registration to fetch a constant would be the wrong shape. Every shipped task declares a static int StateSize; a factory reads its own and passes it here.
Fields and properties (2)
public IAgentAction ActionThe task.
public int StateSizeIts StateSize, which the registry needs and the interface cannot carry.
Methods (1)
public BehaviorTaskBuild(IAgentAction Action, int StateSize = 0)A task, and how many bytes of per-agent state it needs.
Used by (5)
- BehaviorTreeResolverVixen.Ai
- BuildStateVixen.Ai
- PerceptionNodesVixen.Ai.Perception
- QueryNodesVixen.Ai.Nodes
- WorldNodesVixen.Ai.Nodes