Vixen
caa30e12

BlackboardWorldSource

class Core/Vixen.Ai/Goap/GoapWorld.cs:207
csharp
public sealed class BlackboardWorldSource

A numeric blackboard key, read as an int.

Read the guide page for this →

Remarks

⚠ A float key is truncated, and an unset key reads as zero. GOAP reasons about counts and thresholds — "at least one pear", "hunger below forty" — and a plan whose search depended on the fractional part of a health value would be a plan that changed on every frame the health drifted, for no difference anybody could see.

Methods (2)

  • public BlackboardWorldSource(BlackboardKey key)

    A numeric blackboard key, read as an int.

  • public int Read(in AgentContext context)

    Reads the world.

Used by (2)

  • GoapDomainTestsVixen.Ai.Tests
  • GoapWorldSourcesVixen.Ai