/// <summary> /// Adds an area / polygon to the mapdata in <see cref="graph"/>. /// It is saved according to <see cref="IGraph.AddArea(List{Vector2}, bool)"/>. /// </summary> /// <param name="corner">List of points that are the corners of the polygon.</param> /// <param name="isObstacle">true of the polygon should be treaded as an obstacle, otherwise false.</param> public void AddArea(List <Vector2> corner, bool isObstacle) { graph.AddArea(corner, isObstacle); }