Consistent SYSTEMS

This commit is contained in:
2025-05-25 14:37:30 -05:00
parent 48f3e57a44
commit 470fd62e2f
34 changed files with 65 additions and 106 deletions

View File

@@ -0,0 +1,16 @@
class_name OverworldSystem extends Node
const MAPS:Dictionary[String, String] = {
"TestMap": "res://scenes/Maps/TestMap/TestMap.tscn"
};
var currentMap:String = "";
signal mapChanged(mapHandle:String, mapScene:String);
func setMap(map:String) -> void:
assert(MAPS.has(map), "Map not found: " + map)
if currentMap == map:
return
currentMap = map
mapChanged.emit(map, MAPS[map])