components.rs 322 B

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