components.rs 270 B

123456789101112131415161718
  1. use specs::prelude::*;
  2. use rltk::{RGB};
  3. #[derive(Component)]
  4. pub struct Position {
  5. pub x: i32,
  6. pub y: i32,
  7. }
  8. #[derive(Component)]
  9. pub struct Renderable {
  10. pub glyph: u8,
  11. pub fg: RGB,
  12. pub bg: RGB,
  13. }
  14. #[derive(Component, Debug)]
  15. pub struct Player {}