Vixen
caa30e12
csharp
public sealed class LogTask

Narrates the tree into the debug record, so a headless run can be read afterwards.

Read the guide page for this →

Remarks

⚠ Into the recorder, not into a log sink. doc 37 § D20 has one debug surface for all three planners and P7 builds the visual log over the same records — so a task that wrote somewhere else would be a second place to look. It costs nothing when the recorder is off, which it is by default.

Methods (4)

  • public LogTask(Symbol message, AiPlanner planner = BehaviorTree)

    Narrates the tree into the debug record, so a headless run can be read afterwards.

  • public void Start(in AgentContext context, Span<byte> state)

    Begins. Called once before the first Tick, on a zeroed span.

  • public ActionStatus Tick(in AgentContext context, Span<byte> state, float delta)

    Advances it.

  • public void Abort(in AgentContext context, Span<byte> state)

    Stops it early. The span is zeroed afterwards; this is for what is outside it.

Used by (2)

  • BehaviorTreeTaskTestsVixen.Ai.Tests
  • BuildStateVixen.Ai