feat!: added broadcast & routing support for NetworkManager
It used to only route or broadcast, now the same packet can be both routed to it's own behaviour AND at the same time the broadcast listeners can get alerted of the same package such as universe-wide managers
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
namespace Engine.Systems.Network;
|
||||
|
||||
public interface IPacketListenerClientEntity<T> : INetworkEntity where T : IEntityNetworkPacket
|
||||
{
|
||||
void OnEntityClientPacketArrived(IConnection sender, T packet);
|
||||
}
|
||||
@@ -0,0 +1,6 @@
|
||||
namespace Engine.Systems.Network;
|
||||
|
||||
public interface IPacketListenerServerEntity<T> : INetworkEntity where T : IEntityNetworkPacket
|
||||
{
|
||||
void OnEntityServerPacketArrived(IConnection sender, T packet);
|
||||
}
|
||||
Reference in New Issue
Block a user