Vixen
c7401864
csharp
public readonly record struct BehaviorTaskBuild

A task, and how many bytes of per-agent state it needs.

Read the guide page for this →

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 Action

    The task.

  • public int StateSize

    Its 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