summaryrefslogtreecommitdiff
path: root/ecs/src/event/component.rs
blob: 72a78a389ca0cadfdf66119d06af3bd37dc75c57 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
//! Component events.

use std::convert::Infallible;
use std::fmt::Debug;

use crate::Component;

/// Pair relation for events emitted when:
/// a) A entity with the target component is spawned.
/// b) The target component is added to a entity.
#[derive(Debug, Component)]
pub struct Added(Infallible);