1
Fork 0
mirror of https://github.com/Steffo99/hella-farm.git synced 2024-11-24 00:54:22 +00:00
hella-farm/log.gd

25 lines
609 B
GDScript3
Raw Normal View History

2024-04-13 21:25:47 +00:00
class_name Log
## Logging utilities
## Print to standard output in cyan.
2024-04-13 21:25:47 +00:00
##
## Pass self to the first parameter.
static func p(obj: Node, message: String) -> void:
print_rich("[color=cyan]{%s} %s[/color]" % [obj, message])
## Print to standard output in yellow.
##
## Pass self to the first parameter.
static func w(obj: Node, message: String) -> void:
print_rich("[color=yellow]{%s} %s[/color]" % [obj, message])
## Print to standard output in red.
##
## Pass self to the first parameter.
static func e(obj: Node, message: String) -> void:
print_rich("[color=red]{%s} %s[/color]" % [obj, message])