Files
Dawn-Godot/scripts/Singletons/Overworld.gd
2025-05-05 22:21:51 -05:00

13 lines
249 B
GDScript

extends Node
const MAPS:Dictionary[String, String] = {
"TestMap": "res://scenes/Maps/TestMap.tscn"
};
var currentMap:String = "";
func setMap(map:String) -> void:
if MAPS.has(map):
currentMap = map
else:
push_error("Map not found: " + map)