Vixen
c7401864
csharp
public sealed class WaitTask

Waits a fixed number of seconds.

Read the guide page for this →

Fields and properties (1)

  • public static int StateSize

    How many bytes it needs. Registered with the action, per doc 37 § D3.

Methods (4)

  • public WaitTask(float seconds)

    Waits a fixed number of seconds.

  • 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 (6)

  • BehaviorTreeDeterminismTestsVixen.Ai.Tests
  • BehaviorTreeTaskTestsVixen.Ai.Tests
  • BuildStateVixen.Ai
  • RunQueryNodeTestsVixen.Ai.Nodes.Tests
  • VillageVixen.Ai.Nodes.Tests
  • LiveAgentVixen.Editor.AssetEditors.Tests