moirai-for-games 0.1.0

A small deterministic no_std ECS for constrained and headless games
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
//! Typed event registration, retention policy, and independent readers.
//!
//! Ordinary events are registered through [`EventOptions`] and read with [`EventReader`].
//! Component lifecycle emits [`ComponentAdded`] and [`ComponentRemoved`] on structural commits.

mod component;
mod queue;
mod registry;

pub use component::{ComponentAdded, ComponentRemoved};
pub use queue::{EventReader, EventReaderStart};
pub use registry::{EventId, EventOptions, EventRegistrationError, EventRetention};

pub(crate) use component::ComponentLifecycleRegistry;
pub(crate) use queue::EventStorage;
pub(crate) use registry::EventRegistry;