1 #ifndef DFMISSIONS_H
2 #define DFMISSIONS_H
3 
4 #include "datafile.h"
5 
6 struct Mission : public Data
7 {
8 	bool storyline;
9 	char type;
10 	std::string name;
11 	std::string level, stories, mapname;
12 	std::string description;
13 	std::vector <std::string> items;
14 	std::vector <std::string> creatures;
15 	std::string success;
16 	std::string failure;
17 	std::string special;
MissionMission18 	Mission() : storyline(false), type('D'), name(""),
19 			level(""),stories(""),mapname(""),
20 			description(""), success(""), failure(""), special("") {}
21 };
22 
23 class DFMissions : public DataFile<Mission>
24 {
25 protected:
26 	bool LoadSingle(std::ifstream*, Mission*);
27 
28 public:
29 	void Save();
30 
31 };
32 
33 #endif // DFMISSIONS_H
34