mirror of
https://github.com/osukey/osukey.git
synced 2025-05-21 05:27:17 +09: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.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using NUnit.Framework;
|
using NUnit.Framework;
|
||||||
using osu.Framework.Graphics;
|
|
||||||
using osu.Framework.Graphics.Containers;
|
|
||||||
using osu.Game.Beatmaps;
|
using osu.Game.Beatmaps;
|
||||||
using osu.Game.Beatmaps.ControlPoints;
|
using osu.Game.Beatmaps.ControlPoints;
|
||||||
using osu.Game.Replays;
|
using osu.Game.Replays;
|
||||||
@ -46,18 +44,11 @@ namespace osu.Game.Rulesets.Osu.Tests
|
|||||||
{
|
{
|
||||||
allJudgedFired = false;
|
allJudgedFired = false;
|
||||||
judgementResults = new List<JudgementResult>();
|
judgementResults = new List<JudgementResult>();
|
||||||
|
});
|
||||||
private readonly Container content;
|
|
||||||
protected override Container<Drawable> Content => content;
|
|
||||||
|
|
||||||
private List<JudgementResult> judgementResults;
|
private List<JudgementResult> judgementResults;
|
||||||
private bool allJudgedFired;
|
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_before_slider = 250;
|
||||||
private const double time_slider_start = 1500;
|
private const double time_slider_start = 1500;
|
||||||
private const double time_during_slide_1 = 2500;
|
private const double time_during_slide_1 = 2500;
|
||||||
@ -411,7 +402,10 @@ namespace osu.Game.Rulesets.Osu.Tests
|
|||||||
AllowResults = false
|
AllowResults = false
|
||||||
};
|
};
|
||||||
|
|
||||||
Child = player;
|
Child = new OsuInputManager(new RulesetInfo { ID = 0 })
|
||||||
|
{
|
||||||
|
Child = player
|
||||||
|
};
|
||||||
|
|
||||||
player.ScoreProcessor.NewJudgement += result => judgementResults.Add(result);
|
player.ScoreProcessor.NewJudgement += result => judgementResults.Add(result);
|
||||||
player.ScoreProcessor.AllJudged += () => { allJudgedFired = true; };
|
player.ScoreProcessor.AllJudged += () => { allJudgedFired = true; };
|
||||||
|
Loading…
x
Reference in New Issue
Block a user