#![deny(unsafe_op_in_unsafe_fn)]
use super::{world::World, EntityId};
pub use super::archetype::{create_archetype, Archetype, ArchetypeBuilder};
pub use super::chunk::Chunk;
pub use super::query::PreparedQuery;
pub use sky_type::{
register as register_component_type, type_of as component_type, Type as ComponentType,
TypeInfo as ComponentTypeInfo,
};
pub trait WorldExpertExt {
unsafe fn spawn_uninit(&mut self, archetype: Archetype) -> EntityId;
}
pub fn interned_archetype_count() -> usize {
super::archetype::interned_archetype_count()
}
impl WorldExpertExt for World {
unsafe fn spawn_uninit(&mut self, archetype: Archetype) -> EntityId {
unsafe { World::add_entity(self, archetype) }
}
}