summaryrefslogtreecommitdiff
path: root/src/T2DLL/T2TemplatePluginList.h
blob: 0e1673ab8ad26c67515ed97c82abe7fecb1cd45c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#pragma once
#include "common.h"
#include "LArray.h"

class AFX_CLASS_EXPORT T2TemplatePluginList : public 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;
};