[][src]Module bevy_ecs::prelude

Structs

Added

Query transformer that retrieves components of type T that have been added since the start of the frame.

Changed

Query transformer that retrieves components of type T that have either been mutated or added since the start of the frame.

ChangedRes

A shared borrow of a Resource that will only return in a query if the Resource has been changed

Commands

A queue of Commands to run on the current World and Resources

Entity

Lightweight unique ID of an entity

Local

Local resources are unique per-system. Two instances of the same system will each have their own resource. Local resources are automatically initialized using the FromResources trait.

Mut

Unique borrow of an entity's component

Mutated

Query transformer that retrieves components of type T that have been mutated since the start of the frame. Added components do not count as mutated.

Or

Query transformer performing a logical or on a pair of queries Intended to be used on Mutated or Changed queries.

OrRes
Query

Provides scoped access to a World according to a given HecsQuery

Ref

Shared borrow of an entity's component

RefMut

Unique borrow of an entity's component

Res

Shared borrow of a Resource

ResMut

Unique borrow of a Resource

Resources

A collection of resource instances identified by their type.

With

Query transformer skipping entities that do not have a T component

Without

Query transformer skipping entities that have a T component

World

An unordered collection of entities, each having any number of distinctly typed components

Traits

Bundle

A statically typed collection of components

Component

Types that can be components, implemented automatically for all Send + Sync + 'static types

FromResources

Creates Self using data from the Resources collection

IntoForEachSystem

Converts Self into a For-Each system

IntoQuerySystem

Converts Self into a Query System

IntoThreadLocalSystem

Converts Self into a thread local system

Resource

A Resource type

System

An ECS system that can be added to a Schedule

WorldBuilderSource

Converts a reference to Self to a WorldBuilder

Derive Macros

Bundle

Implement Bundle for a monomorphic struct