refonte de l'inventaire en 3D et nettoyage des prints

This commit is contained in:
2026-02-23 00:07:04 +01:00
parent 925bf4465c
commit fa21b3a558
41 changed files with 472 additions and 611 deletions

View File

@@ -20,7 +20,6 @@ class_name PlantPartScene
func load_resource():
var destination := "res://entities/plants/resources/plant_parts/" + part_name + ".tres"
print("Loading: ", part_name, " at: ", destination)
var plant_part = ResourceLoader.load(destination)
if plant_part is PlantPart:
root.position = plant_part.root
@@ -66,7 +65,6 @@ func load_resource():
func save_as_resource():
var destination := "res://entities/plants/resources/plant_parts/" + part_name + ".tres"
print("Saving: ", part_name, " at: ", destination)
var attaches_vec2: Array[Vector2]
for attach in attaches.get_children():
attaches_vec2.append(attach.position)