diff options
Diffstat (limited to 'src/T2DLL/T2SeasonParamDef.h')
| -rw-r--r-- | src/T2DLL/T2SeasonParamDef.h | 24 | 
1 files changed, 24 insertions, 0 deletions
| diff --git a/src/T2DLL/T2SeasonParamDef.h b/src/T2DLL/T2SeasonParamDef.h new file mode 100644 index 0000000..5177238 --- /dev/null +++ b/src/T2DLL/T2SeasonParamDef.h @@ -0,0 +1,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]; +}; | 
