diff options
author | Ash Wolf <ninji@wuffs.org> | 2023-06-28 22:22:32 +0100 |
---|---|---|
committer | Ash Wolf <ninji@wuffs.org> | 2023-06-28 22:22:32 +0100 |
commit | c0c336500955a23e344651e5412c9d9d441ef4ee (patch) | |
tree | 790769c748db307cf3314f6e896e2f61c68561a2 /src/T2DLL/T2ClassFactory.cpp | |
parent | 37e364b2c6cc7487a1c888d256a73e5337bb7189 (diff) | |
download | t2win-c0c336500955a23e344651e5412c9d9d441ef4ee.tar.gz t2win-c0c336500955a23e344651e5412c9d9d441ef4ee.zip |
first pass of T2DLL
Diffstat (limited to '')
-rw-r--r-- | src/T2DLL/T2ClassFactory.cpp | 34 |
1 files changed, 31 insertions, 3 deletions
diff --git a/src/T2DLL/T2ClassFactory.cpp b/src/T2DLL/T2ClassFactory.cpp index cff2ee9..92764a6 100644 --- a/src/T2DLL/T2ClassFactory.cpp +++ b/src/T2DLL/T2ClassFactory.cpp @@ -1,25 +1,53 @@ +#include "T2Archive.h" +#include "T2Balloon.h" #include "T2ClassFactory.h" +#include "T2Dialog.h" +#include "T2SoundPlayer.h" /*static*/ void T2ClassFactory::Initialize() { + CLASSFACTORY_CLASSINFO info; + + info.x0 = 1; + + info.id = 1; + info.newFunc = (void *) &new_T2Archive; + Register(&info); + + info.id = 2; + info.newFunc = (void *) &new_T2Dialog; + Register(&info); + + info.id = 3; + info.newFunc = (void *) &new_T2Balloon; + Register(&info); + + info.id = 4; + info.newFunc = (void *) &new_T2SoundPlayer; + Register(&info); } /*static*/ void T2ClassFactory::Discard() { } -/*static*/ void T2ClassFactory::Register(CLASSFACTORY_CLASSINFO*) { +/*static*/ void T2ClassFactory::Register(CLASSFACTORY_CLASSINFO* inClassInfo) { } -/*static*/ void* T2ClassFactory::Query(int) { +/*static*/ void* T2ClassFactory::Query(int inID) { + return NULL; } /*static*/ void* T2ClassFactory::new_T2Archive() { + return new T2Archive; } /*static*/ void* T2ClassFactory::new_T2Dialog() { + return new T2Dialog; } /*static*/ void* T2ClassFactory::new_T2Balloon() { + return new T2Balloon; } -/*static*/ void* T2ClassFactory::new_T2SoundPlayer(CWnd*, IDirectSound*) { +/*static*/ void* T2ClassFactory::new_T2SoundPlayer(CWnd* inArg1, IDirectSound* inArg2) { + return new T2SoundPlayer(inArg1, inArg2); } |