mirror of
https://github.com/isledecomp/isle.git
synced 2025-10-26 01:44:19 +00:00
Score class cleanup (#855)
* Cleanup/fixes * Improve Paint match * Improve Score::FillArea * Fix naming * Fix value
This commit is contained in:
committed by
GitHub
parent
180a1e6360
commit
19d39394be
@@ -24,19 +24,19 @@ public:
|
||||
|
||||
MxResult Serialize(LegoFile* p_legoFile) override; // vtable+0x1c
|
||||
|
||||
inline MxU16 GetColor(MxU8 p_id)
|
||||
inline MxU16 GetScore(MxU8 p_id)
|
||||
{
|
||||
switch (p_id) {
|
||||
case 1:
|
||||
return m_color1;
|
||||
return m_score1;
|
||||
case 2:
|
||||
return m_color2;
|
||||
return m_score2;
|
||||
case 3:
|
||||
return m_color3;
|
||||
return m_score3;
|
||||
case 4:
|
||||
return m_color4;
|
||||
return m_score4;
|
||||
case 5:
|
||||
return m_color5;
|
||||
return m_score5;
|
||||
default:
|
||||
return 0;
|
||||
}
|
||||
@@ -54,12 +54,11 @@ protected:
|
||||
MxU16 m_unk0x16; // 0x16
|
||||
MxU16 m_unk0x18; // 0x18
|
||||
MxU16 m_unk0x1a; // 0x1a
|
||||
MxU16 m_unk0x1c; // 0x1c
|
||||
MxU16 m_color1; // 0x1e
|
||||
MxU16 m_color2; // 0x20
|
||||
MxU16 m_color3; // 0x22
|
||||
MxU16 m_color4; // 0x24
|
||||
MxU16 m_color5; // 0x26
|
||||
MxU16 m_score1; // 0x1c
|
||||
MxU16 m_score2; // 0x1e
|
||||
MxU16 m_score3; // 0x20
|
||||
MxU16 m_score4; // 0x22
|
||||
MxU16 m_score5; // 0x24
|
||||
};
|
||||
|
||||
#endif // TOWTRACKMISSIONSTATE_H
|
||||
|
||||
Reference in New Issue
Block a user