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.
- reflect
bevy_reflect
Provides additional functionality forWorld
when thebevy_reflect
feature is enabled. - Contains types that allow disjoint mutable access to a
World
.
Structs§
- Densely and efficiently stores a queue of heterogenous types implementing
Command
. - A
World
reference that disallows structural ECS changes. This includes initializing resources, registering components or spawning entities. - Provides mutable access to a single entity and all of its components.
- Provides mutable access to all components of an entity, with the exception of an explicit set.
- A read-only reference to a particular
Entity
and all of its components. - Provides read-only access to a single entity and all its components, save for an explicitly-enumerated set.
- A mutable reference to a particular
Entity
, and the entire world. - 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
. - Builder struct to define the access for a
FilteredResources
. - Builder struct to define the access for a
FilteredResourcesMut
. - A view into an occupied entry in a
EntityWorldMut
. It is part of theEntry
enum. - Trigger emitted when a component is added to an entity. See
crate::component::ComponentHooks::on_add
for more information. - Trigger emitted when a component is inserted onto an entity. See
crate::component::ComponentHooks::on_insert
for more information. - Trigger emitted when a component is removed from an entity. See
crate::component::ComponentHooks::on_remove
for more information. - Trigger emitted when a component is replaced on an entity. See
crate::component::ComponentHooks::on_replace
for more information. - 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.
- 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.
- Error type returned by
TryFrom
conversions from filtered entity types (FilteredEntityRef
/FilteredEntityMut
) to full-access entity types (EntityRef
/EntityMut
).
Constants§
ComponentId
forOnAdd
ComponentId
forOnInsert
ComponentId
forOnRemove
ComponentId
forOnReplace
Traits§
- A
World
mutation. - Types that can be used to fetch components from an entity dynamically by
ComponentId
s. - Creates an instance of the type this trait is implemented for using data from the supplied
World
.