#pragma once #include "common.h" class AFX_EXT_CLASS T2DayParamDef { public: enum EDay { Day_0, Day_1, kMaxDay }; enum EWhether { Whether_0, Whether_1, kMaxWhether }; T2DayParamDef(CResFile&); virtual ~T2DayParamDef(); unsigned int GetPercent(EDay day, EWhether whether) const { return mEntries[day][whether].mPercent; } float GetRate(EDay day, EWhether whether) const { return mEntries[day][whether].mRate; } protected: struct { unsigned int mPercent; float mRate; } mEntries[kMaxDay][kMaxWhether]; };