2019-09-23 05:15:27 +00:00
|
|
|
|
// 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.
|
|
|
|
|
|
2020-10-29 16:31:42 +00:00
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using osu.Game.Online.API.Requests.Responses;
|
|
|
|
|
|
2019-09-23 05:15:27 +00:00
|
|
|
|
namespace osu.Game.Configuration
|
|
|
|
|
{
|
2019-09-28 12:21:51 +00:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// Stores global per-session statics. These will not be stored after exiting the game.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public class SessionStatics : InMemoryConfigManager<Static>
|
2019-09-23 05:15:27 +00:00
|
|
|
|
{
|
2019-09-24 22:25:05 +00:00
|
|
|
|
protected override void InitialiseDefaults()
|
2019-09-23 05:15:27 +00:00
|
|
|
|
{
|
2019-09-28 12:21:51 +00:00
|
|
|
|
Set(Static.LoginOverlayDisplayed, false);
|
2019-10-01 15:39:01 +00:00
|
|
|
|
Set(Static.MutedAudioNotificationShownOnce, false);
|
2020-10-29 16:31:42 +00:00
|
|
|
|
Set(Static.SeasonalBackgrounds, new List<APISeasonalBackground>());
|
2019-09-23 05:15:27 +00:00
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2019-09-28 12:21:51 +00:00
|
|
|
|
public enum Static
|
2019-09-23 05:15:27 +00:00
|
|
|
|
{
|
2019-09-24 02:45:47 +00:00
|
|
|
|
LoginOverlayDisplayed,
|
2020-10-29 16:31:42 +00:00
|
|
|
|
MutedAudioNotificationShownOnce,
|
|
|
|
|
SeasonalBackgrounds
|
2019-09-23 05:15:27 +00:00
|
|
|
|
}
|
|
|
|
|
}
|