Files

13 lines
382 B
GDScript

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()