Trait dynec::comp::Simple

source ·
pub trait Simple<A: Archetype>: SimpleOrIsotope<A> {
    const IS_FINALIZER: bool = false;
}
Expand description

A simple component has only one instance per entity.

See the module-level documentation for more information.

Provided Associated Constants§

source

const IS_FINALIZER: bool = false

Override this to true if the component is a finalizer.

Finalizer components must be optional. Entities are not removed until all finalizer components have been removed.

Object Safety§

This trait is not object safe.

Implementors§