1234567891011121314151617181920212223 |
- use specs::prelude::*;
- use specs_derive::*;
- use rltk::{RGB};
- // COMPONENTS
- #[derive(Component)]
- pub struct Position {
- pub x: i32,
- pub y: i32,
- }
- #[derive(Component)]
- pub struct Renderable {
- pub glyph: rltk::FontCharType,
- pub fg: RGB,
- pub bg: RGB,
- }
- #[derive(Component, Debug)]
- pub struct Player {}
|