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