mirror of
https://github.com/ppy/osu
synced 2024-12-25 16:22:23 +00:00
Add last applied version to RulesetInfo
This commit is contained in:
parent
aca19a005e
commit
68f28ff660
@ -63,8 +63,9 @@ namespace osu.Game.Database
|
||||
/// 17 2022-07-16 Added CountryCode to RealmUser.
|
||||
/// 18 2022-07-19 Added OnlineMD5Hash and LastOnlineUpdate to BeatmapInfo.
|
||||
/// 19 2022-07-19 Added DateSubmitted and DateRanked to BeatmapSetInfo.
|
||||
/// 20 2022-07-21 Added LastAppliedDifficultyVersion to RulesetInfo.
|
||||
/// </summary>
|
||||
private const int schema_version = 19;
|
||||
private const int schema_version = 20;
|
||||
|
||||
/// <summary>
|
||||
/// Lock object which is held during <see cref="BlockAllOperations"/> sections, blocking realm retrieval during blocking periods.
|
||||
|
@ -4,6 +4,7 @@
|
||||
using System;
|
||||
using JetBrains.Annotations;
|
||||
using osu.Framework.Testing;
|
||||
using osu.Game.Rulesets.Difficulty;
|
||||
using Realms;
|
||||
|
||||
namespace osu.Game.Rulesets
|
||||
@ -22,6 +23,11 @@ namespace osu.Game.Rulesets
|
||||
|
||||
public string InstantiationInfo { get; set; } = string.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// Stores the last applied <see cref="DifficultyCalculator.Version"/>
|
||||
/// </summary>
|
||||
public int LastAppliedDifficultyVersion { get; set; }
|
||||
|
||||
public RulesetInfo(string shortName, string name, string instantiationInfo, int onlineID)
|
||||
{
|
||||
ShortName = shortName;
|
||||
@ -86,7 +92,8 @@ namespace osu.Game.Rulesets
|
||||
Name = Name,
|
||||
ShortName = ShortName,
|
||||
InstantiationInfo = InstantiationInfo,
|
||||
Available = Available
|
||||
Available = Available,
|
||||
LastAppliedDifficultyVersion = LastAppliedDifficultyVersion,
|
||||
};
|
||||
|
||||
public Ruleset CreateInstance()
|
||||
|
Loading…
Reference in New Issue
Block a user