Vixen
caa30e12
csharp
public sealed class UtilitySetContent

A utility set as a file: a list of actions, each with a list of considerations.

Read the guide page for this →

Remarks

⚠ A list and not a graph, and doc 37 § P5 is explicit about why. A utility set has no edges: drawing it on a canvas would be a canvas whose wires all run from a column of inputs to a column of actions and carry nothing. What it wants is a two-pane table and a curve, which is what the editor gives it.

The keys are optional. A set that is an agent's whole planner shares the layout with whatever else that agent runs, so the compiler takes one. A set authored on its own — a test, a sample, a first draft — declares its own and BuildLayout makes it, exactly the way a .vxbt does.

Fields and properties (10)

  • public const string Extension

    What a utility set is called on disk.

  • public const int Current

    The version this build writes and reads.

  • public int Version

    Which version wrote this file.

  • public string Name

    What the set is called.

  • public List<BehaviorKeyContent> Keys

    Its blackboard's keys, when it declares its own.

  • public List<UtilityActionContent> Actions

    What the agent might do.

  • public UtilitySelectorKind Selector

    Which of the scored actions wins.

  • public int SelectorCount

    How many of the best to consider, for the top-weighted selector.

  • public float CommitmentBonus

    How much is added to the running action's score.

  • public float DecisionInterval

    Seconds between decisions.

Methods (2)

Used by (11)

  • TypeRegistrationVixen.Ai
  • UtilityContentTestsVixen.Ai.Tests
  • UtilitySetContentCompilerVixen.Ai
  • Vixen_Ai_UtilitySetContentSerializerVixen.Ai
  • LiveAgentVixen.Editor.AssetEditors.Tests
  • SnapshotCommandVixen.Editor.AssetEditors
  • UtilitySetDocumentVixen.Editor.AssetEditors
  • UtilitySetDocumentTestsVixen.Editor.AssetEditors.Tests
  • UtilitySetImporterVixen.Editor.Assets
  • UtilitySetModelVixen.Editor.Ai
  • UtilitySetViewVixen.Editor.AssetEditors