#![warn(clippy::all, clippy::pedantic)]
#[cfg(not(target_arch = "wasm32"))]
pub mod auth;
pub mod config;
#[cfg(not(target_arch = "wasm32"))]
pub mod matchmaking;
pub mod multi_transport;
#[cfg(not(target_arch = "wasm32"))]
pub mod telemetry;
#[cfg(not(target_arch = "wasm32"))]
pub mod tick;
pub use multi_transport::MultiTransport;
#[cfg(not(target_arch = "wasm32"))]
pub use tick::TickScheduler;
#[cfg(not(target_arch = "wasm32"))]
#[cfg(feature = "phase1")]
pub fn bootstrap_phase1_world(
tick_rate: u64,
extra_registry: impl FnOnce(&mut aetheris_ecs_bevy::registry::ComponentRegistry),
) -> aetheris_ecs_bevy::BevyWorldAdapter {
let mut world =
aetheris_ecs_bevy::BevyWorldAdapter::new(bevy_ecs::world::World::new(), tick_rate);
let mut registry = aetheris_ecs_bevy::registry::ComponentRegistry::new();
aetheris_ecs_bevy::registry::register_platform_components(&mut registry);
extra_registry(&mut registry);
for descriptor in registry.components.values() {
world.register_replicator(descriptor.replicator.clone());
}
world
}