#pragma once #include "common.h" #include "CPlugin.h" class CPluginInfo; class AFX_EXT_CLASS CFilePlugin : public CPlugin { public: CFilePlugin(DWORD type, T2PluginSpecifier& specifier); virtual ~CFilePlugin(); virtual DWORD GetPluginStyle() { return 'fplg'; } virtual void GetName(CString& outStr); virtual BOOL Load(); virtual BOOL Unload(); CPluginInfo* GetPluginInfo(); DWORD GetID() { return mID; } unsigned int GetAttrib() { return mAttrib; } DWORD GetDependID() { return mDependID; } unsigned int GetGameLevel() { return mGameLevel; } unsigned int GetSecretItem() { return mSecretItem; } int GetItemType() { return mItemType; } int GetMustItem() { return mMustItem; } void UseSecret() { mSecretItem = 0; } protected: DWORD mID; unsigned int mAttrib; DWORD mDependID; int mGameLevel; int mSecretItem; int mItemType; int mMustItem; CString mPluginName; };