mirror of
https://github.com/osukey/osukey.git
synced 2025-05-06 14:17:27 +09:00
Add xmldoc for CreateScoreInfo
function for now
I don't actually know how temporary this one is going to be. The usages are quite deep - ie. converting to a `ScoreInfo` to get a calculated total score for ordering purposes.
This commit is contained in:
parent
f68d6dbc8f
commit
06b6bcfd29
@ -70,7 +70,12 @@ namespace osu.Game.Online.API.Requests.Responses
|
|||||||
[JsonConverter(typeof(StringEnumConverter))]
|
[JsonConverter(typeof(StringEnumConverter))]
|
||||||
public ScoreRank Rank { get; set; }
|
public ScoreRank Rank { get; set; }
|
||||||
|
|
||||||
// TODO: This function will eventually be going away.
|
/// <summary>
|
||||||
|
/// Create a <see cref="ScoreInfo"/> from an API score instance.
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="rulesets">A ruleset store, used to populate a ruleset instance in the returned score.</param>
|
||||||
|
/// <param name="beatmap">An optional beatmap, copied into the returned score (for cases where the API does not populate the beatmap).</param>
|
||||||
|
/// <returns></returns>
|
||||||
public ScoreInfo CreateScoreInfo(RulesetStore rulesets, BeatmapInfo beatmap = null)
|
public ScoreInfo CreateScoreInfo(RulesetStore rulesets, BeatmapInfo beatmap = null)
|
||||||
{
|
{
|
||||||
var ruleset = rulesets.GetRuleset(OnlineRulesetID);
|
var ruleset = rulesets.GetRuleset(OnlineRulesetID);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user