Rename other variables to match

This commit is contained in:
Dean Herbert 2020-10-27 10:59:24 +09:00
parent 7392876b5f
commit 68719bb23d
1 changed files with 4 additions and 4 deletions

View File

@ -50,10 +50,10 @@ public class SpectatorStreamingClient : Component, ISpectatorClient
private IBeatmap currentBeatmap;
[Resolved]
private IBindable<RulesetInfo> ruleset { get; set; }
private IBindable<RulesetInfo> currentRuleset { get; set; }
[Resolved]
private IBindable<IReadOnlyList<Mod>> mods { get; set; }
private IBindable<IReadOnlyList<Mod>> currentMods { get; set; }
private readonly SpectatorState currentState = new SpectatorState();
@ -178,8 +178,8 @@ public void BeginPlaying(GameplayBeatmap beatmap)
// transfer state at point of beginning play
currentState.BeatmapID = beatmap.BeatmapInfo.OnlineBeatmapID;
currentState.RulesetID = ruleset.Value.ID;
currentState.Mods = mods.Value.Select(m => new APIMod(m));
currentState.RulesetID = currentRuleset.Value.ID;
currentState.Mods = currentMods.Value.Select(m => new APIMod(m));
currentBeatmap = beatmap.PlayableBeatmap;
beginPlaying();