Module ambient_api_core::ecs

source ·
Expand description

ECS-related functionality not directly related to entities.

Re-exports

  • pub use crate::internal::component::__internal_get_component;

Structs

Enums

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.