12345678910111213141516171819202122232425262728 |
- extern crate specs;
- use specs::prelude::*;
- extern crate specs_derive;
- extern crate rltk;
- use rltk::{RGB};
- #[derive(Component)]
- pub struct Position {
- pub x: i32,
- pub y: i32,
- }
- #[derive(Component)]
- pub struct Renderable {
- pub glyph: u8,
- pub fg: RGB,
- pub bg: RGB,
- }
-
- #[derive(Component, Debug)]
- pub struct Player {}
- #[derive(Component)]
- pub struct Viewshed {
- pub visible_tiles : Vec<rltk::Point>,
- pub range : i32,
- pub dirty : bool
- }
|