From 71d30039daf75d7a9846bdb424780f20b37004ea Mon Sep 17 00:00:00 2001 From: "Tristan B. Velloza Kildaire" Date: Sat, 18 Mar 2023 13:05:57 +0200 Subject: [PATCH] Formatting - Changed name of enum `simpleColor` to `SimpleColor` to adhere to D naming conventions --- source/birchwood/protocol/formatting.d | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/birchwood/protocol/formatting.d b/source/birchwood/protocol/formatting.d index 2d948b7..0c82870 100644 --- a/source/birchwood/protocol/formatting.d +++ b/source/birchwood/protocol/formatting.d @@ -21,7 +21,7 @@ enum ascii_color_code = '\x03'; enum hex_color_code = '\x04'; // Simple color codes -enum simpleColor: string { +enum SimpleColor: string { WHITE = "00", BLACK = "01", BLUE = "02", @@ -84,13 +84,13 @@ string set_foreground_background(string fg, string bg) { // Generates a string that changes the foreground color (except enum) pragma(inline) -string set_foreground(simpleColor color) { +string set_foreground(SimpleColor color) { return ascii_color_code ~ color; } // Generate a string that sets the foreground and background color (except enum) pragma(inline) -string set_foreground_background(simpleColor fg, simpleColor bg) { +string set_foreground_background(SimpleColor fg, SimpleColor bg) { return ascii_color_code ~ fg ~ "," ~ bg; }