From a01c4a1d514828cae5b64c4e8b2ca1f6ef5307b0 Mon Sep 17 00:00:00 2001 From: Colin McMillen Date: Mon, 12 Jul 2021 14:58:29 -0400 Subject: [PATCH] add Debug.AddPoint, enable debug by default --- Shared/Debug.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Shared/Debug.cs b/Shared/Debug.cs index 3237750..5a429b1 100644 --- a/Shared/Debug.cs +++ b/Shared/Debug.cs @@ -27,7 +27,7 @@ namespace SemiColinGames { } } - public static bool Enabled = false; + public static bool Enabled = true; // This is a LinkedList instead of a List because SetFpsText() adds to its front. static readonly LinkedList toasts = new LinkedList(); // Lines in excess of MAX_LINES get dropped on the floor. @@ -91,6 +91,11 @@ namespace SemiColinGames { AddRect(rect, color); } + [Conditional("DEBUG")] + public static void AddPoint(Vector2 v, Color color) { + AddPoint(v.ToPoint(), color); + } + [Conditional("DEBUG")] public static void AddPoint(Point p, Color color) { AddLine(p.X, p.Y - 2, p.X, p.Y + 1, color);