pub trait Component:
Send
+ Sync
+ 'static { }
Expand description
A type that can be associated with an entity as a component.
Components are a critical part of the ECS architecture; refer to [this guide] for mroe information.
This trait is automatically implemented for most types.
§Persistence
Custom components are removed from entities when your plugin is unloaded. We will offer a component persistence API in the future.