Ejemplo n.º 1
0
 public TileEntry(string url, Tile tile)
 {
     this.url = url;
     if (tile == null)
     {
         throw new ArgumentNullException("tile");
     }
     this.tile = tile;
     this.jobCompleteHandler = new Job.JobCompleteHandler(TileDownloader.Instance.JobTerminationEvent);
 }
Ejemplo n.º 2
0
            /// <summary>
            /// Initializes a new instance of the <see cref="UnitySlippyMap.Map.TileDownloader+TileEntry"/> class.
            /// </summary>
            public TileEntry(int x, int y, int zoom, string url)
            {
                this.x    = x;
                this.y    = y;
                this.zoom = zoom;
                this.url  = url;
                string extension = Path.GetExtension(url);

                if (extension.Contains("?"))
                {
                    extension = extension.Substring(0, extension.IndexOf('?'));
                }

                this.cacheFileName      = TileDownloaderBehaviour.tilePath + "/" + zoom + "-" + x + "-" + y + extension;
                this.jobCompleteHandler = new Job.JobCompleteHandler(TileDownloaderBehaviour.Instance.JobTerminationEvent);
            }
Ejemplo n.º 3
0
 public TileEntry()
 {
     this.jobCompleteHandler = new Job.JobCompleteHandler(TileDownloader.Instance.JobTerminationEvent);
 }
Ejemplo n.º 4
0
		public TileEntry(string url, Tile tile)
		{
			this.url = url;
            if (tile == null)
                throw new ArgumentNullException("tile");
            this.tile = tile;
            this.jobCompleteHandler = new Job.JobCompleteHandler(TileDownloader.Instance.JobTerminationEvent);
		}
Ejemplo n.º 5
0
		public TileEntry()
		{
            this.jobCompleteHandler = new Job.JobCompleteHandler(TileDownloader.Instance.JobTerminationEvent);
		}
Ejemplo n.º 6
0
 public TileEntry(string url, Material material)
 {
     this.url = url;
     this.material = material;
     this.jobCompleteHandler = new Job.JobCompleteHandler(TileDownloader.Instance.JobTerminationEvent);
 }