Beispiel #1
0
        string Format(DiagonalTileSelectionKey k,
                      ITileTagEntrySelectionFactory <bool> formatProvider,
                      string tagFormat)
        {
            var n = formatProvider.Lookup(k.NorthWest).Tag;
            var e = formatProvider.Lookup(k.NorthEast).Tag;
            var s = formatProvider.Lookup(k.SouthEast).Tag;
            var w = formatProvider.Lookup(k.SouthWest).Tag;

            return(string.Format(tagFormat, n, e, s, w));
        }
Beispiel #2
0
        public bool TryFind(string tag, DiagonalTileSelectionKey selector, out TRenderTile tile)
        {
            var format = suffixMapping[selector.LinearIndex];

            return(baseRegistry.TryFind(string.Format(format, tag), out tile));
        }