13 lines
249 B
GDScript
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) |