You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
336 B

  1. use serde::{Deserialize, Serialize};
  2. use specs::{Component, HashMapStorage};
  3. #[derive(Clone, Debug, Serialize, Deserialize)]
  4. pub struct Asteroid {
  5. pub type_: Type,
  6. }
  7. #[derive(Clone, Debug, Serialize, Deserialize)]
  8. pub enum Type {
  9. Metal,
  10. Crystal,
  11. }
  12. impl Component for Asteroid {
  13. type Storage = HashMapStorage<Self>;
  14. }