Vixen
c7401864
csharp
public sealed class UpdateBlackboardService

Runs an IWorldSensor on an interval and writes what it says into a key.

Read the guide page for this →

Remarks

⚠ A service and a sensor are the same thing with two front ends. doc 37 § D13 splits sensors into local and global, and a behaviour tree's service is a local sensor with a schedule — so this is the whole of the tree half, and P6's GOAP reads the same IWorldSensor implementations without a tree anywhere.

Methods (2)

  • public UpdateBlackboardService(IWorldSensor sensor, BlackboardKey key)

    Runs an IWorldSensor on an interval and writes what it says into a key.

  • public override void Tick(in BehaviorContext context, Span<byte> state, float delta)

    Its interval has elapsed.

Used by (2)

  • BehaviorTreeServiceTestsVixen.Ai.Tests
  • BuildStateVixen.Ai