logo

Module bevy::ecs::query

[]

Structs

Access keeps track of read and write accesses to values within a collection.

Filter that retrieves components of type T that have been added since the last execution of this system.

The AnyOf query parameter fetches entities with any of the component types included in T.

WorldQuery that tracks changes and additions for component T.

Filter that retrieves components of type T that have been changed since the last execution of this system.

Fetch that does not actually fetch anything

A filter that tests if any of the given filters apply.

An Iterator over query results of a Query.

Provides scoped access to a World state according to a given WorldQuery and query filter.

Filter that selects entities with a component T.

Filter that selects entities without a component T.

Enums

An error that occurs when retrieving a specific Entity’s query result.

Traits

Types that implement this trait are responsible for fetching query items from tables or archetypes.

State used to construct a Fetch. This will be cached inside QueryState, so it is best to move as much data / computation here as possible to reduce the cost of constructing Fetch.

Extension trait for Fetch containing methods used by query filters. This trait exists to allow “short circuit” behaviors for relevant query filter fetches.

A fetch that is read only.

Types that can be queried from a World.

Type Definitions

Derive Macros

Implement WorldQuery to use a struct as a parameter in a query