csharp
public readonly record struct GoapEffectWhat an action does to a world key.
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 KeyWhich key.
public bool IncreasesWhether it goes up. Down otherwise.
Methods (1)
public GoapEffect(GoapWorldKey Key, bool Increases)What an action does to a world key.
Used by (11)
- VillageAiVillage
- 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