summaryrefslogtreecommitdiff
path: root/src/T2DLL/T2SilhouetteDef.h
diff options
context:
space:
mode:
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];
};