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/T2ClassFactory.h | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) (limited to 'src/T2DLL/T2ClassFactory.h') diff --git a/src/T2DLL/T2ClassFactory.h b/src/T2DLL/T2ClassFactory.h index 4df7068..bd88d4f 100644 --- a/src/T2DLL/T2ClassFactory.h +++ b/src/T2DLL/T2ClassFactory.h @@ -1,18 +1,21 @@ #pragma once #include "common.h" -class T2ClassFactory { +struct CLASSFACTORY_CLASSINFO { + int x0; + int id; + void *newFunc; +}; + +class AFX_EXT_CLASS T2ClassFactory { public: static void Initialize(); static void Discard(); - static void Register(CLASSFACTORY_CLASSINFO*); - static void* Query(int); + static void Register(CLASSFACTORY_CLASSINFO* inClassInfo); + static void* Query(int inID); private: static void* new_T2Archive(); static void* new_T2Dialog(); static void* new_T2Balloon(); - static void* new_T2SoundPlayer(CWnd*, IDirectSound*); - -public: - T2ClassFactory& operator=(const T2ClassFactory&) {} + static void* new_T2SoundPlayer(CWnd* inArg1, IDirectSound* inArg2); }; -- cgit v1.2.3