Expand description
Most commonly used re-exported types.
Structs§
- A filter on a component that only retains results the first time after they have been added.
- The
AnyOfquery parameter fetches entities with any of the component types included in T. - A
ResourcestoringTypeRegistryfor type registrations relevant to a whole app. - A filter on a component that only retains results the first time after they have been added or mutably dereferenced.
- A
SystemParamthat stores a buffer which gets applied to theWorldduringapply_deferred. This is used internally byCommandsto deferWorldmutations. - Lightweight identifier of an entity.
- 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. - Reads events of type
Tin order and tracks which events have already been read. - Sends events of type
T. - An event collection that represents the events that occurred within the last two
Events::updatecalls. Events can be written to using anEventWriterand are typically cheaply read using anEventReader. - Returns a bool that describes if an entity has the component
T. - Wrapper type to mark a
SystemParamas an input. - A system local
SystemParam. - Unique mutable borrow of an entity’s component or of a resource.
- Shared borrow of a non-
Sendresource. - Unique borrow of a non-
Sendresource. - 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.
- A filter that tests if any of the given filters apply.
- An alternative to
Commandsthat can be used in parallel contexts, such as those inQuery::par_iter - A collection of potentially conflicting
SystemParams allowed by disjoint access. - Builder struct to create
QueryStateinstances at runtime. - Shared borrow of an entity’s component with access to change detection. Similar to
Mutbut is immutable and so doesn’t require unique access. - A struct used to operate on reflected
Componenttrait of a type. - A struct used to operate on the reflected
FromWorldtrait of a type. - A struct used to operate on reflected
Resourceof a type. - A
SystemParamthat yields entities that had theirTComponentremoved or have been despawned with it. - Shared borrow of a
Resource. - Unique mutable borrow of a
Resource. - A collection of systems, and the metadata and executor needed to run them in a certain order under certain conditions.
- Builder struct used to construct state for
SystemParampassed to a system. - Filter that selects entities with a component
T. - Filter that selects entities without a component
T. - Stores and exposes operations on entities, components, resources, and their associated metadata.
Enums§
- Controls whether or not the events in an
EventRegistryshould be updated.
Traits§
- The
Bundletrait enables insertion and removal ofComponents from an entity. - A data type that can be used to store data for an entity.
- A system that determines if one or more scheduled systems should run.
- Types that can read change detection information. This change detection is controlled by
DetectChangesMuttypes such asResMut. - Types that implement reliable change detection.
- Something that “happens” and might be read / observed by app logic.
- Creates an instance of the type this trait is implemented for using data from the supplied
World. - Conversion trait to turn something into a
System. - Types that can convert into a
SystemConfigs. - Types that can be converted into a
SystemSet. - Types that can convert into a
SystemSetConfigs. Systemtypes that do not modify theWorldwhen run. This is implemented for any systems whose parameters all implementReadOnlySystemParam.- A type that can be inserted into a
Worldas a singleton. - An ECS system that can be added to a
Schedule - A trait implemented for all functions that can be used as
Systems. - Types that identify logical groups of systems.
Functions§
- Generates a
Condition-satisfying closure that returnstrueif there are any entity with a component of the given type removed. - A
Condition-satisfying system that returnstrueif there are any entities with the given component type. - Instructs the executor to call
System::apply_deferredon the systems that have run but not applied theirDeferredsystem parameters (likeCommands) or other system buffers. - Generates a
Conditionthat inverses the result of passed one. - Generates a
Condition-satisfying closure that returnstrueif there are any new events of the given type since it was last called. - A
Condition-satisfying system that returnstrueif the resource of the given type has been added since the condition was last checked. - A
Condition-satisfying system that returnstrueif the resource of the given type has had its value changed since the condition was last checked. - Generates a
Condition-satisfying closure that returnstrueif the resource of the given type has had its value changed since the condition was last checked. - A
Condition-satisfying system that returnstrueif the resource exists. - A
Condition-satisfying system that returnstrueif the resource of the given type has had its value changed since the condition was last checked. - Generates a
Condition-satisfying closure that returnstrueif the resource exists and is equal tovalue. - Generates a
Condition-satisfying closure that returnstrueif the resource of the given type has been removed since the condition was last checked. - Generates a
Condition-satisfying closure that returnstrueif the first time the condition is run and false every time after
Derive Macros§
- Derive macro generating an impl of the trait
SystemSet.