first commit

This commit is contained in:
2026-06-04 23:22:13 +03:00
commit d329f501be
310 changed files with 36395 additions and 0 deletions
@@ -0,0 +1,35 @@
using System;
using OTGIntegrated.Items;
namespace OTGIntegrated.Inventory
{
[Serializable]
public sealed class InventorySlot
{
public ItemData item;
public int amount;
public InventorySlot(ItemData item, int amount)
{
this.item = item;
this.amount = amount;
}
public bool IsEmpty()
{
return item == null || amount <= 0;
}
public string GetDisplayText()
{
return IsEmpty() ? string.Empty : $"{item.displayName} x{amount}";
}
}
[Serializable]
public sealed class InventorySlotSaveData
{
public string itemId;
public int amount;
}
}