Skip to main content

Module component

Module component 

Source
Expand description

Components.

A component is any 'static type. Components live in archetypes, and an entity’s set of components is fixed when it is spawned: components are only read and written, never added or removed. To change the set of components, despawn the entity and spawn a new one.

Traits§

Component
A value stored on an entity.