mirror of
https://github.com/ppy/osu.git
synced 2024-11-15 22:37:26 +08:00
Serialize ok hit window attribute to db
This commit is contained in:
parent
faddc4fa99
commit
e56942012c
@ -59,6 +59,7 @@ namespace osu.Game.Rulesets.Taiko.Difficulty
|
|||||||
|
|
||||||
yield return (ATTRIB_ID_DIFFICULTY, StarRating);
|
yield return (ATTRIB_ID_DIFFICULTY, StarRating);
|
||||||
yield return (ATTRIB_ID_GREAT_HIT_WINDOW, GreatHitWindow);
|
yield return (ATTRIB_ID_GREAT_HIT_WINDOW, GreatHitWindow);
|
||||||
|
yield return (ATTRIB_ID_OK_HIT_WINDOW, OkHitWindow);
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void FromDatabaseAttributes(IReadOnlyDictionary<int, double> values, IBeatmapOnlineInfo onlineInfo)
|
public override void FromDatabaseAttributes(IReadOnlyDictionary<int, double> values, IBeatmapOnlineInfo onlineInfo)
|
||||||
@ -67,6 +68,7 @@ namespace osu.Game.Rulesets.Taiko.Difficulty
|
|||||||
|
|
||||||
StarRating = values[ATTRIB_ID_DIFFICULTY];
|
StarRating = values[ATTRIB_ID_DIFFICULTY];
|
||||||
GreatHitWindow = values[ATTRIB_ID_GREAT_HIT_WINDOW];
|
GreatHitWindow = values[ATTRIB_ID_GREAT_HIT_WINDOW];
|
||||||
|
OkHitWindow = values[ATTRIB_ID_OK_HIT_WINDOW];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -30,6 +30,7 @@ namespace osu.Game.Rulesets.Difficulty
|
|||||||
protected const int ATTRIB_ID_LEGACY_ACCURACY_SCORE = 23;
|
protected const int ATTRIB_ID_LEGACY_ACCURACY_SCORE = 23;
|
||||||
protected const int ATTRIB_ID_LEGACY_COMBO_SCORE = 25;
|
protected const int ATTRIB_ID_LEGACY_COMBO_SCORE = 25;
|
||||||
protected const int ATTRIB_ID_LEGACY_BONUS_SCORE_RATIO = 27;
|
protected const int ATTRIB_ID_LEGACY_BONUS_SCORE_RATIO = 27;
|
||||||
|
protected const int ATTRIB_ID_OK_HIT_WINDOW = 29;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The mods which were applied to the beatmap.
|
/// The mods which were applied to the beatmap.
|
||||||
|
Loading…
Reference in New Issue
Block a user