예제 #1
0
        public bool Match(int x, int y, TileResultCollector <TRenderTile, TContext> onMatchFound)
        {
            if (filterCondition(x, y))
            {
                return(matcher.Match(x, y, onMatchFound));
            }

            return(false);
        }
예제 #2
0
        public bool Match(int x, int y, TileResultCollector <TRenderTile, TContextTarget> onMatchFound)
        {
            void Collect(SpritePosition pos, TRenderTile result, TContextSource context)
            {
                onMatchFound(pos, result, Convert(x, y, result, context));
            }

            return(parent.Match(x, y, Collect));
        }