Skip to main content

aetheris_ecs_bevy/
lib.rs

1//! Aetheris ECS Bevy Adapter.
2//!
3//! Provides the `BevyWorldAdapter` which implements `WorldState` using `bevy_ecs`.
4#![warn(clippy::all, clippy::pedantic)]
5
6pub use adapter::BevyWorldAdapter;
7pub use components::*;
8pub use registry::{ComponentReplicator, DefaultReplicator, ReplicatableComponent};
9
10mod adapter;
11pub mod components;
12pub mod deterministic_rng;
13pub mod extraction;
14pub mod interaction;
15pub mod physics_consts;
16pub mod registry;
17
18/// Marker component for entities that are replicated over the network.
19/// Stores the global `NetworkId` assigned by the server.
20#[derive(
21    bevy_ecs::prelude::Component, Debug, Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash,
22)]
23pub struct Networked(pub aetheris_protocol::types::NetworkId);