summaryrefslogtreecommitdiff
path: root/src/components.rs
blob: c92ca03ddbced3efa4c779c1705068d8259b0989 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use specs::prelude::*;
use specs_derive::*;

#[derive(Component, Debug, Clone, Copy)]
pub struct Pos
{
    pub x: f64,
    pub y: f64,
}

#[derive(Component)]
pub struct StaticDrawable
{
    pub texture_name: String,
}