Enums for TapNoteType, TapNoteSubType, and TapNoteSource
I intend to make additional useful information available on judgments, such as TapNoteType and TapNoteSubType( for hold judgments ). I am submitting this part as a separate pull request because it is more generally applicable to anything TapNote related.
This commit is contained in:
@@ -1017,14 +1017,14 @@ void ScreenGameplay::SetupSong( int iSongIndex )
|
||||
// load player
|
||||
{
|
||||
pi->m_NoteData = ndTransformed;
|
||||
NoteDataUtil::RemoveAllTapsOfType( pi->m_NoteData, TapNote::autoKeysound );
|
||||
NoteDataUtil::RemoveAllTapsOfType( pi->m_NoteData, TapNoteType_AutoKeysound );
|
||||
pi->m_pPlayer->Load();
|
||||
}
|
||||
|
||||
// load auto keysounds
|
||||
{
|
||||
NoteData nd = ndTransformed;
|
||||
NoteDataUtil::RemoveAllTapsExceptForType( nd, TapNote::autoKeysound );
|
||||
NoteDataUtil::RemoveAllTapsExceptForType( nd, TapNoteType_AutoKeysound );
|
||||
m_AutoKeysounds.Load( pi->GetStepsAndTrailIndex(), nd );
|
||||
}
|
||||
|
||||
@@ -2049,7 +2049,7 @@ void ScreenGameplay::UpdateLights()
|
||||
// for each index we crossed since the last update:
|
||||
FOREACH_NONEMPTY_ROW_IN_TRACK_RANGE( m_CabinetLightsNoteData, cl, r, iRowLastCrossed+1, iSongRow+1 )
|
||||
{
|
||||
if( m_CabinetLightsNoteData.GetTapNote( cl, r ).type != TapNote::empty )
|
||||
if( m_CabinetLightsNoteData.GetTapNote( cl, r ).type != TapNoteType_Empty )
|
||||
bBlinkCabinetLight[cl] = true;
|
||||
}
|
||||
|
||||
@@ -2068,7 +2068,7 @@ void ScreenGameplay::UpdateLights()
|
||||
FOREACH_NONEMPTY_ROW_IN_TRACK_RANGE( nd, t, r, iRowLastCrossed+1, iSongRow+1 )
|
||||
{
|
||||
const TapNote &tn = nd.GetTapNote( t, r );
|
||||
if( tn.type != TapNote::mine )
|
||||
if( tn.type != TapNoteType_Mine )
|
||||
bBlink = true;
|
||||
}
|
||||
|
||||
@@ -2165,7 +2165,7 @@ void ScreenGameplay::SendCrossedMessages()
|
||||
int iNumTracksWithTapOrHoldHead = 0;
|
||||
for( int t=0; t<nd.GetNumTracks(); t++ )
|
||||
{
|
||||
if( nd.GetTapNote(t,r).type == TapNote::empty )
|
||||
if( nd.GetTapNote(t,r).type == TapNoteType_Empty )
|
||||
continue;
|
||||
|
||||
iNumTracksWithTapOrHoldHead++;
|
||||
|
||||
Reference in New Issue
Block a user