public Hexagon(HexRecord hexRecord, float hexWidth = 1.0f) { MapPos = hexRecord.MapPos; Geometry = new HexGeometry(hexRecord.MapPos, hexWidth); Height = hexRecord.Heights[(int)HexagonPoint.Center]; Geometry.AdjustHeights(hexRecord.Heights); IsForest = hexRecord.Forested; }
public void ToLong(int[] input, ulong expected) { Assert.AreEqual(expected, HexRecord.ToLong(input)); }
public void ToIntArray(ulong input, int[] expected) { Assert.AreEqual(expected, HexRecord.ToIntArray(input)); }