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:
parent
682dab5d83
commit
347e88f597
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user