pub trait StaticArchetype: Sized + ArchetypeState {
    const N_COMPONENTS: usize;

    // Required method
    fn metadata() -> ArchetypeMetadata;

    // Provided method
    fn into_any(self) -> AnyState { ... }
}
Expand description

Defines archetype objects (entity states).

Required Associated Constants§

Required Methods§

Provided Methods§

Implementations on Foreign Types§

source§

impl StaticArchetype for ()

Implementors§