12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970 |
- //===========================================================================//
- // Copyright (C) Microsoft Corporation. All rights reserved. //
- //===========================================================================//
- #ifndef CAMPAIGNDATA_H
- #define CAMPAIGNDATA_H
- #include "EList.h"
- #include "Inifile.h"
- class CMissionData {
- public:
- CMissionData();
- bool operator==(const CMissionData &rhs) const;
- bool operator!=(const CMissionData &rhs) const { return (!((*this) == rhs)); }
- bool Save(FitIniFile &fitFile);
- bool Read(FitIniFile &fitFile);
- CString m_MissionFile;
- CString m_PurchaseFile;
- bool m_LogisticsEnabled;
- bool m_IsMandatory;
- bool m_PilotPromotionEnabled;
- bool m_PurchasingEnabled;
- bool m_MissionSelectionEnabled;
- bool m_SalvageEnabled;
- };
- class CMissionList : public EList<CMissionData, CMissionData> {};
- class CGroupData {
- public:
- CGroupData();
- bool operator==(const CGroupData &rhs) const;
- bool operator!=(const CGroupData &rhs) const { return (!((*this) == rhs)); }
- bool Save(FitIniFile &fitFile, const char *groupName);
- bool Read(FitIniFile &fitFile, const char *groupName);
- CMissionList m_MissionList;
- CString m_OperationFile;
- CString m_PreVideoFile;
- CString m_VideoFile;
- CString m_Label;
- int m_NumMissionsToComplete;
- int m_TuneNumber;
- CString m_ABLScript;
- };
- class CGroupList : public EList<CGroupData, CGroupData> {};
- class CCampaignData {
- public:
- CCampaignData();
- bool operator==(const CCampaignData &rhs) const;
- bool operator!=(const CCampaignData &rhs) const { return (!((*this) == rhs)); }
- bool Save(CString pathName);
- bool Read(CString pathName);
- void Clear() { CCampaignData a; *this = a; }
- CString m_PathName;
- CGroupList m_GroupList;
- CString m_Name;
- bool m_NameUseResourceString;
- int m_NameResourceStringID;
- int m_CBills;
- CString m_FinalVideo;
- };
- #endif /*CAMPAIGNDATA_H*/
|