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.

14 lines
326 B

  1. use specs::saveload::SimpleMarker;
  2. use crate::components::{Planet, Position, Ship, Velocity};
  3. use super::Persistence;
  4. pub struct PersistWorld;
  5. pub struct PersistWorldMarker;
  6. impl Persistence for PersistWorld {
  7. type Marker = SimpleMarker<PersistWorldMarker>;
  8. type Components = (Position, Velocity, Planet, Ship);
  9. }