Module bevy_internal::ecs

source ·
Expand description

Bevy’s entity-component-system.

Modules

  • Types for defining Archetypes, collections of entities that have the same set of components.
  • Types for handling Bundles.
  • Types that detect when their internal data mutate.
  • Types for declaring and storing Components.
  • Entity handling types.
  • Event handling types.
  • A module for the unified Identifier ID struct, for use as a representation of multiple types of IDs in a single, packed type. Allows for describing an crate::entity::Entity, or other IDs that can be packed and expressed within a u64 sized type. Identifiers cannot be created directly, only able to be converted from other compatible IDs.
  • Most commonly used re-exported types.
  • Bevy Ptr
  • Contains APIs for retrieving component data from the world.
  • Types that enable reflection support.
  • Alerting events when a component is removed from an entity.
  • Contains APIs for ordering systems and executing them on a World
  • Storage layouts for ECS data.
  • Tools for controlling behavior in an ECS application.
  • Defines the World and APIs for accessing it directly.

Macros

  • Helper macro to generate tuple pyramids. Useful to generate scaffolding to work around Rust lacking variadics. Invoking all_tuples!(impl_foo, start, end, P, Q, ..) invokes impl_foo providing ident tuples through arity start..=end.