public void InjectInto(MaydayClientNetworkListener gameClientListener = null, INetworkServerListener serverListener = null) { foreach (var consumer in _packetConsumers) { serverListener?.AddConsumer(consumer); gameClientListener?.AddConsumer(consumer); } }
public void SetServerNetworkListener(INetworkServerListener networkServerListener) => NetworkServerListener = networkServerListener;