online multiplayer chess game (note server currently down)
Diffstat (limited to 'ui/Log.gd')
| -rw-r--r-- | ui/Log.gd | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/ui/Log.gd b/ui/Log.gd deleted file mode 100644 index 83e3e07..0000000 --- a/ui/Log.gd +++ /dev/null @@ -1,31 +0,0 @@ -extends Node -class_name Log - - -static func info(information) -> void: # logs the input string - print(to_str(information)) - - -static func debug(information) -> void: # logs the input string on debug builds - if OS.is_debug_build(): - print(to_str(information)) - - -static func err(information) -> void: # logs the input string to stderr - printerr(information) - - -static func to_str(arg) -> String: - if typeof(arg) == TYPE_ARRAY: - return arr2str(arg) - elif typeof(arg) == TYPE_STRING: - return arg - else: - return str(arg) - - -static func arr2str(arr: Array) -> String: - var string := "" - for i in arr: - string += str(i) + " " - return string |