asd
This commit is contained in:
23
scripts/EventBus.cs
Normal file
23
scripts/EventBus.cs
Normal 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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user