mirror of
https://github.com/osukey/osukey.git
synced 2025-08-04 23:24:04 +09:00
Merge branch 'master' into hide-resume-overlay
This commit is contained in:
@ -20,8 +20,7 @@ namespace osu.Game.Tests.Visual
|
||||
/// <summary>
|
||||
/// The dependencies provided to the children.
|
||||
/// </summary>
|
||||
// TODO: should be an init-only property when C# 9
|
||||
public (Type, object)[] CachedDependencies { get; set; } = Array.Empty<(Type, object)>();
|
||||
public (Type, object)[] CachedDependencies { get; init; } = Array.Empty<(Type, object)>();
|
||||
|
||||
protected override IReadOnlyDependencyContainer CreateChildDependencies(IReadOnlyDependencyContainer parent)
|
||||
{
|
||||
|
@ -7,6 +7,7 @@ using System;
|
||||
using System.Linq;
|
||||
using JetBrains.Annotations;
|
||||
using osu.Framework.Allocation;
|
||||
using osu.Framework.Logging;
|
||||
using osu.Framework.Testing;
|
||||
using osu.Game.Configuration;
|
||||
using osu.Game.Rulesets;
|
||||
@ -25,6 +26,24 @@ namespace osu.Game.Tests.Visual
|
||||
|
||||
protected OsuConfigManager LocalConfig;
|
||||
|
||||
private double lastReportedTime;
|
||||
|
||||
protected override void Update()
|
||||
{
|
||||
base.Update();
|
||||
|
||||
if (Player?.GameplayClockContainer != null)
|
||||
{
|
||||
int roundedTime = (int)Player.GameplayClockContainer.CurrentTime / 1000;
|
||||
|
||||
if (roundedTime != lastReportedTime)
|
||||
{
|
||||
lastReportedTime = roundedTime;
|
||||
Logger.Log($"⏱️ Gameplay clock reached {lastReportedTime * 1000:N0} ms");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
[BackgroundDependencyLoader]
|
||||
private void load()
|
||||
{
|
||||
|
@ -1,8 +1,6 @@
|
||||
// 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 disable
|
||||
|
||||
namespace osu.Game.Tests.Visual
|
||||
{
|
||||
/// <summary>
|
||||
|
Reference in New Issue
Block a user