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
+18
View File
@@ -0,0 +1,18 @@
using Godot;
public partial class InventoryController : Control
{
[Export] public Inventory Inventory;
public override void _Ready()
{
var inventorySlots = GetTree().GetNodesInGroup("inventory_slots_cs");
for (int i = 0; i < inventorySlots.Count; i++)
{
var slot = (InventorySlot)inventorySlots[i];
slot.InitializeSlot(i, Inventory);
}
}
}