Module ambient_api::ecs
source · Expand description
ECS-related functionality not directly related to entities.
Structs
- A partially-built ECS query that calls a callback when entities containing components marked with Self::track_change have those components change.
- A component (piece of entity data). See entity::get_component and entity::set_component.
- Helper that lets you pass in concepts where component tuples are expected.
- An Entity is a collection of components and associated values.
- An ECS query that calls a callback when its associated event occurs.
- An ECS query used to find entities in the world.
- Build a GeneralQuery for the ECS. This is how you find entities in the game world.
- An ECS query that will call a callback when entities containing components marked with Self::track_change have those components change. This type represents a query that has not had any components marked for tracking yet.
Enums
- An option value that can be stored in a component.
- A value that can be stored in a component.
- A vector value that can be stored in a component.
- When this EventQuery should return results.
Traits
- A tuple of Components.
- Concepts are defined in the package manifest, and are used to define a collection of components that correspond to some concept in the game world.
- Provides component tuples for this concept.
- Provides a helper method to get an instance of this concept with all of the fields filled in with suggested values.
- Implemented for component values that can be used as an enum
- Implemented by all types that can be used as values in components.
- Implemented by all Components.
Functions
- Creates a new ChangeQuery that will find entities that have the specified
components
that will call its bound function when components marked by ChangeQuery::track_change change. - Creates a new EventQuery that will find entities that have the specified
components
that will call its bound function when an entity with those components are despawned / seen for the last time by this query. - Creates a new GeneralQueryBuilder that will find entities that have the specified
components
and can be built to create a GeneralQuery. - Creates a new EventQuery that will find entities that have the specified
components
that will call its bound function when an entity with those components are spawned / seen for the first time by this query.