Example #1
0
        static WangBlobTileSet()
        {
            var indexes = new[]
            {
                0,
                1, 4, 16, 64,
                5, 20, 80, 65,
                7, 28, 112, 193,
                17, 68,
                21, 84, 81, 69,
                23, 92, 113, 197,
                29, 116, 209, 71,
                31, 124, 241, 199,
                85,
                87, 93, 117, 213,
                95, 125, 245, 215,
                119, 221,
                127, 253, 247, 223,
                255
            };

            foreach (var index in indexes)
            {
                var tile = new WangBlobTile(index, true);
                _tilesByIndex.Add(index, tile);
            }
        }
Example #2
0
 public static IReadOnlyList <WangBlobTile> GetPossibleMatches(WangBlobTile north, WangBlobTile south, WangBlobTile east, WangBlobTile west, in Coordinate position, Size size)