1 2 3 4 5 6 7 8 9
use crate::ComponentKind; #[derive(Clone, PartialEq, Eq)] pub enum EntityActionEvent<E: Copy> { SpawnEntity(E, Vec<ComponentKind>), DespawnEntity(E), InsertComponent(E, ComponentKind), RemoveComponent(E, ComponentKind), }