Module bevy_ecs::world

source ·
Expand description

Defines the World and APIs for accessing it directly.

Re-exports

Modules

Structs

  • Provides mutable access to a single entity and all of its components.
  • A read-only reference to a particular Entity and all of its components.
  • A mutable reference to a particular Entity, and the entire world. This is essentially a performance-optimized (Entity, &mut World) tuple, which caches the EntityLocation to reduce duplicate lookups.
  • An iterator that spawns a series of entities and returns the ID of each spawned entity.
  • Stores and exposes operations on entities, components, resources, and their associated metadata.
  • A read-only borrow of some data stored in a World. This type is returned by WorldCell, which uses run-time checks to ensure that the borrow does not violate Rust’s aliasing rules.
  • A mutable borrow of some data stored in a World. This type is returned by WorldCell, which uses run-time checks to ensure that the borrow does not violate Rust’s aliasing rules.
  • Exposes safe mutable access to multiple resources at a time in a World. Attempting to access World in a way that violates Rust’s mutability rules will panic thanks to runtime checks.
  • A unique identifier for a World.

Traits

  • Creates an instance of the type this trait is implemented for using data from the supplied World.