wuestite_ecs 0.1.0

2D game engine written in rust.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
/// Components are data containers that can be attached to [`Entity`](crate::Entity).
/// # Examples
///
/// Components can take many forms: they are usually structs, but can also be of every other kind of data type, like enums or zero sized types.
/// The following examples show how components are laid out in code.
///
/// ```
/// #[derive(Component)]
/// struct Red;
///
/// #[derive(Component)]
/// struct ForceField {
/// name: String,
/// strength: u32,
///}
/// ```
pub trait Component: 'static + Send + Sync {}