Expand description
Traits used in the ECS interface(s)
Enums§
- System
Output - Output of
PureFunctionalSystem
for one component.
Traits§
- Build
With - Trait implemented by
EntityBuilder
types. - Component
Provider - Component provider for flat tuples.
- Component
Provider Rec - Internal version of
ComponentProvider
that is implemented for nested tuples. - Flatten
- Inverse of
Nest
. - GetComponent
- Indicates that the implementor stores components of type
T
. - GetResource
- Indicates that the implementor stores a resource of type
T
. - Nest
- Trait that allows us to convert flat tuple types to nested tuple types (e.g.,
(A, B, C)
→(A, (B, (C, ())))
). - Pure
Functional System - For systems that don’t cause side effects or need to reason about entities or components
globally, it is highly recommended that you implement
PureFunctionalSystem
, which the library will be able to automatically parallelize. - Resource
Provider - Get the
Resources
struct from a world generically. - System
- Trait that systems must implement.
- System
Output Tuple - Trait for converting tuples into tuples of
SystemOutput
s. - World
Interface - Interface to the
World
struct generated via thedefine_world!
macro.