Add note about shared code

This commit is contained in:
Dean Herbert 2023-11-24 10:25:23 +09:00
parent 10e16e4b04
commit 039f8e6242
No known key found for this signature in database
2 changed files with 4 additions and 0 deletions

View File

@ -157,6 +157,8 @@ protected override void ApplyDefaultsToSelf(ControlPointInfo controlPointInfo, I
public void UpdateComboInformation(IHasComboInformation? lastObj)
{
// Note that this implementation is shared with the osu! ruleset's implementation.
// If a change is made here, OsuHitObject.cs should also be updated.
ComboIndex = lastObj?.ComboIndex ?? 0;
ComboIndexWithOffsets = lastObj?.ComboIndexWithOffsets ?? 0;
IndexInCurrentCombo = (lastObj?.IndexInCurrentCombo + 1) ?? 0;

View File

@ -161,6 +161,8 @@ protected override void ApplyDefaultsToSelf(ControlPointInfo controlPointInfo, I
public void UpdateComboInformation(IHasComboInformation? lastObj)
{
// Note that this implementation is shared with the osu!catch ruleset's implementation.
// If a change is made here, CatchHitObject.cs should also be updated.
ComboIndex = lastObj?.ComboIndex ?? 0;
ComboIndexWithOffsets = lastObj?.ComboIndexWithOffsets ?? 0;
IndexInCurrentCombo = (lastObj?.IndexInCurrentCombo + 1) ?? 0;