summaryrefslogtreecommitdiff
path: root/src/T2DLL/T2SeasonParamDef.h
blob: 5177238364c95e4dbd625a7a31abf4914859edae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#pragma once
#include "common.h"

// unknown name
struct T2SeasonParamDefElem {
    unsigned int a;
    float mRate;
};

class T2SeasonParamDef {
public:
    T2SeasonParamDef(CResFile &resFile);
    virtual ~T2SeasonParamDef();

    float GetRate(unsigned int index) const {
        float result = 0.0f;
        if (index < 12)
            result = mElems[index].mRate;
        return result;
    }

protected:
    T2SeasonParamDefElem mElems[12];
};