Vixen
caa30e12
csharp
public readonly record struct GoapEffect

What an action does to a world key.

Read the guide page for this →

Remarks

⚠ A direction and not an amount, and that is what makes GOAP authorable. Saying "eating reduces hunger by 40" makes every plan a simulation of arithmetic nobody can predict, and makes the graph depend on numbers a designer tunes. Saying "eating reduces hunger" is a fact about the action that stays true while the numbers move, and it is all the resolver needs to know which action can serve which condition.

Fields and properties (2)

  • public GoapWorldKey Key

    Which key.

  • public bool Increases

    Whether it goes up. Down otherwise.

Methods (1)

  • public GoapEffect(GoapWorldKey Key, bool Increases)

    What an action does to a world key.

Used by (10)

  • GoapActionVixen.Ai
  • GoapBudgetTestsVixen.Ai.Tests
  • GoapCostTestsVixen.Ai.Tests
  • GoapDomainContentCompilerVixen.Ai
  • GoapDomainTestsVixen.Ai.Tests
  • GoapPearTestsVixen.Ai.Tests
  • GoapThroughputTestsVixen.Ai.Tests
  • VillageVixen.Ai.Nodes.Tests
  • GoapGraphProjectionVixen.Editor.Ai
  • LiveAgentVixen.Editor.AssetEditors.Tests