mirror of
https://github.com/osukey/osukey.git
synced 2025-05-03 04:37:30 +09:00
27 lines
726 B
C#
27 lines
726 B
C#
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
|
// See the LICENCE file in the repository root for full licence text.
|
|
|
|
using Newtonsoft.Json;
|
|
using osu.Game.Beatmaps;
|
|
using osu.Game.Rulesets;
|
|
using osu.Game.Scoring;
|
|
|
|
namespace osu.Game.Online.API.Requests.Responses
|
|
{
|
|
public class APIScoreWithPosition
|
|
{
|
|
[JsonProperty(@"position")]
|
|
public int? Position;
|
|
|
|
[JsonProperty(@"score")]
|
|
public APIScore Score;
|
|
|
|
public ScoreInfo CreateScoreInfo(RulesetStore rulesets, BeatmapInfo beatmap = null)
|
|
{
|
|
var score = Score.CreateScoreInfo(rulesets, beatmap);
|
|
score.Position = Position;
|
|
return score;
|
|
}
|
|
}
|
|
}
|