pub trait LegacyComponent: ArrowField {
    // Required method
    fn legacy_name() -> ComponentName;

    // Provided method
    fn field() -> Field { ... }
}
Expand description

A type that can used as a Component of an Entity.

Examples of components include positions and colors.

Required Methods§

source

fn legacy_name() -> ComponentName

The name of the component.

Provided Methods§

source

fn field() -> Field

Create a Field for this LegacyComponent.

Implementors§