summaryrefslogtreecommitdiff
path: root/src/T2DLL/T2MoviePlugin.h
blob: 55f4078e7211b1cae3ec8c6e11a1fdfd053f8a59 (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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
#ifndef T2DLL_T2MOVIEPLUGIN_H
#define T2DLL_T2MOVIEPLUGIN_H
#include "../common.h"
#include "T2SubPlugin.h"

// unknown name
struct MovieInfo {
	int mCC_0;
	int mCC_1;
	int mCC_2;
	int mCC_3;
	int mCC_4;
	int mCC_5;
};

class AFX_CLASS_EXPORT T2MoviePlugin : public T2SubPlugin {
public:
	T2MoviePlugin(DWORD inType, T2PluginSpecifier& inSpecifier);
	virtual ~T2MoviePlugin();
	virtual void GlobalData(T2GlobalData* inGlobalData);
	int GetMovieLifePhase(T2DateTime* inDateTime, int inStartDay);
	void UnfoldPluginSelf();
	void ReMake();
	void GetTitle(CString& outStr, int inNum);
	int GetNOPersonsR();
	void SetNOPersonsR(int inNum);
	int GetNOPersonsF();
	void SetNOPersonsF(int inNum);
	BOOL IsFamousFilm();
	BOOL IsRoadshowFilm();
	void ChkReMake(int inNum);
	static void sDummyRead(T2Archive& inArchive);
	void Read(T2Archive& inArchive);
	void Write(T2Archive& inArchive);
	virtual DWORD LoadSelf();
protected:
	virtual void LoadRsrcFromStream(CResFile& inResFile);

	unsigned short mResID;
	MovieInfo mInfo;
	CString mE4;
	int _E8;
	CString mEC;
	CString mF0;
	CString mF4;
	int mBindTime;
	int mFC;
	CString m100;
	int m104;
	int m108;
	int m10C;
	int m110;
	int mNamingScheme;
	int m118;
	int m11C;
	int mCustomTitleCount;
	CString *mCustomTitles;
	int mNOPersonsR;
	int mNOPersonsF;
	unsigned int mAttribute;
	int mRemakeCount;
	int mNewNOPersonsR;
	int mNewNOPersonsF;
};
#endif