HexMapLibrary
|
Contains methods to create differently shaped map layouts. Can be used to easily initialize a HexMap instance More...
Static Public Member Functions | |
static Dictionary< Vector3Int, int > | CreateHexagonalShapedMap (int radius) |
returns indexed positions which form a flat-top hexagonal shaped map with the specified radius More... | |
static Dictionary< Vector3Int, int > | CreateRectangularShapedMap (Vector2Int mapSize) |
returns indexed positions which form a rectangular shaped map with the specified width(x) and length(y). Most common map shape for periodic maps More... | |
static Dictionary< Vector3Int, int > | CreateRectangularShapedMapOddRowsOneShorter (Vector2Int mapSize) |
returns indexed positions which form a rectangular shaped map with the specified width(x) and length(y). Odd-numbered rows are one tile shorter Best used for non-periodic maps where symmetry is important More... | |
static Dictionary< Vector3Int, int > | CreateTriangularShapedMap (int sideLength) |
returns indexed positions which form a equilateral triangular map with the specified side length More... | |
Contains methods to create differently shaped map layouts. Can be used to easily initialize a HexMap instance
TODO add detailed description here
|
static |
returns indexed positions which form a flat-top hexagonal shaped map with the specified radius
|
static |
returns indexed positions which form a rectangular shaped map with the specified width(x) and length(y). Most common map shape for periodic maps
|
static |
returns indexed positions which form a rectangular shaped map with the specified width(x) and length(y). Odd-numbered rows are one tile shorter Best used for non-periodic maps where symmetry is important
|
static |
returns indexed positions which form a equilateral triangular map with the specified side length