示例#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);
 }