From 3246f8ea45b629bc45ecc1dd9e4c0404593c3e66 Mon Sep 17 00:00:00 2001 From: Colin McMillen Date: Thu, 23 Jan 2020 14:31:00 -0500 Subject: [PATCH] capitalize struct field names GitOrigin-RevId: 6b4cca3873a88c308a98dac9282959b13ab840bb --- Shared/Debug.cs | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/Shared/Debug.cs b/Shared/Debug.cs index e33b371..ada399d 100644 --- a/Shared/Debug.cs +++ b/Shared/Debug.cs @@ -5,24 +5,24 @@ using System.Collections.Generic; namespace SemiColinGames { static class Debug { struct DebugRect { - public Rectangle rect; - public Color color; + public Rectangle Rect; + public Color Color; public DebugRect(Rectangle rect, Color color) { - this.rect = rect; - this.color = color; + Rect = rect; + Color = color; } } struct DebugLine { - public Point start; - public Point end; - public Color color; + public Point Start; + public Point End; + public Color Color; public DebugLine(Point start, Point end, Color color) { - this.start = start; - this.end = end; - this.color = color; + Start = start; + End = end; + Color = color; } } @@ -83,9 +83,9 @@ namespace SemiColinGames { return; } foreach (var debugRect in rects) { - var rect = debugRect.rect; + var rect = debugRect.Rect; rect.Offset(-camera.Left, 0); - var color = debugRect.color; + var color = debugRect.Color; // top side spriteBatch.Draw( whiteTexture, new Rectangle(rect.Left, rect.Top, rect.Width, 1), color);