spaceship/PlanetSurfaceProfiles.gd
2026-08-16 20:14:29 +02:00

14 lines
470 B
GDScript

class_name PlanetSurfaceProfiles
extends RefCounted
const DEFAULT_PROFILE_ID: String = "rocky"
const PROFILES: Dictionary = {
"rocky": preload("res://RockySurfaceProfile.tres"),
"gas": preload("res://GasSurfaceProfile.tres"),
"void": preload("res://VoidSurfaceProfile.tres"),
"research_lab": preload("res://ResearchLabSurfaceProfile.tres"),
}
static func get_profile(profile_id: String) -> Resource:
return PROFILES.get(profile_id, PROFILES[DEFAULT_PROFILE_ID])