mirror of
https://github.com/osukey/osukey.git
synced 2025-07-03 01:09:57 +09:00
Use virtual property instead of a field for optional pieces
This commit is contained in:
@ -21,11 +21,17 @@ namespace osu.Game.Rulesets.Catch.Skinning.Default
|
||||
[CanBeNull]
|
||||
protected DrawableHitObject DrawableHitObject { get; private set; }
|
||||
|
||||
/// <summary>
|
||||
/// A part of this piece that will be faded out while falling in the playfield.
|
||||
/// </summary>
|
||||
[CanBeNull]
|
||||
protected BorderPiece BorderPiece;
|
||||
protected virtual BorderPiece BorderPiece => null;
|
||||
|
||||
/// <summary>
|
||||
/// A part of this piece that will be only visible when <see cref="HyperDash"/> is true.
|
||||
/// </summary>
|
||||
[CanBeNull]
|
||||
protected HyperBorderPiece HyperBorderPiece;
|
||||
protected virtual HyperBorderPiece HyperBorderPiece => null;
|
||||
|
||||
protected override void LoadComplete()
|
||||
{
|
||||
|
Reference in New Issue
Block a user