Track held misses

This adds a `HeldMiss` attribute to judgment messages and a GetHeld()
method to TapNoteResult.
This commit is contained in:
Martin Natano
2021-08-31 18:25:09 +02:00
parent 58611d0ecb
commit f18695df59
5 changed files with 81 additions and 1 deletions
+4 -1
View File
@@ -13,7 +13,7 @@ class XNode;
struct TapNoteResult
{
/** @brief Set up the TapNoteResult with default values. */
TapNoteResult() : tns(TNS_None), fTapNoteOffset(0.f), bHidden(false) { }
TapNoteResult() : tns(TNS_None), fTapNoteOffset(0.f), bHidden(false), bHeld(false) { }
/** @brief The TapNoteScore that was achieved by the player. */
TapNoteScore tns;
@@ -28,6 +28,9 @@ struct TapNoteResult
/** @brief If the whole row has been judged, all taps on the row will be set to hidden. */
bool bHidden;
/** @brief Track if the note was held. Used to track held misses. */
bool bHeld;
// XML
XNode* CreateNode() const;
void LoadFromNode( const XNode* pNode );