Generate a mask from a region of tiles based on a condition.
Same as createMask, but specify the offset of the mask's center rather than the top-left corner.
Convenience function to wrap a RectGrid around a 2D array.
A grid of rectangular tiles. Wraps a 2D array to provide grid-based access to tiles.
1 import std.container : Array; 2 3 static assert(isArray2D!(int[][])); 4 static assert(isArray2D!(char[3][5])); 5 static assert(isArray2D!(Array!(Array!int)));
<a href="http://opensource.org/licenses/MIT">MIT</a>
Copyright © 2015, Ryan Roden-Corrent
A grid wraps a 2D array to provide specialized grid-based functionality.
Currently, the only grid type is RectGrid, which can serve as the base for an orthogonal or isometric map. HexGrid may be added in a later version to support hexagonal maps.