Files
nodewars/scripts/EventBus.cs
2026-05-14 13:17:23 +02:00

23 lines
415 B
C#

using Godot;
namespace NodeWar.scripts;
public partial class EventBus : Node
{
[Signal]
public delegate void GameStartedEventHandler();
[Signal]
public delegate void GameEndedEventHandler(bool win);
[Signal]
public delegate void SelectionChangedEventHandler(string infoText);
public static EventBus Instance { get; private set; }
public override void _EnterTree()
{
Instance ??= this;
}
}