2026-08-14 16:05:32 +02:00
|
|
|
class_name PlanetSurfaceProfiles
|
|
|
|
|
extends RefCounted
|
|
|
|
|
|
|
|
|
|
const DEFAULT_PROFILE_ID: String = "rocky"
|
|
|
|
|
const PROFILES: Dictionary = {
|
|
|
|
|
"rocky": preload("res://RockySurfaceProfile.tres"),
|
|
|
|
|
"gas": preload("res://GasSurfaceProfile.tres"),
|
2026-08-16 13:13:38 +02:00
|
|
|
"void": preload("res://VoidSurfaceProfile.tres"),
|
2026-08-14 16:05:32 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
static func get_profile(profile_id: String) -> Resource:
|
|
|
|
|
return PROFILES.get(profile_id, PROFILES[DEFAULT_PROFILE_ID])
|