diff options
Diffstat (limited to 'src/T2DLL/T2HallEventPlugin.h')
-rw-r--r-- | src/T2DLL/T2HallEventPlugin.h | 46 |
1 files changed, 37 insertions, 9 deletions
diff --git a/src/T2DLL/T2HallEventPlugin.h b/src/T2DLL/T2HallEventPlugin.h index 61cafdd..29e6859 100644 --- a/src/T2DLL/T2HallEventPlugin.h +++ b/src/T2DLL/T2HallEventPlugin.h @@ -1,17 +1,45 @@ #pragma once #include "common.h" +#include "T2SubPlugin.h" -class T2HallEventPlugin { +class AFX_EXT_CLASS T2HallEventItem { public: - T2HallEventPlugin(unsigned long, T2PluginSpecifier&); - virtual ~T2HallEventPlugin(); -protected: - virtual void LoadRsrcFromStream(CResFile&); + T2HallEventItem(T2HallEventPlugin *inPlugin, const char *inStr) { + mPlugin = inPlugin; + if (inStr) + strcpy(mStr, inStr); + else + mStr[0] = 0; + } + virtual ~T2HallEventItem() {} + + T2HallEventPlugin *mPlugin; + char mStr[64]; +}; + +class AFX_EXT_CLASS T2HallEventPlugin : public T2SubPlugin { public: + T2HallEventPlugin(DWORD inType, T2PluginSpecifier& inSpecifier); + virtual ~T2HallEventPlugin(); void UnfoldPluginSelf(); - virtual unsigned long LoadSelf(); + unsigned int GetRsrcType() { return 'HeDf'; } + virtual int GetBindTime() { return mBindTime; } + virtual DWORD LoadSelf(); + +protected: + virtual void LoadRsrcFromStream(CResFile& inResFile); - unsigned int GetRsrcType() {} - virtual int GetBindTime() {} - T2HallEventPlugin& operator=(T2HallEventPlugin&) {} + unsigned short mResID; + unsigned int mCC; + unsigned int mD0; + unsigned int mD4; + int mD8; + int mDC; + int mE0; + int mE4; + int mBindTime; + CString mEC; + int _F0; + int mF4; + CString mF8; }; |