Drive planets from definitions
This commit is contained in:
parent
2f68515f33
commit
02643c76c4
22 changed files with 183 additions and 82 deletions
|
|
@ -84,9 +84,7 @@ func _spawn_chunk_planet(chunk: Vector2i) -> void:
|
|||
planet.position = origin + data.local_pos
|
||||
planet.planet_name = data.name
|
||||
planet.shape_seed = data.shape_seed
|
||||
planet.planet_type = String(data.get("planet_type", "rocky"))
|
||||
planet.resource_type = String(data.get("resource_type", "ore"))
|
||||
planet.surface_profile_id = String(data.get("surface_profile_id", "rocky"))
|
||||
planet.definition_id = String(data.get("definition_id", "rocky"))
|
||||
# Deferred: update_chunks() can run synchronously from inside a
|
||||
# parent's own _ready() chain (forced once right after the fleet is
|
||||
# positioned, to avoid a pop-in on scene load) - Godot refuses a
|
||||
|
|
|
|||
Loading…
Reference in a new issue