mirror of
https://github.com/ppy/osu.git
synced 2025-01-18 05:42:56 +08:00
Update DrawableHitObject.HitObject nullability documentation
This commit is contained in:
parent
0a7336ef17
commit
267d666b65
@ -47,7 +47,9 @@ namespace osu.Game.Rulesets.Objects.Drawables
|
||||
|
||||
/// <summary>
|
||||
/// The <see cref="HitObject"/> currently represented by this <see cref="DrawableHitObject"/>.
|
||||
/// This may be null if the <see cref="DrawableHitObject"/> is in a pool and has not yet been applied a <see cref="HitObject"/>.
|
||||
/// </summary>
|
||||
[CanBeNull]
|
||||
public HitObject HitObject => Entry?.HitObject;
|
||||
|
||||
/// <summary>
|
||||
@ -799,6 +801,7 @@ namespace osu.Game.Rulesets.Objects.Drawables
|
||||
public abstract partial class DrawableHitObject<TObject> : DrawableHitObject
|
||||
where TObject : HitObject
|
||||
{
|
||||
[CanBeNull]
|
||||
public new TObject HitObject => (TObject)base.HitObject;
|
||||
|
||||
protected DrawableHitObject([CanBeNull] TObject hitObject)
|
||||
|
Loading…
Reference in New Issue
Block a user