add Debug.AddLine() function that takes in integer coordinates instead of Points

GitOrigin-RevId: 145f4f076376bc63e6e899db49cdcfe10beacddf
This commit is contained in:
Colin McMillen 2020-01-27 21:48:50 -05:00
parent 8c6b0e3c92
commit 57e9ea558a

View File

@ -70,6 +70,10 @@ namespace SemiColinGames {
lines.Add(new DebugLine(start, end, color)); 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) { public static void DrawToasts(SpriteBatch spriteBatch, SpriteFont font) {
if (!Enabled) { if (!Enabled) {
return; return;