mirror of
https://github.com/osukey/osukey.git
synced 2025-08-04 23:24:04 +09:00
Add last applied version to RulesetInfo
This commit is contained in:
@ -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()
|
||||
|
Reference in New Issue
Block a user