Exemplo n.º 1
0
 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);
 }
Exemplo n.º 2
0
        public byte[] GetTile(TileKey tileKey)
        {
            Dictionary <string, string> keyValuePairs = GetTilesDictionary();

            return(GetTile(tileKey, keyValuePairs));
        }