Files

13 lines
382 B
GDScript
Raw Permalink Normal View History

2026-09-12 11:01:37 +02:00
class_name MapCatalog
extends RefCounted
const IDS := ["quarry", "dust2"]
const NAMES := ["Relay Quarry · Industrie-Depot", "Dust 2 · CS 1.6"]
static func title(id: String) -> String:
var index := IDS.find(id)
return NAMES[index] if index >= 0 else "Unbekannte Map"
static func create(id: String) -> RelayArena:
return DustArena.new() if id == "dust2" else RelayArena.new()