From c0c336500955a23e344651e5412c9d9d441ef4ee Mon Sep 17 00:00:00 2001 From: Ash Wolf Date: Wed, 28 Jun 2023 22:22:32 +0100 Subject: first pass of T2DLL --- src/T2DLL/T2TemplatePluginList.h | 25 +++++++++++++++++-------- 1 file changed, 17 insertions(+), 8 deletions(-) (limited to 'src/T2DLL/T2TemplatePluginList.h') diff --git a/src/T2DLL/T2TemplatePluginList.h b/src/T2DLL/T2TemplatePluginList.h index c22c68b..4ca85e1 100644 --- a/src/T2DLL/T2TemplatePluginList.h +++ b/src/T2DLL/T2TemplatePluginList.h @@ -1,23 +1,32 @@ #pragma once #include "common.h" +#include "LArray.h" -class T2TemplatePluginList { +class AFX_EXT_CLASS T2TemplatePluginList : private LArray { public: - T2TemplatePluginList(unsigned long); + T2TemplatePluginList(DWORD pluginType); virtual ~T2TemplatePluginList(); + void AllClear(); void Regist(T2TemplatePlugin*); void Add(T2TemplatePlugin*); unsigned int GetItemCount(); T2TemplatePlugin* GetItemAt(int); T2TenantDef* FindFloor(); - T2TenantDef* FindTenantDef(int); - T2MoverDef* FindMoverDef(int); - T2OuterObjDef* FindOutObjDef(int); - T2PeopleDef* FindPeopleDef(int); - T2SilhouetteDef* FindSilhouette(int); + T2TenantDef* FindTenantDef(int equipType); + T2MoverDef* FindMoverDef(int equipType); + T2OuterObjDef* FindOutObjDef(int toolType); + T2PeopleDef* FindPeopleDef(int peopleType); + T2SilhouetteDef* FindSilhouette(int silhouetteType); int CalcCategoryCount(); void DispatchIdle(T2TowerDoc*); - unsigned long GetPluginType() { return 0; } + DWORD GetPluginType() { return mPluginType; } + +protected: + friend class T2PeopleLoader; + friend class T2Settlement; + friend class T2TemplatePluginDB; + friend class T2ToolWindow; + DWORD mPluginType; }; -- cgit v1.2.3