Vixen
02b45cc4
csharp
public sealed class Query

A QueryDescription bound to a world, with the archetypes it matched remembered.

No guide page documents this yet — the page shows what the code says about itself.

Remarks

The mask tests happen once per description per world and are redone only when the world grows a new archetype — which happens when an entity first reaches a component set nobody has used before, and then never again. Everything after that is a walk of a list.

Fields and properties (4)

  • public World World

    The world the archetypes belong to.

  • public QueryDescription Description

    What the query asks for.

  • public IReadOnlyList<Archetype> Archetypes

    The archetypes whose entities are in the query.

  • public int EntityCount

    How many entities the query matches, ignoring any change filter.

Methods (2)

  • public ChunkSequence Chunks(uint since = 0)

    The chunks to iterate.

  • public override string ToString()

    Renders the description and how many entities it currently matches.

Used by (6)

  • FoliageBlockersVixen.Rendering.Terrain
  • QueryOracleTestsVixen.Ecs.Tests
  • QueryTestsVixen.Ecs.Tests
  • TerrainSplineSpawnerVixen.Rendering.Terrain
  • WorldVixen.Ecs
  • TerrainModuleVixen.Editor.Terrain