summaryrefslogtreecommitdiff
path: root/src/T2DLL/T2PoolDef.h
diff options
context:
space:
mode:
authorAsh Wolf <ninji@wuffs.org>2023-06-14 00:50:34 +0100
committerAsh Wolf <ninji@wuffs.org>2023-06-14 00:50:34 +0100
commit37e364b2c6cc7487a1c888d256a73e5337bb7189 (patch)
treeeaf6e857382eef16c2dd940eb4125536fbe068bd /src/T2DLL/T2PoolDef.h
downloadt2win-37e364b2c6cc7487a1c888d256a73e5337bb7189.tar.gz
t2win-37e364b2c6cc7487a1c888d256a73e5337bb7189.zip
initial commit
Diffstat (limited to '')
-rw-r--r--src/T2DLL/T2PoolDef.h78
1 files changed, 78 insertions, 0 deletions
diff --git a/src/T2DLL/T2PoolDef.h b/src/T2DLL/T2PoolDef.h
new file mode 100644
index 0000000..b999575
--- /dev/null
+++ b/src/T2DLL/T2PoolDef.h
@@ -0,0 +1,78 @@
+#pragma once
+#include "common.h"
+
+// actual name unknown
+struct PeopleElem {
+ unsigned char mSilhouetteType;
+ unsigned char mEconoType;
+ unsigned char mTransportType;
+ unsigned char mRate;
+ unsigned int m4;
+};
+
+class T2PoolTimeZoneDef {
+public:
+ T2PoolTimeZoneDef(CResFile &resFile);
+ void Initialize();
+ ~T2PoolTimeZoneDef();
+ PeopleElem *GetPeopleElem(unsigned int index) const;
+
+ // p sure this exists (1005f090)
+ unsigned int GetNumOfElems() const { return mNumOfElems; }
+
+ unsigned int mNumOfElems;
+ PeopleElem *mPeopleElems;
+};
+
+// actual name unknown
+struct TimeZoneInfo {
+ int m0;
+ unsigned int m4;
+};
+
+class T2PoolDefDemandElem {
+public:
+ T2PoolDefDemandElem();
+ void Initialize(CResFile &resFile);
+ ~T2PoolDefDemandElem();
+ TimeZoneInfo *GetTimeZoneInfo(unsigned int index) const;
+
+ unsigned int mNumOfElems;
+ TimeZoneInfo *mElems;
+};
+
+class T2PoolGradeDef {
+public:
+ T2PoolGradeDef(CResFile &resFile);
+ void Initialize();
+ virtual ~T2PoolGradeDef();
+ T2PoolDefDemandElem *GetDemandElem(unsigned int index) const;
+
+ unsigned int mNumOfElems;
+ T2PoolDefDemandElem *mDemandElems;
+};
+
+// actual name unknown
+struct DemandInfo {
+ int a;
+ unsigned char b;
+};
+
+class T2PoolDef {
+public:
+ T2PoolDef(CResFile &resFile, T2WorldPlugin *worldPlugin);
+ void Initialize();
+ virtual ~T2PoolDef();
+ HINSTANCE GetModuleHandle();
+ DemandInfo *GetDemandInfo(unsigned int index) const;
+ int GetGradeDefResID(unsigned int index) const;
+
+ unsigned char Get20() const { return m20; }
+
+ T2WorldPlugin *mWorldPlugin;
+ int m8;
+ int mGradeDefResID[5];
+ unsigned char m20;
+ unsigned char mNumOfDemand;
+ DemandInfo *mDemand;
+};