support ScoreKeeperShared in ScoreKeeper::MakeScoreKeeper
This commit is contained in:
@@ -32,6 +32,7 @@ void ScoreKeeper::GetScoreOfLastTapInRow( const NoteData &nd, int iRow,
|
|||||||
|
|
||||||
#include "ScoreKeeperNormal.h"
|
#include "ScoreKeeperNormal.h"
|
||||||
#include "ScoreKeeperGuitar.h"
|
#include "ScoreKeeperGuitar.h"
|
||||||
|
#include "ScoreKeeperShared.h"
|
||||||
|
|
||||||
ScoreKeeper* ScoreKeeper::MakeScoreKeeper( RString sClassName, PlayerState *pPlayerState, PlayerStageStats *pPlayerStageStats )
|
ScoreKeeper* ScoreKeeper::MakeScoreKeeper( RString sClassName, PlayerState *pPlayerState, PlayerStageStats *pPlayerStageStats )
|
||||||
{
|
{
|
||||||
@@ -39,6 +40,8 @@ ScoreKeeper* ScoreKeeper::MakeScoreKeeper( RString sClassName, PlayerState *pPla
|
|||||||
return new ScoreKeeperNormal( pPlayerState, pPlayerStageStats );
|
return new ScoreKeeperNormal( pPlayerState, pPlayerStageStats );
|
||||||
else if( sClassName == "ScoreKeeperGuitar" )
|
else if( sClassName == "ScoreKeeperGuitar" )
|
||||||
return new ScoreKeeperGuitar( pPlayerState, pPlayerStageStats );
|
return new ScoreKeeperGuitar( pPlayerState, pPlayerStageStats );
|
||||||
|
else if( sClassName == "ScoreKeeperShared" )
|
||||||
|
return new ScoreKeeperShared( pPlayerState, pPlayerStageStats );
|
||||||
FAIL_M( sClassName );
|
FAIL_M( sClassName );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user