using Cryville.EEW.Core.Map; using System.IO; using UnityEngine; namespace Cryville.EEW.Unity.Map { sealed class HillshadeMapTileCacheManager : MapTileCacheManager { protected override MapTileBitmapHolder CreateBitmapHolder(MapTileIndex index) => new( index, GameObject.Instantiate(PrefabBitmapHolder, Parent, false), new($"https://services.arcgisonline.com/arcgis/rest/services/Elevation/World_Hillshade/MapServer/tile/{index.Z}/{index.NY}/{index.NX}.png") ); protected override string GetCacheFilePath(MapTileIndex index) => Path.Combine(CacheDir, $"map_hillshade/{index.Z}/{index.NX}/{index.NY}"); } }