Drive planets from definitions

This commit is contained in:
Loïc Wisniewski 2026-08-14 16:13:24 +02:00
commit 02643c76c4
22 changed files with 183 additions and 82 deletions

View file

@ -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