1 2 3 4 5 6 7
//! Entity identity and allocation via generational keys. slotmap::new_key_type! { /// Universal entity identifier used across all component storages. /// Serialize/Deserialize provided by slotmap's `serde` feature. pub struct EntityId; }