Private ReadonlycoordPrivate ReadonlycenterPrivate ReadonlyiterPrivateactivePrivate ReadonlytilesetPrivate ReadonlyrandomConvert coordinate map to a simple object for storage and testing.
An object representing all coordinates in the map. Keys are comma delineated coordinates.
Convert coordinate map to an ascii representation. Only works for 2D chunks at the moment.
An ascii based representation of the map.
PrivateselectPrivatefindFind the smallest set in the coordinate map and return it, or null if no more sets exist.
A coord/tileset pair or null
PrivategetGet the number for possibilities for a coordinate via count.
The coordinate to calculate.
the count of possibilities for a coordinate.
PrivatereduceReduce the possibilities of the entire chunk
PrivatereducePrivatereduceReduce a tileset by a neighboring tile.
The neighboring tile
The tileset to reduce
The number of dimensions
The dimension of the edge
The offset from the position
PrivatereduceReduce a tileset by a neighboring tile.
The neighboring tileset
The tileset to reduce
The number of dimensions
The dimension of the edge
The offset from the position
A chunk is a block of the dimension which can be used to observe part of a tile generated world.