public bool Match(int x, int y, TileResultCollector <TRenderTile, TContext> onMatchFound) { if (filterCondition(x, y)) { return(matcher.Match(x, y, onMatchFound)); } return(false); }
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)); }