From 5c6a48b2ff362a70416a6a00fda7d06e0f276f2d Mon Sep 17 00:00:00 2001 From: Ash Wolf Date: Sat, 1 Jul 2023 02:43:29 +0100 Subject: i am in hell --- src/T2DLL/T2Pool.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'src/T2DLL/T2Pool.h') diff --git a/src/T2DLL/T2Pool.h b/src/T2DLL/T2Pool.h index e91e659..54489f9 100644 --- a/src/T2DLL/T2Pool.h +++ b/src/T2DLL/T2Pool.h @@ -1,7 +1,7 @@ #pragma once #include "common.h" -class AFX_EXT_CLASS T2Pool { +class AFX_CLASS_EXPORT T2Pool { public: T2Pool(T2PoolDef* inDef, T2SeasonParamDef* inSeason, T2TemplatePluginList* inPluginList, T2PeopleArrayList* inPeopleList, int inLevel, unsigned int inIndex, unsigned int inSomeNum, T2WorldDef* inWorldDef); T2Pool(T2Archive& inArchive, T2PoolDef* inDef, T2SeasonParamDef* inSeason, T2TemplatePluginList* inPluginList, T2PeopleArrayList* inPeopleList, T2WorldDef* inWorldDef); @@ -19,8 +19,7 @@ public: T2People* BornVIP(int inSilhouetteType, int inEconoType = -1); void DeadVIP(T2People* inPeople); void Write(T2Archive& inArchive); - - int GetPopulation() const { return mPopulation; } + int GetPopulation() const; protected: void DayChanged(); @@ -38,3 +37,7 @@ protected: T2TemplatePluginList *mPlugins; T2PeopleArrayList *mPeopleList; }; + +inline int T2Pool::GetPopulation() const { + return mPopulation; +} -- cgit v1.2.3