mirror of
https://github.com/ppy/osu.git
synced 2025-01-30 04:23:21 +08:00
Playing
-> PlayingState
This commit is contained in:
parent
ee9998d8c8
commit
f59762f0cb
@ -72,7 +72,7 @@ namespace osu.Game.Screens.Play
|
|||||||
/// <summary>
|
/// <summary>
|
||||||
/// The local user's playing state (whether actively playing, paused, or not playing due to watching a replay or similar).
|
/// The local user's playing state (whether actively playing, paused, or not playing due to watching a replay or similar).
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public IBindable<LocalUserPlayingState> Playing { get; } = new Bindable<LocalUserPlayingState>();
|
public IBindable<LocalUserPlayingState> PlayingState { get; } = new Bindable<LocalUserPlayingState>();
|
||||||
|
|
||||||
public GameplayState(
|
public GameplayState(
|
||||||
IBeatmap beatmap,
|
IBeatmap beatmap,
|
||||||
@ -82,7 +82,7 @@ namespace osu.Game.Screens.Play
|
|||||||
ScoreProcessor? scoreProcessor = null,
|
ScoreProcessor? scoreProcessor = null,
|
||||||
HealthProcessor? healthProcessor = null,
|
HealthProcessor? healthProcessor = null,
|
||||||
Storyboard? storyboard = null,
|
Storyboard? storyboard = null,
|
||||||
IBindable<LocalUserPlayingState>? localUserPlaying = null)
|
IBindable<LocalUserPlayingState>? localUserPlayingState = null)
|
||||||
{
|
{
|
||||||
Beatmap = beatmap;
|
Beatmap = beatmap;
|
||||||
Ruleset = ruleset;
|
Ruleset = ruleset;
|
||||||
@ -99,8 +99,8 @@ namespace osu.Game.Screens.Play
|
|||||||
HealthProcessor = healthProcessor ?? ruleset.CreateHealthProcessor(beatmap.HitObjects[0].StartTime);
|
HealthProcessor = healthProcessor ?? ruleset.CreateHealthProcessor(beatmap.HitObjects[0].StartTime);
|
||||||
Storyboard = storyboard ?? new Storyboard();
|
Storyboard = storyboard ?? new Storyboard();
|
||||||
|
|
||||||
if (localUserPlaying != null)
|
if (localUserPlayingState != null)
|
||||||
Playing.BindTo(localUserPlaying);
|
PlayingState.BindTo(localUserPlayingState);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -245,7 +245,7 @@ namespace osu.Game.Screens.Play.HUD
|
|||||||
private void load(SpectatorClient client, GameplayState gameplayState)
|
private void load(SpectatorClient client, GameplayState gameplayState)
|
||||||
{
|
{
|
||||||
((IBindableList<SpectatorUser>)Spectators).BindTo(client.WatchingUsers);
|
((IBindableList<SpectatorUser>)Spectators).BindTo(client.WatchingUsers);
|
||||||
((IBindable<LocalUserPlayingState>)UserPlayingState).BindTo(gameplayState.Playing);
|
((IBindable<LocalUserPlayingState>)UserPlayingState).BindTo(gameplayState.PlayingState);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user