public static void DrawRegion(Location region, Color color, int width = 2)
{
if (!Regions.ContainsKey(region)) { Drawing.DrawText(0, 0, Color.Red, "Region Not In Database!"); return;}
Point[] polygon = Regions[region];
for (var i = 0; i <= polygon.Length - 1; i++)
{
var nextIndex = (polygon.Length - 1 == i) ? 0 : (i + 1);
Vector2 start = Drawing.WorldToScreen(new Vector3(polygon[i].X, polygon[i].Y, 50));
Vector2 end = Drawing.WorldToScreen(new Vector3(polygon[nextIndex].X, polygon[nextIndex].Y, 50));
Drawing.DrawLine(start, end, width, color);
}
Drawing.DrawText(10, Drawing.Height - 20, Color.Red, "Region: " + region, 15);
}