コード例 #1
0
 public void UpdateMapTerrain(CombinedMapData mapToUpdate)
 {
     MapDescriptor desc = mapToUpdate.GetMapDescriptor();
     if (!TerrainToProcess.Contains(desc))
     {
         desc.Tag = mapToUpdate;
         TerrainToProcess.Enqueue(desc);
     }
 }
コード例 #2
0
 public void UpdateMapTexture(CombinedMapData mapToUpdate)
 {
     if (mapToUpdate.ZoomLevel > EarthTiles.MaxGoogleZoom) mapToUpdate.ZoomLevel = EarthTiles.MaxGoogleZoom;
     MapDescriptor desc = mapToUpdate.GetMapDescriptor();
     if (!TexturesToProcess.Contains(desc))
         TexturesToProcess.Enqueue(desc);
 }
コード例 #3
0
 public bool Equals(CombinedMapData other)
 {
     if (!other.GetMapDescriptor().Equals(desc)) return false;
     if (other.TextureMipMaps != this.TextureMipMaps) return false;
     return base.Equals(other);
 }