public LidgrenClientNetworkSession(INetClient netClient, ILoggerFactory loggerFactory)
        {
            _netClient = netClient;
            _logger = loggerFactory.GetLogger(this.GetType());

            ClientDisconnected += (obj, args) => _logger.Info("ZAK HERE: Client disconnected");
        }
Пример #2
0
        public Client(IPEndPoint serverAddress, IController controller, INetClient client)
        {
            _controller = controller;

            _client = client;
            _client.Start();

            _client.Connect(serverAddress);

            Scene = new Scene();
            Scene.Gravity = new Vector2();
        }
 public void SetUp()
 {
     stubNetClient = MockRepository.GenerateStub<INetClient>();
     clientNetworkSession = new LidgrenClientNetworkSession(stubNetClient, DummyLogger.Factory);
 }