mirror of
https://github.com/osukey/osukey.git
synced 2025-08-02 22:26:41 +09:00
Only call IUpdatableByPlayfield.Update
if the playfield isn't nested
This commit is contained in:
@ -5,8 +5,19 @@ using osu.Game.Rulesets.UI;
|
||||
|
||||
namespace osu.Game.Rulesets.Mods
|
||||
{
|
||||
/// <summary>
|
||||
/// An interface for <see cref="Mod"/>s that are updated every frame by a <see cref="Playfield"/>.
|
||||
/// </summary>
|
||||
public interface IUpdatableByPlayfield : IApplicableMod
|
||||
{
|
||||
/// <summary>
|
||||
/// Update this <see cref="Mod"/>.
|
||||
/// </summary>
|
||||
/// <param name="playfield">The main <see cref="Playfield"/></param>
|
||||
/// <remarks>
|
||||
/// This method is called once per frame during gameplay by the main <see cref="Playfield"/> only.
|
||||
/// To access nested <see cref="Playfield"/>s, use <see cref="Playfield.NestedPlayfields"/>.
|
||||
/// </remarks>
|
||||
void Update(Playfield playfield);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user