From 37e364b2c6cc7487a1c888d256a73e5337bb7189 Mon Sep 17 00:00:00 2001 From: Ash Wolf Date: Wed, 14 Jun 2023 00:50:34 +0100 Subject: initial commit --- src/T2DLL/T2WorldPlugin.h | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 src/T2DLL/T2WorldPlugin.h (limited to 'src/T2DLL/T2WorldPlugin.h') diff --git a/src/T2DLL/T2WorldPlugin.h b/src/T2DLL/T2WorldPlugin.h new file mode 100644 index 0000000..5615f75 --- /dev/null +++ b/src/T2DLL/T2WorldPlugin.h @@ -0,0 +1,35 @@ +#pragma once +#include "common.h" + +class T2WorldPlugin { +public: + T2WorldPlugin(unsigned long, T2PluginSpecifier&); + 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*); +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&) {} +}; -- cgit v1.2.3