diff options
author | Ash Wolf <ninji@wuffs.org> | 2023-07-01 23:04:04 +0100 |
---|---|---|
committer | Ash Wolf <ninji@wuffs.org> | 2023-07-01 23:04:04 +0100 |
commit | c2efba6907fab934a04959b9bb644cf7141cc955 (patch) | |
tree | c047244f99870e44a7a5d7e733c2857434c03765 /src/T2DLL/T2ToolDef.h | |
parent | 1eb8da84d77d0c865623421069ec38bfc7b0d461 (diff) | |
download | t2win-c2efba6907fab934a04959b9bb644cf7141cc955.tar.gz t2win-c2efba6907fab934a04959b9bb644cf7141cc955.zip |
matched T2DLL as well as i can
Diffstat (limited to '')
-rw-r--r-- | src/T2DLL/T2ToolDef.h | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/src/T2DLL/T2ToolDef.h b/src/T2DLL/T2ToolDef.h index 830dc92..b954d82 100644 --- a/src/T2DLL/T2ToolDef.h +++ b/src/T2DLL/T2ToolDef.h @@ -3,6 +3,10 @@ #include "T2TemplatePlugin.h" enum { + kMaxValiation = 4, +}; + +enum { kToolAttrIsMover = 2, kEquipAttrIsAbleDragMaking = 0x80, kToolAttrNormalMenteCost = 0x100, @@ -122,16 +126,16 @@ protected: CString mCategoryCommentString; int mToolNo; int mValiationCount; - CString *mPriceString[4]; - CString *mOutMoneyString[4]; - CString *mCommentString[4]; - int mOutMoney[4]; - CString *mToolName[4]; - CString *mName[4]; - int mPrice[4]; + CString *mPriceString[kMaxValiation]; + CString *mOutMoneyString[kMaxValiation]; + CString *mCommentString[kMaxValiation]; + int mOutMoney[kMaxValiation]; + CString *mToolName[kMaxValiation]; + CString *mName[kMaxValiation]; + int mPrice[kMaxValiation]; T2BitImage *mToolIcon; T2BitImage *mEC; - int mConsumptionPower[4]; + int mConsumptionPower[kMaxValiation]; int mCurBuildCount; int mMaxBuildCount; DWORD mSubPluginType; |