summaryrefslogtreecommitdiff
path: root/src/components.rs
blob: 3b17f0cb694122a91bcf8b7c9e2b44d920c10e2c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24

use specs::{
	DenseVecStorage,
	Component
};

use super::controls::Control;

#[derive(Component, Debug, Clone)]
pub struct Visible {
    pub sprite: String,
    pub height: f32
}

#[derive(Component, Debug)]
pub struct Controller(pub Control);

#[derive(Component, Debug)]
pub struct Blocking;

#[derive(Component, Debug)]
pub struct Played {
	pub name: String
}