summaryrefslogtreecommitdiff
path: root/src/T2DLL/CProgramPlugin.h
blob: 27ac4d718416a43bc7916ddfbe1d3f8b018fc26d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#pragma once
#include "common.h"
#include "CFilePlugin.h"

class AFX_CLASS_EXPORT CProgramPlugin : public CFilePlugin {
public:
	CProgramPlugin(DWORD type, T2PluginSpecifier& specifier);
	virtual ~CProgramPlugin();
	virtual DWORD GetPluginStyle() { return 'PPlg'; }
	virtual void GetInfoString(CString& outStr);
	virtual BOOL LoadAllTemplatePlugin(HINSTANCE, T2WorldDef*, T2TemplatePluginDB*);
	virtual void DrawProc(T2HaveOutViewObject*, const RECT&, T2TowerDoc*);
	virtual unsigned int IdleProc(T2HaveOutViewObject*, T2TowerDoc*);

	T2TemplatePlugin* GetTemplatePlugin() { return mTemplatePlugin; }
	BOOL HasDrawProc() { return false; }

protected:
	T2TemplatePlugin *mTemplatePlugin;
};