summaryrefslogtreecommitdiff
path: root/src/T2DLL/CFilePlugin.h
blob: ad6e16f7aebe408229f8292e772f45284daeab68 (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
33
34
35
#pragma once
#include "common.h"
#include "CPlugin.h"

class CPluginInfo;

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