summaryrefslogtreecommitdiff
path: root/src/T2DLL/T2AdvertisePlugin.h
blob: f4c3f50b66a383bcf0f0841d409cfc7499bef36d (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
#pragma once
#include "common.h"
#include "T2SubPlugin.h"

class AFX_CLASS_EXPORT T2AdvertisePlugin : public T2SubPlugin {
public:
	T2AdvertisePlugin(DWORD type, T2PluginSpecifier& specifier);
	virtual ~T2AdvertisePlugin();
	void UnfoldPluginSelf();
	unsigned int GetSubType();
	unsigned int GetDay();
	int GetMoney();
	void GetPath(CString& outStr);
	virtual unsigned long LoadSelf();

	unsigned int GetRsrcType() { return 'AdPl'; }

protected:
	virtual void LoadRsrcFromStream(CResFile& resFile);

	DWORD mSubType;
	unsigned short mCC;
	unsigned int mD0;
	unsigned int mDay;
	int mMoney;
	CString mPath;
};