mirror of
https://github.com/ppy/osu.git
synced 2024-11-11 11:07:52 +08:00
Make HitWindows not return null by default
This commit is contained in:
parent
bfad101d17
commit
97a523584d
@ -47,6 +47,8 @@ namespace osu.Game.Rulesets.Catch.Objects
|
||||
|
||||
Scale = 1.0f - 0.7f * (difficulty.CircleSize - 5) / 5;
|
||||
}
|
||||
|
||||
protected override HitWindows CreateHitWindows() => null;
|
||||
}
|
||||
|
||||
public enum FruitVisualRepresentation
|
||||
|
@ -100,8 +100,11 @@ namespace osu.Game.Rulesets.Objects
|
||||
|
||||
/// <summary>
|
||||
/// Creates the <see cref="HitWindows"/> for this <see cref="HitObject"/>.
|
||||
/// This can be null to indicate that the <see cref="HitObject"/> has no <see cref="HitWindows"/>.
|
||||
/// <para>
|
||||
/// This will only be invoked if <see cref="HitWindows"/> hasn't been set externally (e.g. from a <see cref="BeatmapConverter"/>.
|
||||
/// </para>
|
||||
/// </summary>
|
||||
protected virtual HitWindows CreateHitWindows() => null;
|
||||
protected virtual HitWindows CreateHitWindows() => new HitWindows();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user