From c0c336500955a23e344651e5412c9d9d441ef4ee Mon Sep 17 00:00:00 2001 From: Ash Wolf Date: Wed, 28 Jun 2023 22:22:32 +0100 Subject: first pass of T2DLL --- src/T2DLL/T2SilhouetteDef.h | 27 ++++++++++++++++++--------- 1 file changed, 18 insertions(+), 9 deletions(-) (limited to 'src/T2DLL/T2SilhouetteDef.h') diff --git a/src/T2DLL/T2SilhouetteDef.h b/src/T2DLL/T2SilhouetteDef.h index 1122af5..5675c90 100644 --- a/src/T2DLL/T2SilhouetteDef.h +++ b/src/T2DLL/T2SilhouetteDef.h @@ -1,16 +1,25 @@ #pragma once #include "common.h" +#include "T2TemplatePlugin.h" -class T2SilhouetteDef { +class AFX_EXT_CLASS T2SilhouetteDef : public T2TemplatePlugin { public: - T2SilhouetteDef(unsigned long, T2PluginSpecifier&, CResFile*); + T2SilhouetteDef(DWORD type, T2PluginSpecifier& specifier, CResFile* resFile); virtual ~T2SilhouetteDef(); - virtual void GetName(CString&); + virtual void GetName(CString& outStr); - virtual int GetSortKey() {} - int GetSilhouetteType() {} - int GetSilhouette(int, int) {} - T2SilhouetteDef& operator=(T2SilhouetteDef&) {} - int GetWidth() const {} - int GetRouteType() const {} + virtual int GetSortKey() { return mSilhouetteType; } + int GetSilhouetteType() { return mSilhouetteType; } + int GetSilhouette(int a, int b) { return (a * 3) + b; } + int GetWidth() const { return mWidth; } + int GetRouteType() const { return mRouteType; } + +protected: + T2BitImage *mImage; + BOOL mHasImage; + int mSilhouetteType; + int mWidth; + int mRouteType; + int mResID; + char mName[32]; }; -- cgit v1.2.3