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/CPlugin.h | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 src/T2DLL/CPlugin.h (limited to 'src/T2DLL/CPlugin.h') diff --git a/src/T2DLL/CPlugin.h b/src/T2DLL/CPlugin.h new file mode 100644 index 0000000..866157c --- /dev/null +++ b/src/T2DLL/CPlugin.h @@ -0,0 +1,26 @@ +#pragma once +#include "common.h" +#include "T2PluginSpecifier.h" + +class DLL_EXPORT CPlugin { +public: + CPlugin(DWORD type, T2PluginSpecifier& specifier); + virtual ~CPlugin(); + virtual DWORD GetPluginStyle() { return 'plug'; } + virtual void GetName(CString&); + virtual void GetInfoString(CString&); + virtual HINSTANCE GetModuleHandle(); + + DWORD GetType() { return mType; } + BOOL IsLoaded() { return mIsLoaded; } + +protected: + BOOL mIsLoaded; + DWORD mType; + T2PluginSpecifier mSpecifier; + +public: + // this gets accessed by T2PaletteAnime without an inline + HINSTANCE mModuleHandle; + T2ImageObj *mImageObj; +}; -- cgit v1.2.3