mirror of
https://github.com/Relintai/pandemonium_demo_projects.git
synced 2024-12-21 13:56:50 +01:00
21 lines
298 B
GDScript
21 lines
298 B
GDScript
extends Node
|
|
|
|
|
|
enum LogType {
|
|
LOG,
|
|
ERROR,
|
|
}
|
|
|
|
signal entry_logged(message, type)
|
|
|
|
|
|
func print_log(message):
|
|
print(message)
|
|
emit_signal("entry_logged", message, LogType.LOG)
|
|
|
|
|
|
func print_error(message):
|
|
push_error(message)
|
|
printerr(message)
|
|
emit_signal("entry_logged", message, LogType.ERROR)
|