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

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

    for (unsigned int i = 0; i < 12; i++) {
        resFile >> mElems[i].a;
        mElems[i].mRate = mElems[i].a / divisor;
    }
}

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