diff --git a/NebulaAPI/GameState/INetworkProvider.cs b/NebulaAPI/GameState/INetworkProvider.cs index 50a676a05..0d7d450e8 100644 --- a/NebulaAPI/GameState/INetworkProvider.cs +++ b/NebulaAPI/GameState/INetworkProvider.cs @@ -20,6 +20,14 @@ public interface INetworkProvider : IDisposable /// void SendPacket(T packet) where T : class, new(); + /// + /// Send a packet to all players that match a predicate + /// + /// + /// + /// + public void SendIfCondition(T packet, Predicate condition) where T : class, new(); + /// /// Broadcast packet to all Players within current star system /// diff --git a/NebulaModel/Networking/IServer.cs b/NebulaModel/Networking/IServer.cs index febec551d..6facb3dbb 100644 --- a/NebulaModel/Networking/IServer.cs +++ b/NebulaModel/Networking/IServer.cs @@ -25,12 +25,4 @@ public interface IServer : INetworkProvider public void Stop(); void Disconnect(INebulaConnection conn, DisconnectionReason reason, string reasonMessage = ""); - - /// - /// Send a packet to all players that match a predicate - /// - /// - /// - /// - public void SendIfCondition(T packet, Predicate condition) where T : class, new(); }