summaryrefslogtreecommitdiff
path: root/src/T2DLL/T2DayParamDef.cpp
blob: 656479d155b3da98892eb54b4f7b60041702e9b9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#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() {
}