use std::sync::RwLockReadGuard;
use crate::arch_store::ArchetypeId;
pub type ComponentId = u32;
pub trait Component {
fn get_archetypes() -> RwLockReadGuard<'static, Vec<ArchetypeId>>; fn add_archetype(arch: ArchetypeId) where Self: Sized;
fn id() -> ComponentId where Self: Sized;
}