PlaySeconds -> SessionSeconds so that "PlaySeconds" and "GameplaySeconds" aren't confused
This commit is contained in:
@@ -350,7 +350,7 @@ void GameState::JoinPlayer( PlayerNumber pn )
|
|||||||
/* Count each player join as a play. */
|
/* Count each player join as a play. */
|
||||||
{
|
{
|
||||||
Profile* pMachineProfile = PROFILEMAN->GetMachineProfile();
|
Profile* pMachineProfile = PROFILEMAN->GetMachineProfile();
|
||||||
pMachineProfile->m_iTotalPlays++;
|
pMachineProfile->m_iTotalSessions++;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Set the current style to something appropriate for the new number of joined players.
|
// Set the current style to something appropriate for the new number of joined players.
|
||||||
@@ -525,7 +525,7 @@ void GameState::LoadProfiles( bool bLoadEdits )
|
|||||||
|
|
||||||
Profile* pPlayerProfile = PROFILEMAN->GetProfile( pn );
|
Profile* pPlayerProfile = PROFILEMAN->GetProfile( pn );
|
||||||
if( pPlayerProfile )
|
if( pPlayerProfile )
|
||||||
pPlayerProfile->m_iTotalPlays++;
|
pPlayerProfile->m_iTotalSessions++;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -717,8 +717,6 @@ void GameState::CommitStageStats()
|
|||||||
{
|
{
|
||||||
if( m_bDemonstrationOrJukebox )
|
if( m_bDemonstrationOrJukebox )
|
||||||
return;
|
return;
|
||||||
if( m_bMultiplayer )
|
|
||||||
return;
|
|
||||||
|
|
||||||
STATSMAN->CommitStatsToProfiles( &STATSMAN->m_CurStageStats );
|
STATSMAN->CommitStatsToProfiles( &STATSMAN->m_CurStageStats );
|
||||||
|
|
||||||
@@ -726,13 +724,13 @@ void GameState::CommitStageStats()
|
|||||||
int iPlaySeconds = max( 0, (int) m_timeGameStarted.GetDeltaTime() );
|
int iPlaySeconds = max( 0, (int) m_timeGameStarted.GetDeltaTime() );
|
||||||
|
|
||||||
Profile* pMachineProfile = PROFILEMAN->GetMachineProfile();
|
Profile* pMachineProfile = PROFILEMAN->GetMachineProfile();
|
||||||
pMachineProfile->m_iTotalPlaySeconds += iPlaySeconds;
|
pMachineProfile->m_iTotalSessionSeconds += iPlaySeconds;
|
||||||
|
|
||||||
FOREACH_HumanPlayer( p )
|
FOREACH_HumanPlayer( p )
|
||||||
{
|
{
|
||||||
Profile* pPlayerProfile = PROFILEMAN->GetProfile( p );
|
Profile* pPlayerProfile = PROFILEMAN->GetProfile( p );
|
||||||
if( pPlayerProfile )
|
if( pPlayerProfile )
|
||||||
pPlayerProfile->m_iTotalPlaySeconds += iPlaySeconds;
|
pPlayerProfile->m_iTotalSessionSeconds += iPlaySeconds;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -117,8 +117,8 @@ void Profile::InitGeneralData()
|
|||||||
m_LastStepsType = StepsType_Invalid;
|
m_LastStepsType = StepsType_Invalid;
|
||||||
m_lastSong.Unset();
|
m_lastSong.Unset();
|
||||||
m_lastCourse.Unset();
|
m_lastCourse.Unset();
|
||||||
m_iTotalPlays = 0;
|
m_iTotalSessions = 0;
|
||||||
m_iTotalPlaySeconds = 0;
|
m_iTotalSessionSeconds = 0;
|
||||||
m_iTotalGameplaySeconds = 0;
|
m_iTotalGameplaySeconds = 0;
|
||||||
m_fTotalCaloriesBurned = 0;
|
m_fTotalCaloriesBurned = 0;
|
||||||
m_GoalType = (GoalType)0;
|
m_GoalType = (GoalType)0;
|
||||||
@@ -1069,8 +1069,8 @@ XNode* Profile::SaveGeneralDataCreateNode() const
|
|||||||
pGeneralDataNode->AppendChild( "LastStepsType", GameManager::GetStepsTypeInfo(m_LastStepsType).szName );
|
pGeneralDataNode->AppendChild( "LastStepsType", GameManager::GetStepsTypeInfo(m_LastStepsType).szName );
|
||||||
pGeneralDataNode->AppendChild( m_lastSong.CreateNode() );
|
pGeneralDataNode->AppendChild( m_lastSong.CreateNode() );
|
||||||
pGeneralDataNode->AppendChild( m_lastCourse.CreateNode() );
|
pGeneralDataNode->AppendChild( m_lastCourse.CreateNode() );
|
||||||
pGeneralDataNode->AppendChild( "TotalPlays", m_iTotalPlays );
|
pGeneralDataNode->AppendChild( "TotalSessions", m_iTotalSessions );
|
||||||
pGeneralDataNode->AppendChild( "TotalPlaySeconds", m_iTotalPlaySeconds );
|
pGeneralDataNode->AppendChild( "TotalSessionSeconds", m_iTotalSessionSeconds );
|
||||||
pGeneralDataNode->AppendChild( "TotalGameplaySeconds", m_iTotalGameplaySeconds );
|
pGeneralDataNode->AppendChild( "TotalGameplaySeconds", m_iTotalGameplaySeconds );
|
||||||
pGeneralDataNode->AppendChild( "TotalCaloriesBurned", m_fTotalCaloriesBurned );
|
pGeneralDataNode->AppendChild( "TotalCaloriesBurned", m_fTotalCaloriesBurned );
|
||||||
pGeneralDataNode->AppendChild( "GoalType", m_GoalType );
|
pGeneralDataNode->AppendChild( "GoalType", m_GoalType );
|
||||||
@@ -1240,8 +1240,8 @@ void Profile::LoadGeneralDataFromNode( const XNode* pNode )
|
|||||||
pNode->GetChildValue( "LastStepsType", s ); m_LastStepsType = GameManager::StringToStepsType( s );
|
pNode->GetChildValue( "LastStepsType", s ); m_LastStepsType = GameManager::StringToStepsType( s );
|
||||||
pTemp = pNode->GetChild( "Song" ); if( pTemp ) m_lastSong.LoadFromNode( pTemp );
|
pTemp = pNode->GetChild( "Song" ); if( pTemp ) m_lastSong.LoadFromNode( pTemp );
|
||||||
pTemp = pNode->GetChild( "Course" ); if( pTemp ) m_lastCourse.LoadFromNode( pTemp );
|
pTemp = pNode->GetChild( "Course" ); if( pTemp ) m_lastCourse.LoadFromNode( pTemp );
|
||||||
pNode->GetChildValue( "TotalPlays", m_iTotalPlays );
|
pNode->GetChildValue( "TotalSessions", m_iTotalSessions );
|
||||||
pNode->GetChildValue( "TotalPlaySeconds", m_iTotalPlaySeconds );
|
pNode->GetChildValue( "TotalSessionSeconds", m_iTotalSessionSeconds );
|
||||||
pNode->GetChildValue( "TotalGameplaySeconds", m_iTotalGameplaySeconds );
|
pNode->GetChildValue( "TotalGameplaySeconds", m_iTotalGameplaySeconds );
|
||||||
pNode->GetChildValue( "TotalCaloriesBurned", m_fTotalCaloriesBurned );
|
pNode->GetChildValue( "TotalCaloriesBurned", m_fTotalCaloriesBurned );
|
||||||
pNode->GetChildValue( "GoalType", *ConvertValue<int>(&m_GoalType) );
|
pNode->GetChildValue( "GoalType", *ConvertValue<int>(&m_GoalType) );
|
||||||
|
|||||||
@@ -114,8 +114,8 @@ public:
|
|||||||
StepsType m_LastStepsType;
|
StepsType m_LastStepsType;
|
||||||
SongID m_lastSong;
|
SongID m_lastSong;
|
||||||
CourseID m_lastCourse;
|
CourseID m_lastCourse;
|
||||||
int m_iTotalPlays;
|
int m_iTotalSessions;
|
||||||
int m_iTotalPlaySeconds;
|
int m_iTotalSessionSeconds;
|
||||||
int m_iTotalGameplaySeconds;
|
int m_iTotalGameplaySeconds;
|
||||||
float m_fTotalCaloriesBurned;
|
float m_fTotalCaloriesBurned;
|
||||||
GoalType m_GoalType;
|
GoalType m_GoalType;
|
||||||
|
|||||||
Reference in New Issue
Block a user