mirror of
https://github.com/ppy/osu.git
synced 2024-12-15 10:33:01 +08:00
1f9f2b413e
Also, mark as nullable for some properties.
24 lines
891 B
C#
24 lines
891 B
C#
// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the MIT Licence.
|
|
// See the LICENCE file in the repository root for full licence text.
|
|
|
|
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);
|
|
}
|
|
}
|