Fixed Tomato farming (again)
This commit is contained in:
@@ -1,9 +1,21 @@
|
||||
#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;
|
||||
|
||||
Reference in New Issue
Block a user