summaryrefslogtreecommitdiff
path: root/src/T2DLL/T2TemplatePluginList.h
diff options
context:
space:
mode:
authorAsh Wolf <ninji@wuffs.org>2023-06-28 22:22:32 +0100
committerAsh Wolf <ninji@wuffs.org>2023-06-28 22:22:32 +0100
commitc0c336500955a23e344651e5412c9d9d441ef4ee (patch)
tree790769c748db307cf3314f6e896e2f61c68561a2 /src/T2DLL/T2TemplatePluginList.h
parent37e364b2c6cc7487a1c888d256a73e5337bb7189 (diff)
downloadt2win-c0c336500955a23e344651e5412c9d9d441ef4ee.tar.gz
t2win-c0c336500955a23e344651e5412c9d9d441ef4ee.zip
first pass of T2DLL
Diffstat (limited to '')
-rw-r--r--src/T2DLL/T2TemplatePluginList.h25
1 files changed, 17 insertions, 8 deletions
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;
};