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); }
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); } }
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); } }
private void ProcessSendData(CommandSendData command) { networkPeer.SendData(command.data, command.options); }