From 22a0fab70fab728d2d6a7a4599bc7a200131d8a4 Mon Sep 17 00:00:00 2001 From: Colin McMillen Date: Mon, 16 Dec 2019 22:02:36 -0500 Subject: [PATCH] add Debug.WriteLine delegate GitOrigin-RevId: 485ca1507f040ac066e001388d7af84adad24efb --- Jumpy.Shared/Debug.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Jumpy.Shared/Debug.cs b/Jumpy.Shared/Debug.cs index 79b4401..1cce112 100644 --- a/Jumpy.Shared/Debug.cs +++ b/Jumpy.Shared/Debug.cs @@ -19,7 +19,14 @@ namespace Jumpy { static List rects = new List(); static Texture2D whiteTexture; + public static void WriteLine(string s) { + System.Diagnostics.Debug.WriteLine(s); + } + public static void WriteLine(string s, params object[] args) { + System.Diagnostics.Debug.WriteLine(s, args); + } + public static void Initialize(GraphicsDevice graphics) { whiteTexture = new Texture2D(graphics, 1, 1); whiteTexture.SetData(new Color[] { Color.White });