This commit is contained in:
2026-05-14 13:17:23 +02:00
parent 37f4ea3b4e
commit 70bba45b8a
18 changed files with 293 additions and 71 deletions

23
scripts/EventBus.cs Normal file
View File

@@ -0,0 +1,23 @@
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;
}
}