Expand description
Defines the World
and APIs for accessing it directly.
Re-exports
pub use crate::change_detection::Mut;
pub use crate::change_detection::Ref;
pub use crate::change_detection::CHECK_TICK_THRESHOLD;
Modules
- Contains error types returned by bevy’s schedule.
- Contains types that allow disjoint mutable access to a
World
.
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 theEntityLocation
to reduce duplicate lookups. - Provides mutable access to a single entity and some of its components defined by the contained
Access
. - Provides read-only access to a single entity and some of its components defined by the contained
Access
. - A view into an occupied entry in a
EntityWorldMut
. It is part of theEntry
enum. - An iterator that spawns a series of entities and returns the ID of each spawned entity.
- A view into a vacant entry in a
EntityWorldMut
. It is part of theEntry
enum. - Stores and exposes operations on entities, components, resources, and their associated metadata.
- 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
.
Enums
- A view into a single entity and component in a world, which may either be vacant or occupied.
Traits
- Creates an instance of the type this trait is implemented for using data from the supplied
World
.