From dfd5c1debe8f7820a7789e412c7c168b0982256d Mon Sep 17 00:00:00 2001 From: Spencer Killen Date: Fri, 9 Dec 2022 05:25:24 +0000 Subject: [PATCH] Add 'GDscript Autoloads' --- GDscript-Autoloads.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 GDscript-Autoloads.md diff --git a/GDscript-Autoloads.md b/GDscript-Autoloads.md new file mode 100644 index 0000000..b86bad0 --- /dev/null +++ b/GDscript-Autoloads.md @@ -0,0 +1,14 @@ +```gd +onready var util = get_node("/root/Util") +``` +File util.gd + +Contains common helper functions that can be used in multiple places in the codebase + +```gd +onready var global_event_bus = get_node("/root/GlobalEventBus") +``` +File: global_event_bus +Usage Example: effects/SinkBlock.gd + +A place to put signals that need to be sent to between objects that don't share a scene \ No newline at end of file