1
0
mirror of https://github.com/ppy/osu.git synced 2025-03-14 13:27:19 +08:00

Add note about using static callback

This commit is contained in:
Dean Herbert 2024-01-26 16:21:48 +09:00
parent 682dab5d83
commit 347e88f597
No known key found for this signature in database

View File

@ -686,7 +686,7 @@ namespace osu.Game.Rulesets.Objects.Drawables
/// Applies the <see cref="Result"/> of this <see cref="DrawableHitObject"/>, notifying responders such as
/// the <see cref="ScoreProcessor"/> of the <see cref="JudgementResult"/>.
/// </summary>
/// <param name="application">The callback that applies changes to the <see cref="JudgementResult"/>.</param>
/// <param name="application">The callback that applies changes to the <see cref="JudgementResult"/>. Using a `static` delegate is recommended to avoid allocation overhead.</param>
protected void ApplyResult(Action<JudgementResult, DrawableHitObject> application)
{
if (Result.HasResult)