plant builder

This commit is contained in:
Altaezio
2026-02-10 20:09:34 +01:00
parent 4b8e59ee56
commit ab5089ad6c
129 changed files with 2377 additions and 21 deletions

View File

@@ -0,0 +1,26 @@
extends Resource
class_name PlantPart
enum PartType {BASE_PART, BRANCH_PART, LEAF_PART, FLOWER_PART}
@export var texture: Texture
@export var root: Vector2
@export var attaches: Array[Vector2]
@export var bottom_attaches: Array[Vector2]
@export var type: PartType
@export var is_back: bool
@export var base_attachable: bool
@export var bottom_attachable: bool
@export var branch_attachable: bool
func _init(textute_arg: Texture, root_arg: Vector2, attaches_arg: Array[Vector2], bottom_attaches_arg: Array[Vector2], type_arg: PartType, is_back_arg: bool, base_attachable_arg: bool, bottom_attachable_arg: bool, branch_attachable_arg: bool) -> void:
texture = textute_arg
root = root_arg
attaches = attaches_arg
bottom_attaches = bottom_attaches_arg
type = type_arg
is_back = is_back_arg
base_attachable = base_attachable_arg
bottom_attachable = bottom_attachable_arg
branch_attachable = branch_attachable_arg