summaryrefslogtreecommitdiff
path: root/src/T2DLL/T2HallEventPlugin.h
diff options
context:
space:
mode:
authorAsh Wolf <ninji@wuffs.org>2023-06-28 22:22:32 +0100
committerAsh Wolf <ninji@wuffs.org>2023-06-28 22:22:32 +0100
commitc0c336500955a23e344651e5412c9d9d441ef4ee (patch)
tree790769c748db307cf3314f6e896e2f61c68561a2 /src/T2DLL/T2HallEventPlugin.h
parent37e364b2c6cc7487a1c888d256a73e5337bb7189 (diff)
downloadt2win-c0c336500955a23e344651e5412c9d9d441ef4ee.tar.gz
t2win-c0c336500955a23e344651e5412c9d9d441ef4ee.zip
first pass of T2DLL
Diffstat (limited to '')
-rw-r--r--src/T2DLL/T2HallEventPlugin.h46
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;
};