mirror of https://github.com/ppy/osu
GetScore -> CreateScore.
This commit is contained in:
parent
d5ec7f15d4
commit
9a4af8f194
|
@ -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();
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -249,7 +249,7 @@ private void onCompletion()
|
|||
ValidForResume = false;
|
||||
Push(new Results
|
||||
{
|
||||
Score = scoreProcessor.GetScore()
|
||||
Score = scoreProcessor.CreateScore()
|
||||
});
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue