summaryrefslogtreecommitdiff
path: root/src/T2DLL/T2ColdTableDef.cpp
blob: 3af5ca7676b36c13d2a6b79b1f4ce553fc7e5f21 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#include "CResFile.h"
#include "T2ColdTableDef.h"

T2ColdTableDef::T2ColdTableDef(CResFile &inResFile) {
    inResFile >> mVar;
    for (unsigned int i = 0; i < 12; i++)
        inResFile >> mEntries[i];
}

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

unsigned int T2ColdTableDef::GetDenomi(unsigned int inA, unsigned int inB) const {
    unsigned int result = 0;

    if (inA >= mVar && inB < 12)
        result = mEntries[inB];

    return result;
}