#pragma once #include "common.h" #include "CFilePlugin.h" class AFX_EXT_CLASS 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; };