-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'split-legacy-scoring-attribs' into total-score-classic
- Loading branch information
Showing
2 changed files
with
41 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
34 changes: 34 additions & 0 deletions
34
osu.Server.Queues.ScoreStatisticsProcessor/Models/BeatmapScoringAttributes.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
// Copyright (c) ppy Pty Ltd <[email protected]>. Licensed under the MIT Licence. | ||
// See the LICENCE file in the repository root for full licence text. | ||
|
||
using System; | ||
using System.Diagnostics.CodeAnalysis; | ||
using Dapper.Contrib.Extensions; | ||
using osu.Game.Rulesets.Scoring.Legacy; | ||
|
||
namespace osu.Server.Queues.ScoreStatisticsProcessor.Models | ||
{ | ||
[SuppressMessage("ReSharper", "InconsistentNaming")] | ||
[Serializable] | ||
[Table("osu_beatmap_scoring_attribs")] | ||
public class BeatmapScoringAttributes | ||
{ | ||
[ExplicitKey] | ||
public uint beatmap_id { get; set; } | ||
|
||
public ushort mode { get; set; } | ||
|
||
public int legacy_accuracy_score { get; set; } | ||
|
||
public long legacy_combo_score { get; set; } | ||
|
||
public float legacy_bonus_score_ratio { get; set; } | ||
|
||
public LegacyScoreAttributes ToAttributes() => new LegacyScoreAttributes | ||
{ | ||
AccuracyScore = legacy_accuracy_score, | ||
ComboScore = legacy_combo_score, | ||
BonusScoreRatio = legacy_bonus_score_ratio | ||
}; | ||
} | ||
} |