item can be stored, added poses to shelf

This commit is contained in:
Nikolai Fesenko
2025-08-20 13:38:48 +02:00
parent 88007d247a
commit b5d5d4a818
10 changed files with 72 additions and 10 deletions

View File

@@ -31,9 +31,10 @@ func give_out(person):
func add_item(item):
stored_items.append(item)
print(item_poses)
for pose in item_poses:
if pose.is_free:
print(pose)
pose.add_item(item)
break
@@ -46,6 +47,6 @@ func get_item_pose(item):
func create():
for pose in items_pos_master.get_children():
item_poses.append(pose)
var newItem = ItemManager.get_item(0).instantiate()
ItemManager.add_shelf(self)
ItemManager.add_item_to_shelf(self, newItem)
ItemManager.add_item_to_shelf(self, ItemManager.create_item(0))
ItemManager.add_item_to_shelf(self, ItemManager.create_item(0))