Added Inventory System

This commit is contained in:
2026-08-29 23:24:04 +01:00
parent 00f9448329
commit 7df4adec93
60 changed files with 4283 additions and 2 deletions
+13
View File
@@ -0,0 +1,13 @@
extends Control
class_name InventoryControllerGD
@export var inventory : InventoryGD
# Called when the node enters the scene tree for the first time.
func _ready() -> void:
# Obtain all InventorySlot objects and initialize with an index
var inventory_slots = get_tree().get_nodes_in_group("inventory_slots")
for i in inventory_slots.size():
var slot = inventory_slots[i]
slot.initialize_slot(i, inventory)