#pragma once #include "common.h" #include "CProgramPlugin.h" class AFX_CLASS_EXPORT T2WorldPlugin : public CProgramPlugin { public: T2WorldPlugin(DWORD inType, T2PluginSpecifier& inSpecifier); virtual ~T2WorldPlugin(); int GetNumOfClockStyle() { return mNumOfClockStyle; } virtual T2WorldDef* LoadT2WorldDef(); 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; } protected: void _DrawClock(CWnd*, unsigned int); void _DrawCalendar(CWnd*, unsigned int); void _DrawFunds(CWnd*, int); int mNumOfClockStyle; int m70; };