diff options
author | Ash Wolf <ninji@wuffs.org> | 2023-06-14 00:50:34 +0100 |
---|---|---|
committer | Ash Wolf <ninji@wuffs.org> | 2023-06-14 00:50:34 +0100 |
commit | 37e364b2c6cc7487a1c888d256a73e5337bb7189 (patch) | |
tree | eaf6e857382eef16c2dd940eb4125536fbe068bd /src/T2DLL/T2SubPlugin.h | |
download | t2win-37e364b2c6cc7487a1c888d256a73e5337bb7189.tar.gz t2win-37e364b2c6cc7487a1c888d256a73e5337bb7189.zip |
initial commit
Diffstat (limited to '')
-rw-r--r-- | src/T2DLL/T2SubPlugin.h | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/src/T2DLL/T2SubPlugin.h b/src/T2DLL/T2SubPlugin.h new file mode 100644 index 0000000..9b6a809 --- /dev/null +++ b/src/T2DLL/T2SubPlugin.h @@ -0,0 +1,36 @@ +#pragma once +#include "common.h" +#include "CResourcePlugin.h" + +class T2SubPlugin : public CResourcePlugin { +public: + T2SubPlugin(DWORD type, T2PluginSpecifier& specifier); + virtual ~T2SubPlugin(); + virtual unsigned long GetPluginStyle() { return 'SPlg'; } + virtual void GetTitle(CString& outStr); + virtual int GetBindTime() { return 1; } + virtual void GlobalData(T2GlobalData*) {} + virtual unsigned long LoadSelf() { return 0; } + + int IsTieupFinish(); + int IsTieup() { return mTieup != NULL; } + + unsigned int GetOpenTime() const { return mOpenTime; } + void SetOpenTime(unsigned int t) { mOpenTime = t; } + unsigned int GetCloseTime() const { return mCloseTime; } + void SetCloseTime(unsigned int t) { mCloseTime = t; } + int DupCustomerTableDefRes() { return mDupCustomerTableDefRes; } + T2ImageObj* GetImageObj() { return mImageObj; } + +protected: + virtual void LoadRsrcFromStream(CResFile& resFile); + + int m6C; // unknown + char mTitle[64]; + CTime *mTieup; + int mDupCustomerTableDefRes; + unsigned int mOpenTime; + unsigned int mCloseTime; + T2BitImage *mBitImage; + T2ImageObj *mImageObj; +}; |