2019-01-24 16:43:03 +08:00
|
|
|
|
// 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.
|
2018-08-03 20:03:11 +08:00
|
|
|
|
|
|
|
|
|
using osu.Game.Rulesets.UI;
|
|
|
|
|
|
|
|
|
|
namespace osu.Game.Rulesets.Mods
|
|
|
|
|
{
|
2022-03-03 14:37:39 +08:00
|
|
|
|
/// <summary>
|
|
|
|
|
/// An interface for <see cref="Mod"/>s that are updated every frame by a <see cref="Playfield"/>.
|
|
|
|
|
/// </summary>
|
2018-08-03 20:03:11 +08:00
|
|
|
|
public interface IUpdatableByPlayfield : IApplicableMod
|
|
|
|
|
{
|
2022-03-03 14:37:39 +08:00
|
|
|
|
/// <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>
|
2018-08-04 06:18:09 +08:00
|
|
|
|
void Update(Playfield playfield);
|
2018-08-03 20:03:11 +08:00
|
|
|
|
}
|
|
|
|
|
}
|