Trait entity_data::state::ArchetypeState
source · pub trait ArchetypeState: Send + Sync + 'static {
fn ty(&self) -> TypeId;
fn as_ptr(&self) -> *const u8;
fn forget(self);
fn metadata(&self) -> fn() -> ArchetypeMetadata;
fn as_any(&self) -> &dyn Any;
fn as_any_mut(&mut self) -> &mut dyn Any;
fn component_ids(&self) -> SmallVec<[TypeId; 32]> { ... }
}Expand description
Defines archetype objects (entity states) with definite components.