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

16 lines
459 B
GDScript

extends Resource
class_name PlantPart
enum PartType {BASE_PART, BRANCH_PART, LEAF_PART, FLOWER_PART}
@export var texture: Texture
@export var type: PartType
@export var root: PlantAttach
@export var attaches: Array[PlantAttach] # array of vec2
func init(textute_arg: Texture, type_arg: PartType, root_arg: PlantAttach, attaches_arg: Array[PlantAttach]) -> void:
texture = textute_arg
type = type_arg
root = root_arg
attaches = attaches_arg