summaryrefslogtreecommitdiff
path: root/src/T2DLL/T2ColdTableDef.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/T2DLL/T2ColdTableDef.cpp')
-rw-r--r--src/T2DLL/T2ColdTableDef.cpp20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/T2DLL/T2ColdTableDef.cpp b/src/T2DLL/T2ColdTableDef.cpp
new file mode 100644
index 0000000..3af5ca7
--- /dev/null
+++ b/src/T2DLL/T2ColdTableDef.cpp
@@ -0,0 +1,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;
+}