public void Apply(int x, int z, int w, int d, CellPred pred) { int endx = x + w, endz = z + d; ClampSize(ref endx, ref endz); Clamp(ref x, ref z); for (int curx = x; curx < endx; ++curx) { for (int curz = z; curz < endz; ++curz) { pred(curx, curz, states[curx, curz], renderers[curx, curz]); } } }
public void Apply(CellPred pred) { Apply(0, 0, width, depth, pred); }