spaceship/PlanetSetup.gd

16 lines
776 B
GDScript3
Raw Normal View History

class_name PlanetSetup
extends Resource
# A hand-authored capture-point/enemy layout for a planet surface. Chosen
# deterministically per planet (see PlanetSetups.setup_for_planet) rather
# than generated - #40 wants curated setups, not procedural ones - and
# stored as a committed .tres under res://PlanetSetups/, not in a save.
@export var setup_id: String = ""
@export var display_name: String = ""
# Which PlanetSurfaceProfiles id (e.g. "rocky", "gas") this setup was
# authored for; only setups matching a planet's own profile are eligible.
@export var surface_profile_id: String = "rocky"
# Surface-local positions (the fleet lands at Vector2.ZERO).
@export var capture_points: PackedVector2Array = PackedVector2Array()
@export var enemy_spawns: Array[Resource] = []