public static NetworkCommunicator ReadNetworkPeerReferenceFromPacket( ref bool bufferReadValid, bool canReturnNull = false) { int index = GameNetworkMessage.ReadIntFromPacket(CompressionBasic.PlayerCompressionInfo, ref bufferReadValid); return(((index < 0 ? 0 : (!GameNetworkMessage.IsClientMissionOver ? 1 : 0)) & (bufferReadValid ? 1 : 0)) != 0 ? GameNetwork.FindNetworkPeer(index) : (NetworkCommunicator)null); }