summaryrefslogtreecommitdiff
path: root/src/T2DLL/T2PlaceParamDef.cpp
blob: 70aa6569a456e4f700af92463684eeb70bf5589b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#include "StdAfx.h"
#include "CResFile.h"
#include "T2PlaceParamDef.h"

T2PlaceParamDef::T2PlaceParamDef(CResFile& resFile) {
	float divisor = 100.0f;

	for (unsigned int i = 0; i < kMaxPlace; i++) {
		resFile >> mEntries[i].mPercent;
		resFile >> mEntries[i].mScore;
		mEntries[i].mRate = mEntries[i].mPercent / divisor;
	}
}

/*virtual*/ T2PlaceParamDef::~T2PlaceParamDef() {
}