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/T2MoverModuleList.h | |
parent | 37e364b2c6cc7487a1c888d256a73e5337bb7189 (diff) | |
download | t2win-c0c336500955a23e344651e5412c9d9d441ef4ee.tar.gz t2win-c0c336500955a23e344651e5412c9d9d441ef4ee.zip |
first pass of T2DLL
Diffstat (limited to '')
-rw-r--r-- | src/T2DLL/T2MoverModuleList.h | 39 |
1 files changed, 22 insertions, 17 deletions
diff --git a/src/T2DLL/T2MoverModuleList.h b/src/T2DLL/T2MoverModuleList.h index de55200..515872a 100644 --- a/src/T2DLL/T2MoverModuleList.h +++ b/src/T2DLL/T2MoverModuleList.h @@ -1,29 +1,34 @@ #pragma once #include "common.h" +#include "LArray.h" -class T2MoverModuleList { +class AFX_EXT_CLASS T2MoverModuleList : public LArray { public: T2MoverModuleList(); virtual ~T2MoverModuleList(); - virtual int Init(T2MoverDef*, const RECT&); - int InsertModuleAt(int, T2MoverModule*); + virtual BOOL Init(T2MoverDef* moverDef, const RECT& baseRect); + virtual void Destruct(T2TowerDoc* towerDoc); + virtual void RemoveModule(T2TowerDoc* towerDoc, T2MoverModule*); + virtual void StopAdded(T2TowerDoc* towerDoc, T2Mover*, int); + virtual void StopRemoved(T2TowerDoc* towerDoc, T2Mover*, int); + virtual int GetModuleCount() const; + virtual T2MoverModule* ConstructModule(); + virtual void Read(T2Archive&, T2TowerDoc* towerDoc); + virtual void Write(T2Archive&); + + BOOL InsertModuleAt(int where, T2MoverModule* module); void AllClear(); - virtual void Destruct(T2TowerDoc*); - virtual void RemoveModule(T2TowerDoc*, T2MoverModule*); - virtual void Read(T2Archive&, T2TowerDoc*); - virtual void Write(T2Archive&); - virtual T2MoverModule* ConstructModule(); - virtual void StopAdded(T2TowerDoc*, T2Mover*, int); - virtual void StopRemoved(T2TowerDoc*, T2Mover*, int); unsigned int GetItemCount(); - static T2MoverModuleList* ReadMMList(T2Archive&, T2TowerDoc*); + + void GetBaseRect(RECT& r) const { r = mBaseRect; } + + static T2MoverModuleList* ReadMMList(T2Archive&, T2TowerDoc* towerDoc); static void WriteMMList(T2MoverModuleList*, T2Archive&); - virtual int GetModuleCount() const; - void GetBaseRect(RECT&) const {} protected: - virtual unsigned long GetMMClassID() {} -public: - T2MoverModuleList(const T2MoverModuleList&) {} - T2MoverModuleList& operator=(const T2MoverModuleList&) {} + virtual DWORD GetMMClassID() { return '_MML'; } + + int mMaxModule; + int mModuleCount; + RECT mBaseRect; }; |