GetScore -> CreateScore.

This commit is contained in:
smoogipooo 2017-03-17 02:03:12 +09:00
parent d5ec7f15d4
commit 9a4af8f194
3 changed files with 7 additions and 3 deletions

View File

@ -39,7 +39,7 @@ public Score ReadReplayFile(string replayFilename)
using (SerializationReader sr = new SerializationReader(s))
{
var ruleset = Ruleset.GetRuleset((PlayMode)sr.ReadByte());
score = ruleset.CreateScoreProcessor().GetScore();
score = ruleset.CreateScoreProcessor().CreateScore();
/* score.Pass = true;*/
var version = sr.ReadInt32();

View File

@ -60,7 +60,11 @@ protected ScoreProcessor()
Reset();
}
public virtual Score GetScore() => new Score
/// <summary>
/// Creates a Score applicable to the game mode in which this ScoreProcessor resides.
/// </summary>
/// <returns>The Score.</returns>
public virtual Score CreateScore() => new Score
{
TotalScore = TotalScore,
Combo = Combo,

View File

@ -249,7 +249,7 @@ private void onCompletion()
ValidForResume = false;
Push(new Results
{
Score = scoreProcessor.GetScore()
Score = scoreProcessor.CreateScore()
});
});
}