Restore editor clock time after difficulty switch

This commit is contained in:
Bartłomiej Dach
2021-09-11 18:36:57 +02:00
parent 80e54d51f2
commit 3fc72271f1
3 changed files with 41 additions and 3 deletions

View File

@ -0,0 +1,19 @@
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
// See the LICENCE file in the repository root for full licence text.
#nullable enable
namespace osu.Game.Screens.Edit
{
/// <summary>
/// Structure used to transport data between <see cref="Editor"/> instances on difficulty change.
/// It's intended to be received by <see cref="EditorLoader"/> from one editor instance and passed down to the next one.
/// </summary>
public class EditorState
{
/// <summary>
/// The current clock time when a difficulty switch was requested.
/// </summary>
public double? Time { get; set; }
}
}