Expand description
Types for declaring and storing Component
s.
Structs§
- Component
Descriptor - A value describing a component or resource, which may or may not correspond to a Rust type.
- Component
Hooks World
-mutating functions that run as part of lifecycle events of aComponent
.- Component
Id - A value which uniquely identifies the type of a
Component
orResource
within aWorld
. - Component
IdFor - A
SystemParam
that provides access to theComponentId
for a specific component type. - Component
Info - Stores metadata for a type of component or resource stored in a specific
World
. - Component
Ticks - Records when a component or resource was added and when it was last mutably dereferenced (or added).
- Components
- Stores metadata associated with each kind of
Component
in a givenWorld
. - Required
Component - Metadata associated with a required component. See
Component
for details. - Required
Component Constructor Non- track_change_detection
- A Required Component constructor. See
Component
for details. - Required
Components - The collection of metadata for components that are required for a given component.
- Tick
- A value that tracks when a system ran relative to other systems. This is used to power change detection.
- Tick
Cells - Interior-mutable access to the
Tick
s for a single component or resource.
Enums§
- Required
Components Error - An error returned when the registration of a required component fails.
- Storage
Type - The storage used for a specific component type.
Traits§
Type Aliases§
- Component
Hook - The type used for
Component
lifecycle hooks such ason_add
,on_insert
oron_remove