diff options
Diffstat (limited to 'src/T2DLL/T2WorldPlugin.h')
-rw-r--r-- | src/T2DLL/T2WorldPlugin.h | 49 |
1 files changed, 26 insertions, 23 deletions
diff --git a/src/T2DLL/T2WorldPlugin.h b/src/T2DLL/T2WorldPlugin.h index 5615f75..a778481 100644 --- a/src/T2DLL/T2WorldPlugin.h +++ b/src/T2DLL/T2WorldPlugin.h @@ -1,35 +1,38 @@ #pragma once #include "common.h" +#include "CProgramPlugin.h" -class T2WorldPlugin { +class AFX_EXT_CLASS T2WorldPlugin : public CProgramPlugin { public: - T2WorldPlugin(unsigned long, T2PluginSpecifier&); + T2WorldPlugin(DWORD inType, T2PluginSpecifier& inSpecifier); virtual ~T2WorldPlugin(); - virtual int LoadAllTemplatePlugin(T2WorldDef*, T2TemplatePluginDB*); virtual T2WorldDef* LoadT2WorldDef(); - virtual void InitFloorInfoProc(T2WorldDef*, T2FloorInfo&); - virtual void InitBkgndInfoProc(T2WorldDef*, BkgndInfo*); - virtual void InitializeDocumentProc(T2TowerDoc*); - virtual int IsHoliday(T2DateTime*) const; - virtual int IsRainyDay(T2DateTime*); + virtual BOOL LoadAllTemplatePlugin(T2WorldDef* inWorldDef, T2TemplatePluginDB* inDB); + virtual void InitFloorInfoProc(T2WorldDef* inWorldDef, T2FloorInfo& inFloorInfo); + virtual void InitBkgndInfoProc(T2WorldDef* inWorldDef, BkgndInfo* inBkgndInfoPtr); + virtual void InitializeDocumentProc(T2TowerDoc* inDoc); + virtual BOOL IsHoliday(T2DateTime* inDateTime) const; + virtual BOOL IsRainyDay(T2DateTime* inDateTime); + virtual int CheckGameLevel(T2WorldDef* inWorldDef, T2TowerDoc* inDoc); + virtual int CheckTreasure(T2TowerDoc* inDoc, T2TreasureStatus*) { return 0; } + virtual int XEventInit(T2XEvent* inXEvent, CResFile*) { return 0; } + virtual int XEventDestruct(T2XEvent* inXEvent) { return 0; } + virtual int XEventStart(T2XEvent* inXEvent, T2TowerDoc* inDoc) { return 0; } + virtual int XEventExec(T2XEvent* inXEvent, T2TowerDoc* inDoc) { return 0; } + virtual int XEventStop(T2XEvent* inXEvent, T2TowerDoc* inDoc) { return 0; } + virtual int XEventIsBeginTime(T2XEvent* inXEvent, T2TowerDoc* inDoc, unsigned int inTime); + virtual int XEventIsBeginDay(T2XEvent* inXEvent, T2TowerDoc* inDoc, int inDay); + virtual void XEventWrite(T2XEvent* inXEvent, T2Archive& inArchive); + virtual void XEventRead(T2XEvent* inXEvent, T2Archive& inArchive); + virtual int XEventDlgHook(T2XEvent* inXEvent, T2TowerDoc* inDoc, T2EventDialog*, unsigned int inResult) { return inResult; } + + int GetNumOfClockStyle() { return mNumOfClockStyle; } + protected: void _DrawClock(CWnd*, unsigned int); void _DrawCalendar(CWnd*, unsigned int); void _DrawFunds(CWnd*, int); -public: - virtual int CheckGameLevel(T2WorldDef*, T2TowerDoc*); - virtual int XEventIsBeginTime(T2XEvent*, T2TowerDoc*, unsigned int); - virtual int XEventIsBeginDay(T2XEvent*, T2TowerDoc*, int); - virtual void XEventWrite(T2XEvent*, T2Archive&); - virtual void XEventRead(T2XEvent*, T2Archive&); - int GetNumOfClockStyle() {} - virtual int CheckTreasure(T2TowerDoc*, T2TreasureStatus*) {} - virtual int XEventInit(T2XEvent*, CResFile*) {} - virtual int XEventDestruct(T2XEvent*) {} - virtual int XEventStart(T2XEvent*, T2TowerDoc*) {} - virtual int XEventExec(T2XEvent*, T2TowerDoc*) {} - virtual int XEventStop(T2XEvent*, T2TowerDoc*) {} - virtual int XEventDlgHook(T2XEvent*, T2TowerDoc*, T2EventDialog*, unsigned int) {} - T2WorldPlugin& operator=(T2WorldPlugin&) {} + int mNumOfClockStyle; + int m70; }; |