1 #ifndef DFLOCATIONS_H 2 #define DFLOCATIONS_H 3 4 #include "datafile.h" 5 #include <map> 6 7 struct Location 8 { 9 std::string name, x,y, type; 10 bool random; 11 LocationLocation12 Location(): random(false) {} 13 }; 14 15 class DFLocations : public DataFile<Location> 16 { 17 protected: 18 bool LoadSingle(std::ifstream*, Location*); 19 20 public: 21 void Save(); 22 }; 23 24 #endif // DFLOCATIONS_H 25