From 57e9ea558a46f824f4f30991a5b16f2b83b6d494 Mon Sep 17 00:00:00 2001 From: Colin McMillen Date: Mon, 27 Jan 2020 21:48:50 -0500 Subject: [PATCH] add Debug.AddLine() function that takes in integer coordinates instead of Points GitOrigin-RevId: 145f4f076376bc63e6e899db49cdcfe10beacddf --- Shared/Debug.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Shared/Debug.cs b/Shared/Debug.cs index 741e0a0..23117ee 100644 --- a/Shared/Debug.cs +++ b/Shared/Debug.cs @@ -70,6 +70,10 @@ namespace SemiColinGames { lines.Add(new DebugLine(start, end, color)); } + public static void AddLine(int p1x, int p1y, int p2x, int p2y, Color color) { + lines.Add(new DebugLine(new Point(p1x, p1y), new Point(p2x, p2y), color)); + } + public static void DrawToasts(SpriteBatch spriteBatch, SpriteFont font) { if (!Enabled) { return;