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/T2FloorInfo.h | 42 ++++++++++++++++++++++++++++-------------- 1 file changed, 28 insertions(+), 14 deletions(-) (limited to 'src/T2DLL/T2FloorInfo.h') diff --git a/src/T2DLL/T2FloorInfo.h b/src/T2DLL/T2FloorInfo.h index d76eac9..bcb6165 100644 --- a/src/T2DLL/T2FloorInfo.h +++ b/src/T2DLL/T2FloorInfo.h @@ -1,7 +1,7 @@ #pragma once #include "common.h" -class AFX_EXT_CLASS T2FloorInfo { +class AFX_CLASS_EXPORT T2FloorInfo { public: T2FloorInfo(const T2WorldDef* inWorldDef); virtual ~T2FloorInfo(); @@ -63,19 +63,19 @@ public: T2Tenant* GetTenantByPID(DWORD inPluginID); BOOL BuildFinishForce(const RECT& inRect); - int GetVRange() const { return mVRange; } - int GetHRange() const { return mHRange; } - int GetGroundLine() const { return mGroundLine; } - int GetTopFloorLine() const { return mTopFloorLine; } - int GetBottomFloorLine() const { return mBottomFloorLine; } - int GetEntranceWidth() const { return mEntranceWidth; } - void GetBuildArea(RECT& outRect) const { outRect = mBuildArea; } - void GetFloorArea(RECT& outRect) const { outRect = mFloorArea; } - T2TenantArrayList* GetTenantArrayList() const { return mTenantArrayList; } - T2MoverArrayList* GetMoverArrayList() const { return mMoverArrayList; } - T2RequestArrayList* GetRequestArrayList() const { return mRequestArrayList; } - T2OutObjArrayList* GetOutObjArrayList() const { return mOutObjArrayList; } - T2OutsideInfo* GetOutsideInfo() const { return mOutsideInfo; } + int GetVRange() const; + int GetHRange() const; + int GetGroundLine() const; + int GetTopFloorLine() const; + int GetBottomFloorLine() const; + int GetEntranceWidth() const; + void GetBuildArea(RECT& outRect) const; + void GetFloorArea(RECT& outRect) const; + T2TenantArrayList* GetTenantArrayList() const; + T2MoverArrayList* GetMoverArrayList() const; + T2RequestArrayList* GetRequestArrayList() const; + T2OutObjArrayList* GetOutObjArrayList() const; + T2OutsideInfo* GetOutsideInfo() const; int mVRange; int mHRange; @@ -98,3 +98,17 @@ protected: int CalcRequestRightEnd(POINT inPt, int inMaxH); int CalcRequestLeftEnd(POINT inPt, int inMinH); }; + +inline int T2FloorInfo::GetVRange() const { return mVRange; } +inline int T2FloorInfo::GetHRange() const { return mHRange; } +inline int T2FloorInfo::GetGroundLine() const { return mGroundLine; } +inline int T2FloorInfo::GetTopFloorLine() const { return mTopFloorLine; } +inline int T2FloorInfo::GetBottomFloorLine() const { return mBottomFloorLine; } +inline int T2FloorInfo::GetEntranceWidth() const { return mEntranceWidth; } +inline void T2FloorInfo::GetBuildArea(RECT& outRect) const { outRect = mBuildArea; } +inline void T2FloorInfo::GetFloorArea(RECT& outRect) const { outRect = mFloorArea; } +inline T2TenantArrayList* T2FloorInfo::GetTenantArrayList() const { return mTenantArrayList; } +inline T2MoverArrayList* T2FloorInfo::GetMoverArrayList() const { return mMoverArrayList; } +inline T2RequestArrayList* T2FloorInfo::GetRequestArrayList() const { return mRequestArrayList; } +inline T2OutObjArrayList* T2FloorInfo::GetOutObjArrayList() const { return mOutObjArrayList; } +inline T2OutsideInfo* T2FloorInfo::GetOutsideInfo() const { return mOutsideInfo; } -- cgit v1.2.3