Expand description
Defines the World and APIs for accessing it directly.
Modules§
- Contains error types returned by bevy’s schedule.
- Contains types that allow disjoint mutable access to a
World.
Structs§
- Densely and efficiently stores a queue of heterogenous types implementing
Command. - A
Worldreference 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.
- A read-only reference to a particular
Entityand 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 theEntityLocationto 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. - Unique mutable borrow of an entity’s component or of a resource.
- A view into an occupied entry in a
EntityWorldMut. It is part of theEntryenum. - Trigger emitted when a component is added to an entity.
- Trigger emitted when a component is inserted on to to an entity.
- Trigger emitted when a component is removed from an entity.
- Shared borrow of an entity’s component with access to change detection. Similar to
Mutbut is immutable and so doesn’t require unique access. - 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 theEntryenum. - 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.
Constants§
- The (arbitrarily chosen) minimum number of world tick increments between
check_tickscans. - Internal components used by bevy with a fixed component id. Constants are used to skip
TypeIdlookups in hot paths.ComponentIdforOnAdd ComponentIdforOnInsertComponentIdforOnRemove