blob: 9194115a2ff1d82c4b00911478385ba34b234b51 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#include "StdAfx.h"
#include "CResFile.h"
#include "T2DayParamDef.h"
T2DayParamDef::T2DayParamDef(CResFile& resFile) {
float div = 100.0f;
for (unsigned int day = 0; day < kMaxDay; day++) {
for (unsigned int whether = 0; whether < kMaxWhether; whether++) {
resFile >> mEntries[day][whether].mPercent;
mEntries[day][whether].mRate = mEntries[day][whether].mPercent / div;
}
}
}
/*virtual*/ T2DayParamDef::~T2DayParamDef() {
}
|