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 Hexagon(Point mapPosition, float hexWidth = 1.0f) { MapPos = mapPosition; Geometry = new HexGeometry(mapPosition, hexWidth); Height = 0; }