using System.Collections.Generic; using Engine.Core; namespace Engine.Systems.Network; public interface INetworkCommunicator { Event OnConnectionEstablished { get; } Event OnConnectionAbolished { get; } IReadOnlyDictionary Connections { get; } INetworkCommunicator Stop(); INetworkCommunicator SubscribeToPackets(Event.EventHandler callback); INetworkCommunicator UnsubscribeFromPackets(Event.EventHandler callback); }