mirror of
https://github.com/ppy/osu.git
synced 2025-01-28 08:02:55 +08:00
Remove unnecessary content override
This commit is contained in:
parent
927b0375fd
commit
f79ce6a7f1
@ -5,8 +5,6 @@ using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using NUnit.Framework;
|
||||
using osu.Framework.Graphics;
|
||||
using osu.Framework.Graphics.Containers;
|
||||
using osu.Game.Beatmaps;
|
||||
using osu.Game.Beatmaps.ControlPoints;
|
||||
using osu.Game.Replays;
|
||||
@ -46,18 +44,11 @@ namespace osu.Game.Rulesets.Osu.Tests
|
||||
{
|
||||
allJudgedFired = false;
|
||||
judgementResults = new List<JudgementResult>();
|
||||
|
||||
private readonly Container content;
|
||||
protected override Container<Drawable> Content => content;
|
||||
});
|
||||
|
||||
private List<JudgementResult> judgementResults;
|
||||
private bool allJudgedFired;
|
||||
|
||||
public TestCaseSliderInput()
|
||||
{
|
||||
base.Content.Add(content = new OsuInputManager(new RulesetInfo { ID = 0 }));
|
||||
}
|
||||
|
||||
private const double time_before_slider = 250;
|
||||
private const double time_slider_start = 1500;
|
||||
private const double time_during_slide_1 = 2500;
|
||||
@ -411,7 +402,10 @@ namespace osu.Game.Rulesets.Osu.Tests
|
||||
AllowResults = false
|
||||
};
|
||||
|
||||
Child = player;
|
||||
Child = new OsuInputManager(new RulesetInfo { ID = 0 })
|
||||
{
|
||||
Child = player
|
||||
};
|
||||
|
||||
player.ScoreProcessor.NewJudgement += result => judgementResults.Add(result);
|
||||
player.ScoreProcessor.AllJudged += () => { allJudgedFired = true; };
|
||||
|
Loading…
Reference in New Issue
Block a user