Vixen
caa30e12
csharp
public sealed class QueryDocument

An environment query, open for editing: two lists, in order.

Read the guide page for this →

Remarks

⚠ A list and not a graph — doc 37 § D14. Unreal draws EQS on a graph canvas, and what is on that canvas is a root with a fixed list of children and no wiring decisions anywhere. So the document is what the thing is: generators, then tests, in the order they run.

Fields and properties (7)

  • public const string Extension

    What an environment query is written as.

  • public string AssetPath

    Where the file is, absolute.

  • public QueryContent Content

    The query as a file holds it.

  • public string? LoadError

    Why the file would not read, or .

  • public IReadOnlyList<BehaviorTreeDiagnostic> Diagnostics

    What the last Compile had to say.

  • public EnvironmentQuery? Query

    What the last Compile produced, or .

  • public QueryResults Results

    The points the last Preview generated and scored.

Events (1)

  • public Action<QueryDocument>? Changed

    Raised after anything changes.

Methods (8)

  • public QueryDocument(EditorProject project, AssetId asset, string path)

    Opens a query.

  • public string ToYaml()

    The query as it would be written.

  • public EnvironmentQuery? Compile(BehaviorTreeResolver? resolver = null)

    Compiles the query.

  • public bool Preview(World world, Vector3 querier, Vector3? context = null, BehaviorTreeResolver? resolver = null)

    Runs the query from a point and keeps every scored candidate, which is what the preview draws.

  • public void Edit(string name, Action<QueryContent> gesture, string? mergeKey = null)

    Runs a gesture as one undo entry.

  • public bool MoveTest(int index, int delta)

    Moves a test up or down the list.

  • protected override void SaveCore()

    Writes the document back to wherever it came from.

  • public static QueryContent Copy(QueryContent content)

    A deep copy of a query, for an undo entry.

Used by (5)

  • QueryDocumentTestsVixen.Editor.AssetEditors.Tests
  • QueryEditorFactoryVixen.Editor.AssetEditors
  • QueryViewVixen.Editor.AssetEditors
  • QueryViewTestsVixen.Editor.AssetEditors.Tests
  • SnapshotCommandVixen.Editor.AssetEditors