Files
Flappy-Bird-AI-Driven-Bohda…/Assets/Scripts/Core/IDeathHandler.cs
T
2026-03-20 13:04:43 +02:00

16 lines
487 B
C#

namespace FlappyBird.Core
{
/// <summary>
/// Contract for the death-handling service.
/// Implementations react to a GameOver state transition and apply
/// all necessary side-effects (freeze bird, clear pipes, etc.).
/// </summary>
public interface IDeathHandler
{
/// <summary>
/// Executes all death side-effects.
/// Called by the subscriber wired up in the installer.
/// </summary>
void HandleDeath();
}
}