1
0
mirror of https://github.com/ppy/osu.git synced 2025-02-21 03:02:54 +08:00

Tidy some remaining code

This commit is contained in:
Dean Herbert 2021-04-12 15:47:32 +09:00
parent 8c31e96cdf
commit 78bbc8f5c8
2 changed files with 32 additions and 16 deletions

View File

@ -8,34 +8,54 @@ namespace osu.Game.Rulesets.Edit.Checks.Components
/// </summary>
public enum CheckCategory
{
/// <summary> Anything to do with control points. </summary>
/// <summary>
/// Anything to do with control points.
/// </summary>
Timing,
/// <summary> Anything to do with artist, title, creator, etc. </summary>
/// <summary>
/// Anything to do with artist, title, creator, etc.
/// </summary>
Metadata,
/// <summary> Anything to do with non-audio files, e.g. background, skin, sprites, and video. </summary>
/// <summary>
/// Anything to do with non-audio files, e.g. background, skin, sprites, and video.
/// </summary>
Resources,
/// <summary> Anything to do with audio files, e.g. song and hitsounds. </summary>
/// <summary>
/// Anything to do with audio files, e.g. song and hitsounds.
/// </summary>
Audio,
/// <summary> Anything to do with files that don't fit into the above, e.g. unused, osu, or osb. </summary>
/// <summary>
/// Anything to do with files that don't fit into the above, e.g. unused, osu, or osb.
/// </summary>
Files,
/// <summary> Anything to do with hitobjects unrelated to spread. </summary>
/// <summary>
/// Anything to do with hitobjects unrelated to spread.
/// </summary>
Compose,
/// <summary> Anything to do with difficulty levels or their progression. </summary>
/// <summary>
/// Anything to do with difficulty levels or their progression.
/// </summary>
Spread,
/// <summary> Anything to do with variables like CS, OD, AR, HP, and global SV. </summary>
/// <summary>
/// Anything to do with variables like CS, OD, AR, HP, and global SV.
/// </summary>
Settings,
/// <summary> Anything to do with hitobject feedback. </summary>
Hitsounds,
/// <summary>
/// Anything to do with hitobject feedback.
/// </summary>
HitObjects,
/// <summary> Anything to do with storyboarding, breaks, video offset, etc. </summary>
/// <summary>
/// Anything to do with storyboarding, breaks, video offset, etc.
/// </summary>
Events
}
}

View File

@ -40,11 +40,7 @@ namespace osu.Game.Rulesets.Edit.Checks.Components
Arguments = args;
if (template.Origin == null)
{
throw new ArgumentException(
"A template had no origin. Make sure the `Templates()` method contains all templates used."
);
}
throw new ArgumentException("A template had no origin. Make sure the `Templates()` method contains all templates used.");
}
public Issue(double? time, IssueTemplate template, params object[] args)