Expand description
Types for declaring and storing Component
s.
Structs§
- A value describing a component or resource, which may or may not correspond to a Rust type.
- A
SystemParam
that provides access to theComponentId
for a specific component type. - Generates
ComponentId
s. - Stores metadata for a type of component or resource stored in a specific
World
. - Records when a component or resource was added and when it was last mutably dereferenced (or added).
- A type that enables queuing registration in
Components
. - A
Components
wrapper that enables additional features, like registration. - Context provided to a
ComponentHook
. - Parameter indicating a
Component
is immutable. - Parameter indicating a
Component
is mutable. - Allows queuing components to be registered.
- Metadata associated with a required component. See
Component
for details. - A Required Component constructor. See
Component
for details. - The collection of metadata for components that are required for a given component.
- A value that tracks when a system ran relative to other systems. This is used to power change detection.
- Interior-mutable access to the
Tick
s for a single component or resource.
Enums§
- The clone behavior to use when cloning a
Component
. - An error returned when the registration of a required component fails.
- The storage used for a specific component type.
Traits§
- A data type that can be used to store data for an entity.
- The mutability option for a
Component
. This can either be:
Functions§
- Noop implementation of component clone handler function.
- Component clone handler function implemented using the
Clone
trait. Can be set as clone handler for the specific component it is implemented for. It will panic if set as handler for any other component. - Component clone handler function implemented using reflect. Can be set as clone handler for any registered component, but only reflected components will be cloned.
Type Aliases§
- Function type that can be used to clone an entity.