mirror of
https://github.com/ppy/osu.git
synced 2024-11-18 15:32:55 +08:00
33 lines
1.1 KiB
C#
33 lines
1.1 KiB
C#
// 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.
|
|
|
|
using osu.Game.Online.API.Requests.Responses;
|
|
|
|
namespace osu.Game.Configuration
|
|
{
|
|
/// <summary>
|
|
/// Stores global per-session statics. These will not be stored after exiting the game.
|
|
/// </summary>
|
|
public class SessionStatics : InMemoryConfigManager<Static>
|
|
{
|
|
protected override void InitialiseDefaults()
|
|
{
|
|
Set(Static.LoginOverlayDisplayed, false);
|
|
Set(Static.MutedAudioNotificationShownOnce, false);
|
|
Set<APISeasonalBackgrounds>(Static.SeasonalBackgrounds, null);
|
|
}
|
|
}
|
|
|
|
public enum Static
|
|
{
|
|
LoginOverlayDisplayed,
|
|
MutedAudioNotificationShownOnce,
|
|
|
|
/// <summary>
|
|
/// Info about seasonal backgrounds available fetched from API - see <see cref="APISeasonalBackgrounds"/>.
|
|
/// Value under this lookup can be <c>null</c> if there are no backgrounds available (or API is not reachable).
|
|
/// </summary>
|
|
SeasonalBackgrounds,
|
|
}
|
|
}
|