mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 10:33:30 +08:00
Move nested classes to bottom of file
This commit is contained in:
parent
6d50d01186
commit
36bd235021
@ -26,26 +26,6 @@ namespace osu.Game.Rulesets.Osu.Edit.Checks
|
||||
private readonly IssueTemplateOffscreenSlider templateOffscreenSlider;
|
||||
private readonly IssueTemplate[] templates;
|
||||
|
||||
private class IssueTemplateOffscreenCircle : IssueTemplate
|
||||
{
|
||||
public IssueTemplateOffscreenCircle(ICheck checkOrigin)
|
||||
: base(checkOrigin, IssueType.Problem, "This circle goes offscreen on a 4:3 aspect ratio.")
|
||||
{
|
||||
}
|
||||
|
||||
public Issue Create(HitCircle circle) => new Issue(circle, this);
|
||||
}
|
||||
|
||||
private class IssueTemplateOffscreenSlider : IssueTemplate
|
||||
{
|
||||
public IssueTemplateOffscreenSlider(ICheck checkOrigin)
|
||||
: base(checkOrigin, IssueType.Problem, "This slider goes offscreen here on a 4:3 aspect ratio.")
|
||||
{
|
||||
}
|
||||
|
||||
public Issue Create(Slider slider, double offscreenTime) => new Issue(slider, this) { Time = offscreenTime };
|
||||
}
|
||||
|
||||
public CheckOffscreenObjects()
|
||||
{
|
||||
templates = new IssueTemplate[]
|
||||
@ -123,5 +103,25 @@ namespace osu.Game.Rulesets.Osu.Edit.Checks
|
||||
return position.X - radius < min_x || position.X + radius > max_x ||
|
||||
position.Y - radius < min_y || position.Y + radius > max_y;
|
||||
}
|
||||
|
||||
private class IssueTemplateOffscreenCircle : IssueTemplate
|
||||
{
|
||||
public IssueTemplateOffscreenCircle(ICheck checkOrigin)
|
||||
: base(checkOrigin, IssueType.Problem, "This circle goes offscreen on a 4:3 aspect ratio.")
|
||||
{
|
||||
}
|
||||
|
||||
public Issue Create(HitCircle circle) => new Issue(circle, this);
|
||||
}
|
||||
|
||||
private class IssueTemplateOffscreenSlider : IssueTemplate
|
||||
{
|
||||
public IssueTemplateOffscreenSlider(ICheck checkOrigin)
|
||||
: base(checkOrigin, IssueType.Problem, "This slider goes offscreen here on a 4:3 aspect ratio.")
|
||||
{
|
||||
}
|
||||
|
||||
public Issue Create(Slider slider, double offscreenTime) => new Issue(slider, this) { Time = offscreenTime };
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -14,26 +14,6 @@ namespace osu.Game.Rulesets.Edit.Checks
|
||||
private readonly IssueTemplateDoesNotExist templateDoesNotExist;
|
||||
private readonly IssueTemplate[] templates;
|
||||
|
||||
private class IssueTemplateNoneSet : IssueTemplate
|
||||
{
|
||||
public IssueTemplateNoneSet(ICheck checkOrigin)
|
||||
: base(checkOrigin, IssueType.Problem, "No background has been set")
|
||||
{
|
||||
}
|
||||
|
||||
public Issue Create() => new Issue(this);
|
||||
}
|
||||
|
||||
private class IssueTemplateDoesNotExist : IssueTemplate
|
||||
{
|
||||
public IssueTemplateDoesNotExist(ICheck checkOrigin)
|
||||
: base(checkOrigin, IssueType.Problem, "The background file \"{0}\" does not exist.")
|
||||
{
|
||||
}
|
||||
|
||||
public Issue Create(string filename) => new Issue(this, filename);
|
||||
}
|
||||
|
||||
public CheckBackground()
|
||||
{
|
||||
templates = new IssueTemplate[]
|
||||
@ -70,5 +50,25 @@ namespace osu.Game.Rulesets.Edit.Checks
|
||||
|
||||
yield return templateDoesNotExist.Create(beatmap.Metadata.BackgroundFile);
|
||||
}
|
||||
|
||||
private class IssueTemplateNoneSet : IssueTemplate
|
||||
{
|
||||
public IssueTemplateNoneSet(ICheck checkOrigin)
|
||||
: base(checkOrigin, IssueType.Problem, "No background has been set")
|
||||
{
|
||||
}
|
||||
|
||||
public Issue Create() => new Issue(this);
|
||||
}
|
||||
|
||||
private class IssueTemplateDoesNotExist : IssueTemplate
|
||||
{
|
||||
public IssueTemplateDoesNotExist(ICheck checkOrigin)
|
||||
: base(checkOrigin, IssueType.Problem, "The background file \"{0}\" does not exist.")
|
||||
{
|
||||
}
|
||||
|
||||
public Issue Create(string filename) => new Issue(this, filename);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user