public byte[] GetTile(TileKey tileKey, Dictionary <string, string> keyValuePairs) { byte[] bytes = Array.Empty <byte>(); if (keyValuePairs.ContainsKey(tileKey.ToString())) { ByteRange byteRange = new(keyValuePairs[tileKey.ToString()]); bytes = GetData(byteRange); } return(bytes); }
public byte[] GetTile(TileKey tileKey) { Dictionary <string, string> keyValuePairs = GetTilesDictionary(); return(GetTile(tileKey, keyValuePairs)); }