From c0c336500955a23e344651e5412c9d9d441ef4ee Mon Sep 17 00:00:00 2001 From: Ash Wolf Date: Wed, 28 Jun 2023 22:22:32 +0100 Subject: first pass of T2DLL --- src/T2DLL/T2HallEventPlugin.h | 46 ++++++++++++++++++++++++++++++++++--------- 1 file changed, 37 insertions(+), 9 deletions(-) (limited to 'src/T2DLL/T2HallEventPlugin.h') 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; }; -- cgit v1.2.3