You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Babushka/scripts/CSharp/Common/Inventory/InventorySlot.cs

25 lines
616 B

#nullable enable
namespace Babushka.scripts.CSharp.Common.Inventory;
/// <summary>
/// Represents a virtual object wrapper for an item instance.
/// Can return the containing item or null.
/// </summary>
public class InventorySlot
{
/// <summary>
/// The inventory item instance that may or may not be bound to this slot.
/// </summary>
public ItemInstance? itemInstance;
/// <summary>
/// Whether or not this slot is currently occupied by an item instance.
/// </summary>
/// <returns></returns>
public bool IsEmpty()
{
return itemInstance == null;
}
}