Пример #1
0
 private void ProcessSendData(CommandSendData command)
 {
   CommandReceiveData commandReceiveData = new CommandReceiveData(command.sender.RemoteUniqueIdentifier, command.data);
   commandReceiveData.gamer = (NetworkGamer) command.sender;
   foreach (LocalNetworkGamer localNetworkGamer in (ReadOnlyCollection<LocalNetworkGamer>) this._localGamers)
     localNetworkGamer.receivedData.Enqueue(commandReceiveData);
 }
Пример #2
0
        private void ProcessSendData(CommandSendData command)
        {
            networkPeer.SendData(command.data, command.options);

            CommandReceiveData crd = new CommandReceiveData(command.sender.RemoteUniqueIdentifier,
                                                            command.data);

            crd.gamer = command.sender;
            foreach (LocalNetworkGamer gamer in _localGamers)
            {
                gamer.receivedData.Enqueue(crd);
            }
        }
Пример #3
0
		private void ProcessSendData(CommandSendData command)
		{
			networkPeer.SendData(command.data, command.options);

			NetworkGamer sender;
			CommandReceiveData crd = new CommandReceiveData (command.sender.RemoteUniqueIdentifier,
								command.data);
			crd.gamer = command.sender;
			foreach(LocalNetworkGamer gamer in _localGamers) {
				gamer.receivedData.Enqueue(crd);
			}
		}
Пример #4
0
 private void ProcessSendData(CommandSendData command)
 {
     networkPeer.SendData(command.data, command.options);
 }