summaryrefslogtreecommitdiff
path: root/src/T2DLL/T2SilhouetteDef.h
diff options
context:
space:
mode:
authorAsh Wolf <ninji@wuffs.org>2023-06-28 22:22:32 +0100
committerAsh Wolf <ninji@wuffs.org>2023-06-28 22:22:32 +0100
commitc0c336500955a23e344651e5412c9d9d441ef4ee (patch)
tree790769c748db307cf3314f6e896e2f61c68561a2 /src/T2DLL/T2SilhouetteDef.h
parent37e364b2c6cc7487a1c888d256a73e5337bb7189 (diff)
downloadt2win-c0c336500955a23e344651e5412c9d9d441ef4ee.tar.gz
t2win-c0c336500955a23e344651e5412c9d9d441ef4ee.zip
first pass of T2DLL
Diffstat (limited to 'src/T2DLL/T2SilhouetteDef.h')
-rw-r--r--src/T2DLL/T2SilhouetteDef.h27
1 files changed, 18 insertions, 9 deletions
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];
};