Compose planet surfaces from profiles
This commit is contained in:
parent
bcbf1b6515
commit
2f68515f33
19 changed files with 123 additions and 39 deletions
12
PlanetSurfaceProfiles.gd
Normal file
12
PlanetSurfaceProfiles.gd
Normal file
|
|
@ -0,0 +1,12 @@
|
|||
class_name PlanetSurfaceProfiles
|
||||
extends RefCounted
|
||||
|
||||
const DEFAULT_PROFILE_ID: String = "rocky"
|
||||
const PROFILES: Dictionary = {
|
||||
"rocky": preload("res://RockySurfaceProfile.tres"),
|
||||
"gas": preload("res://GasSurfaceProfile.tres"),
|
||||
}
|
||||
|
||||
|
||||
static func get_profile(profile_id: String) -> Resource:
|
||||
return PROFILES.get(profile_id, PROFILES[DEFAULT_PROFILE_ID])
|
||||
Loading…
Reference in a new issue