Files
seeding-planets/entities/plants/scripts/texture_builder/plant_attach_builder.gd
2026-02-20 14:22:13 +01:00

11 lines
340 B
GDScript

extends Node2D
class_name PlantAttachBuilder
@export var attach_types: Array[PlantAttach.AttachType]
static func to_plant_attach(builder: PlantAttachBuilder) -> PlantAttach:
var plant_attach := PlantAttach.new()
plant_attach.position = builder.position
plant_attach.attach_types = builder.attach_types
return plant_attach