// Copyright (c) ppy Pty Ltd . Licensed under the MIT Licence. // See the LICENCE file in the repository root for full licence text. using System; using osu.Framework.Screens; using osu.Game.Screens.Play; namespace osu.Game.Screens.OnlinePlay.Multiplayer { public class MultiplayerPlayerLoader : PlayerLoader { public bool GameplayPassed => player?.GameplayPassed == true; private Player player; public MultiplayerPlayerLoader(Func createPlayer) : base(createPlayer) { } public override void OnSuspending(IScreen next) { base.OnSuspending(next); player = (Player)next; } } }