mirror of
https://github.com/osukey/osukey.git
synced 2025-06-27 22:27:57 +09: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.
|
/// 17 2022-07-16 Added CountryCode to RealmUser.
|
||||||
/// 18 2022-07-19 Added OnlineMD5Hash and LastOnlineUpdate to BeatmapInfo.
|
/// 18 2022-07-19 Added OnlineMD5Hash and LastOnlineUpdate to BeatmapInfo.
|
||||||
/// 19 2022-07-19 Added DateSubmitted and DateRanked to BeatmapSetInfo.
|
/// 19 2022-07-19 Added DateSubmitted and DateRanked to BeatmapSetInfo.
|
||||||
|
/// 20 2022-07-21 Added LastAppliedDifficultyVersion to RulesetInfo.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private const int schema_version = 19;
|
private const int schema_version = 20;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Lock object which is held during <see cref="BlockAllOperations"/> sections, blocking realm retrieval during blocking periods.
|
/// Lock object which is held during <see cref="BlockAllOperations"/> sections, blocking realm retrieval during blocking periods.
|
||||||
|
@ -4,6 +4,7 @@
|
|||||||
using System;
|
using System;
|
||||||
using JetBrains.Annotations;
|
using JetBrains.Annotations;
|
||||||
using osu.Framework.Testing;
|
using osu.Framework.Testing;
|
||||||
|
using osu.Game.Rulesets.Difficulty;
|
||||||
using Realms;
|
using Realms;
|
||||||
|
|
||||||
namespace osu.Game.Rulesets
|
namespace osu.Game.Rulesets
|
||||||
@ -22,6 +23,11 @@ namespace osu.Game.Rulesets
|
|||||||
|
|
||||||
public string InstantiationInfo { get; set; } = string.Empty;
|
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)
|
public RulesetInfo(string shortName, string name, string instantiationInfo, int onlineID)
|
||||||
{
|
{
|
||||||
ShortName = shortName;
|
ShortName = shortName;
|
||||||
@ -86,7 +92,8 @@ namespace osu.Game.Rulesets
|
|||||||
Name = Name,
|
Name = Name,
|
||||||
ShortName = ShortName,
|
ShortName = ShortName,
|
||||||
InstantiationInfo = InstantiationInfo,
|
InstantiationInfo = InstantiationInfo,
|
||||||
Available = Available
|
Available = Available,
|
||||||
|
LastAppliedDifficultyVersion = LastAppliedDifficultyVersion,
|
||||||
};
|
};
|
||||||
|
|
||||||
public Ruleset CreateInstance()
|
public Ruleset CreateInstance()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user