Vixen
c7401864
csharp
public sealed class WaitBlackboardTimeTask

Waits for however long a key says, with an optional random deviation.

Read the guide page for this →

Fields and properties (1)

  • public static int StateSize

    How many bytes it needs.

Methods (4)

  • public WaitBlackboardTimeTask(BlackboardKey key, float randomDeviation = 0)

    Waits for however long a key says, with an optional random deviation.

  • 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