summaryrefslogtreecommitdiff
path: root/src/T2DLL/T2WorldPlugin.h
diff options
context:
space:
mode:
authorAsh Wolf <ninji@wuffs.org>2023-06-14 00:50:34 +0100
committerAsh Wolf <ninji@wuffs.org>2023-06-14 00:50:34 +0100
commit37e364b2c6cc7487a1c888d256a73e5337bb7189 (patch)
treeeaf6e857382eef16c2dd940eb4125536fbe068bd /src/T2DLL/T2WorldPlugin.h
downloadt2win-37e364b2c6cc7487a1c888d256a73e5337bb7189.tar.gz
t2win-37e364b2c6cc7487a1c888d256a73e5337bb7189.zip
initial commit
Diffstat (limited to '')
-rw-r--r--src/T2DLL/T2WorldPlugin.h35
1 files changed, 35 insertions, 0 deletions
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&) {}
+};