public sealed class QueryResultsThe working set of one query run: the points, their scores, and every factor behind them.
Remarks
⚠ Reused between runs rather than allocated per run, which is the difference between an environment query being affordable on a schedule and being a thing projects turn off. A query generating four hundred points over a dozen agents is a list of four hundred structs, cleared and refilled; a run that allocated would allocate that much per agent per interval.
The per-factor detail is optional and off unless Detailed is set. It is what the editor's preview table and the debug overlay read — why is this point worse than that one — and it is points × tests floats, which is exactly the cost nobody wants to pay in a shipped build.
Fields and properties (8)
public int CountHow many points there are.
public ReadOnlySpan<ScoredQueryPoint> PointsEvery point, in the order the generators made them.
public int FactorsHow many factors each point recorded, or zero when nothing was recorded.
public bool DetailedWhether the per-factor detail is kept.
public Symbol QueryWhich query produced this.
public int GeneratedHow many points a generator made before anything was filtered.
public int SurvivingHow many survived every filtering test.
public int BestThe index of the best point, or -1 when nothing survived.
Methods (3)
public bool TryBest(out QueryPoint point)The best point, if there is one.
public ReadOnlySpan<float> DetailOf(int index)What one point's factors read, when the detail was kept.
public void Clear()Forgets everything, keeping the room it was in.
Used by (13)
- EnvironmentQueryVixen.Ai
- QueryContentTestsVixen.Ai.Tests
- QueryPreviewVixen.Ai.Diagnostics
- QueryPreviewTestsVixen.Ai.Diagnostics.Tests
- QueryRunnerVixen.Ai.Nodes
- QueryScorerExitCriteriaTestsVixen.Ai.Tests
- QueryTestPurposeTestsVixen.Ai.Tests
- RunQueryServiceVixen.Ai.Nodes
- RunQueryTaskVixen.Ai.Nodes
- WorldQueryTestsVixen.Ai.Nodes.Tests
- QueryDocumentVixen.Editor.AssetEditors
- QueryDocumentTestsVixen.Editor.AssetEditors.Tests
- QueryViewVixen.Editor.AssetEditors