mirror of
https://github.com/ppy/osu.git
synced 2025-01-28 08:02:55 +08:00
GetScore -> CreateScore.
This commit is contained in:
parent
d5ec7f15d4
commit
9a4af8f194
@ -39,7 +39,7 @@ namespace osu.Game.Database
|
||||
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 @@ namespace osu.Game.Modes
|
||||
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 @@ namespace osu.Game.Screens.Play
|
||||
ValidForResume = false;
|
||||
Push(new Results
|
||||
{
|
||||
Score = scoreProcessor.GetScore()
|
||||
Score = scoreProcessor.CreateScore()
|
||||
});
|
||||
});
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user