working with new sprites
This commit is contained in:
@@ -4,23 +4,12 @@ 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 root: PlantAttach
|
||||
@export var attaches: Array[PlantAttach] # array of vec2
|
||||
|
||||
@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:
|
||||
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
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user