1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-15 04:13:00 +08:00

Make EditorLoader state private

This commit is contained in:
Dean Herbert 2021-09-14 23:26:02 +09:00
parent cbb9ff1c49
commit 2a894e7a3f

View File

@ -25,7 +25,7 @@ namespace osu.Game.Screens.Edit
/// This will be read by the next editor instance to be opened to restore any relevant previous state. /// This will be read by the next editor instance to be opened to restore any relevant previous state.
/// </summary> /// </summary>
[CanBeNull] [CanBeNull]
public EditorState State; private EditorState state;
public override float BackgroundParallaxAmount => 0.1f; public override float BackgroundParallaxAmount => 0.1f;
@ -78,7 +78,7 @@ namespace osu.Game.Screens.Edit
scheduledDifficultySwitch = Schedule(() => scheduledDifficultySwitch = Schedule(() =>
{ {
Beatmap.Value = beatmapManager.GetWorkingBeatmap(nextBeatmap); Beatmap.Value = beatmapManager.GetWorkingBeatmap(nextBeatmap);
State = editorState; state = editorState;
// This screen is a weird exception to the rule that nothing after song select changes the global beatmap. // This screen is a weird exception to the rule that nothing after song select changes the global beatmap.
// Because of this, we need to update the background stack's beatmap to match. // Because of this, we need to update the background stack's beatmap to match.