mirror of
https://github.com/ppy/osu
synced 2025-01-20 04:50:50 +00:00
Fix a couple of new inspections introduced in Rider EAPs
This commit is contained in:
parent
716b9048c1
commit
6d4c1ba2ae
@ -17,12 +17,12 @@ namespace osu.Game.Beatmaps
|
|||||||
public abstract class BeatmapConverter<T> : IBeatmapConverter
|
public abstract class BeatmapConverter<T> : IBeatmapConverter
|
||||||
where T : HitObject
|
where T : HitObject
|
||||||
{
|
{
|
||||||
private event Action<HitObject, IEnumerable<HitObject>> ObjectConverted;
|
private event Action<HitObject, IEnumerable<HitObject>> objectConverted;
|
||||||
|
|
||||||
event Action<HitObject, IEnumerable<HitObject>> IBeatmapConverter.ObjectConverted
|
event Action<HitObject, IEnumerable<HitObject>> IBeatmapConverter.ObjectConverted
|
||||||
{
|
{
|
||||||
add => ObjectConverted += value;
|
add => objectConverted += value;
|
||||||
remove => ObjectConverted -= value;
|
remove => objectConverted -= value;
|
||||||
}
|
}
|
||||||
|
|
||||||
public IBeatmap Beatmap { get; }
|
public IBeatmap Beatmap { get; }
|
||||||
@ -92,10 +92,10 @@ namespace osu.Game.Beatmaps
|
|||||||
|
|
||||||
var converted = ConvertHitObject(obj, beatmap, cancellationToken);
|
var converted = ConvertHitObject(obj, beatmap, cancellationToken);
|
||||||
|
|
||||||
if (ObjectConverted != null)
|
if (objectConverted != null)
|
||||||
{
|
{
|
||||||
converted = converted.ToList();
|
converted = converted.ToList();
|
||||||
ObjectConverted.Invoke(obj, converted);
|
objectConverted.Invoke(obj, converted);
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach (var c in converted)
|
foreach (var c in converted)
|
||||||
|
@ -471,9 +471,6 @@ namespace osu.Game.Beatmaps.Formats
|
|||||||
|
|
||||||
private string toLegacyCustomSampleBank(HitSampleInfo hitSampleInfo)
|
private string toLegacyCustomSampleBank(HitSampleInfo hitSampleInfo)
|
||||||
{
|
{
|
||||||
if (hitSampleInfo == null)
|
|
||||||
return "0";
|
|
||||||
|
|
||||||
if (hitSampleInfo is ConvertHitObjectParser.LegacyHitSampleInfo legacy)
|
if (hitSampleInfo is ConvertHitObjectParser.LegacyHitSampleInfo legacy)
|
||||||
return legacy.CustomSampleBank.ToString(CultureInfo.InvariantCulture);
|
return legacy.CustomSampleBank.ToString(CultureInfo.InvariantCulture);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user