campaignData.h 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. //===========================================================================//
  2. // Copyright (C) Microsoft Corporation. All rights reserved. //
  3. //===========================================================================//
  4. #ifndef CAMPAIGNDATA_H
  5. #define CAMPAIGNDATA_H
  6. #include "EList.h"
  7. #include "Inifile.h"
  8. class CMissionData {
  9. public:
  10. CMissionData();
  11. bool operator==(const CMissionData &rhs) const;
  12. bool operator!=(const CMissionData &rhs) const { return (!((*this) == rhs)); }
  13. bool Save(FitIniFile &fitFile);
  14. bool Read(FitIniFile &fitFile);
  15. CString m_MissionFile;
  16. CString m_PurchaseFile;
  17. bool m_LogisticsEnabled;
  18. bool m_IsMandatory;
  19. bool m_PilotPromotionEnabled;
  20. bool m_PurchasingEnabled;
  21. bool m_MissionSelectionEnabled;
  22. bool m_SalvageEnabled;
  23. };
  24. class CMissionList : public EList<CMissionData, CMissionData> {};
  25. class CGroupData {
  26. public:
  27. CGroupData();
  28. bool operator==(const CGroupData &rhs) const;
  29. bool operator!=(const CGroupData &rhs) const { return (!((*this) == rhs)); }
  30. bool Save(FitIniFile &fitFile, const char *groupName);
  31. bool Read(FitIniFile &fitFile, const char *groupName);
  32. CMissionList m_MissionList;
  33. CString m_OperationFile;
  34. CString m_PreVideoFile;
  35. CString m_VideoFile;
  36. CString m_Label;
  37. int m_NumMissionsToComplete;
  38. int m_TuneNumber;
  39. CString m_ABLScript;
  40. };
  41. class CGroupList : public EList<CGroupData, CGroupData> {};
  42. class CCampaignData {
  43. public:
  44. CCampaignData();
  45. bool operator==(const CCampaignData &rhs) const;
  46. bool operator!=(const CCampaignData &rhs) const { return (!((*this) == rhs)); }
  47. bool Save(CString pathName);
  48. bool Read(CString pathName);
  49. void Clear() { CCampaignData a; *this = a; }
  50. CString m_PathName;
  51. CGroupList m_GroupList;
  52. CString m_Name;
  53. bool m_NameUseResourceString;
  54. int m_NameResourceStringID;
  55. int m_CBills;
  56. CString m_FinalVideo;
  57. };
  58. #endif /*CAMPAIGNDATA_H*/