#pragma once #include "common.h" #include "LArray.h" class AFX_EXT_CLASS T2TemplatePluginList : private LArray { public: T2TemplatePluginList(DWORD pluginType); virtual ~T2TemplatePluginList(); void AllClear(); void Regist(T2TemplatePlugin*); void Add(T2TemplatePlugin*); unsigned int GetItemCount(); T2TemplatePlugin* GetItemAt(int); T2TenantDef* FindFloor(); 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*); DWORD GetPluginType() { return mPluginType; } protected: friend class T2PeopleLoader; friend class T2Settlement; friend class T2TemplatePluginDB; friend class T2ToolWindow; DWORD mPluginType; };