1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-12 12:37:29 +08:00
osu-lazer/osu.Game/Rulesets/Difficulty/DifficultyAttributes.cs
2021-11-15 19:54:35 +09:00

43 lines
1.2 KiB
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 System.Collections.Generic;
using System.Linq;
using Newtonsoft.Json;
using osu.Game.Rulesets.Difficulty.Skills;
using osu.Game.Rulesets.Mods;
namespace osu.Game.Rulesets.Difficulty
{
[JsonObject(MemberSerialization.OptIn)]
public class DifficultyAttributes
{
public Mod[] Mods { get; set; }
public Skill[] Skills { get; set; }
[JsonProperty("star_rating", Order = -3)]
public double StarRating { get; set; }
[JsonProperty("max_combo", Order = -2)]
public int MaxCombo { get; set; }
public DifficultyAttributes()
{
}
public DifficultyAttributes(Mod[] mods, Skill[] skills, double starRating)
{
Mods = mods;
Skills = skills;
StarRating = starRating;
}
public virtual IEnumerable<(int attributeId, object value)> ToDatabaseAttributes() => Enumerable.Empty<(int, object)>();
public virtual void FromDatabaseAttributes(IReadOnlyDictionary<int, double> values)
{
}
}
}