capitalize struct field names
GitOrigin-RevId: 6b4cca3873a88c308a98dac9282959b13ab840bb
This commit is contained in:
parent
cb66a32a24
commit
3246f8ea45
@ -5,24 +5,24 @@ using System.Collections.Generic;
|
|||||||
namespace SemiColinGames {
|
namespace SemiColinGames {
|
||||||
static class Debug {
|
static class Debug {
|
||||||
struct DebugRect {
|
struct DebugRect {
|
||||||
public Rectangle rect;
|
public Rectangle Rect;
|
||||||
public Color color;
|
public Color Color;
|
||||||
|
|
||||||
public DebugRect(Rectangle rect, Color color) {
|
public DebugRect(Rectangle rect, Color color) {
|
||||||
this.rect = rect;
|
Rect = rect;
|
||||||
this.color = color;
|
Color = color;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
struct DebugLine {
|
struct DebugLine {
|
||||||
public Point start;
|
public Point Start;
|
||||||
public Point end;
|
public Point End;
|
||||||
public Color color;
|
public Color Color;
|
||||||
|
|
||||||
public DebugLine(Point start, Point end, Color color) {
|
public DebugLine(Point start, Point end, Color color) {
|
||||||
this.start = start;
|
Start = start;
|
||||||
this.end = end;
|
End = end;
|
||||||
this.color = color;
|
Color = color;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -83,9 +83,9 @@ namespace SemiColinGames {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
foreach (var debugRect in rects) {
|
foreach (var debugRect in rects) {
|
||||||
var rect = debugRect.rect;
|
var rect = debugRect.Rect;
|
||||||
rect.Offset(-camera.Left, 0);
|
rect.Offset(-camera.Left, 0);
|
||||||
var color = debugRect.color;
|
var color = debugRect.Color;
|
||||||
// top side
|
// top side
|
||||||
spriteBatch.Draw(
|
spriteBatch.Draw(
|
||||||
whiteTexture, new Rectangle(rect.Left, rect.Top, rect.Width, 1), color);
|
whiteTexture, new Rectangle(rect.Left, rect.Top, rect.Width, 1), color);
|
||||||
|
Loading…
Reference in New Issue
Block a user