From 37e364b2c6cc7487a1c888d256a73e5337bb7189 Mon Sep 17 00:00:00 2001 From: Ash Wolf Date: Wed, 14 Jun 2023 00:50:34 +0100 Subject: initial commit --- src/T2DLL/T2PoolDef.h | 78 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 78 insertions(+) create mode 100644 src/T2DLL/T2PoolDef.h (limited to 'src/T2DLL/T2PoolDef.h') 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; +}; -- cgit v1.2.3