Vixen
c7401864
csharp
public sealed class MakeNoiseTask

Makes a noise where the agent is, and finishes.

Read the guide page for this →

Remarks

doc 37 § Part 3's MakeNoise. A one-frame task rather than a decorator or a service, because a noise is an event: it happens once, at a point in a branch, and a tree that wanted a continuous one would put this under a Loop and say so.

Fields and properties (1)

  • public static int StateSize

    How many bytes it needs.

Methods (4)

  • public MakeNoiseTask(PerceptionSystem system, float loudness = 1)

    Makes a noise where the agent is, and finishes.

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

  • PerceptionNodeTestsVixen.Ai.Perception.Tests
  • PerceptionNodesVixen.Ai.Perception