mirror of
https://github.com/ppy/osu
synced 2024-12-12 01:48:49 +00:00
29 lines
883 B
C#
29 lines
883 B
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 System.Collections.Generic;
|
|
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(Static.SeasonalBackgrounds, new List<APISeasonalBackground>());
|
|
}
|
|
}
|
|
|
|
public enum Static
|
|
{
|
|
LoginOverlayDisplayed,
|
|
MutedAudioNotificationShownOnce,
|
|
SeasonalBackgrounds
|
|
}
|
|
}
|