add: MessageBus

This commit is contained in:
h z
2025-03-03 11:08:25 +00:00
parent d2f0ab8153
commit 684763f0cc
15 changed files with 211 additions and 64 deletions

View File

@@ -0,0 +1,15 @@
using Godot;
using Polonium.MessageManager;
namespace Polonium.Interfaces;
public interface IMessageClient
{
string PostCode { get; set; }
void ReceiveMessage(PoloniumMessage msg);
delegate void MessageSentEventHandler(PoloniumMessage msg);
event MessageSentEventHandler MessageSent;
public void SendMessage(PoloniumMessage msg);
}

View File

@@ -1,8 +1,9 @@
using Polonium.MessageManager;
using Polonium.Resources;
namespace Polonium.Interfaces;
public interface IPoloniumFactory
{
public SignalHeader CreateSignalHeader();
public MessageHeader CreateMessageHeader();
}