From 54483fa2e5da0150d2efa78727edc9e29f40e4a0 Mon Sep 17 00:00:00 2001 From: Karim Rizk Date: Fri, 5 Jan 2024 16:48:56 +0200 Subject: [PATCH] Move method to correct file --- NebulaAPI/GameState/INetworkProvider.cs | 8 ++++++++ NebulaModel/Networking/IServer.cs | 8 -------- 2 files changed, 8 insertions(+), 8 deletions(-) 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(); }