Renamed globals to autoloads for clarity

This commit is contained in:
2026-08-29 18:30:18 -05:00
parent e8378cb6fb
commit c4313007b4
5 changed files with 2 additions and 2 deletions

15
autoloads/globals.gd Normal file
View File

@@ -0,0 +1,15 @@
extends Node
var game_data: GameData
var multiplayer_data: MultiplayerData
func cache_invalidate_load_resource(target: String) -> Resource:
# NOTE: Deep replace version b/c we don't want to use an autoloads
# that does this replasce before any nodes actually load.
ResourceLoader.load(target, "", ResourceLoader.CACHE_MODE_REPLACE_DEEP)
# NOTE: Let prior call propigate naturally. (Unsure when...)
# Enforce new script/node from pck called here.
return ResourceLoader.load(target, "", ResourceLoader.CACHE_MODE_IGNORE_DEEP)