2024-09-23 13:03:39 +00:00
|
|
|
using Godot;
|
|
|
|
|
|
|
|
namespace ColdMint.scripts.inventory;
|
|
|
|
|
|
|
|
/// <summary>
|
2024-09-23 15:17:57 +00:00
|
|
|
/// <para>PlaceholderItem</para>
|
|
|
|
/// <para>占位物品</para>
|
2024-09-23 13:03:39 +00:00
|
|
|
/// </summary>
|
|
|
|
public class PlaceholderItem : IItem
|
|
|
|
{
|
2024-09-28 14:59:25 +00:00
|
|
|
public int Index { get; set; }
|
2024-09-23 13:03:39 +00:00
|
|
|
public string Id { get; set; }
|
2024-09-30 00:56:00 +00:00
|
|
|
|
|
|
|
public void ShowSelf()
|
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
public void QueueFreeSelf()
|
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
public void HideSelf()
|
|
|
|
{
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2024-09-23 13:03:39 +00:00
|
|
|
public Texture2D Icon { get; }
|
|
|
|
public string Name { get; }
|
|
|
|
public string? Description { get; } = null;
|
|
|
|
public int Quantity { get; set; } = 1;
|
|
|
|
public int MaxQuantity { get; } = 1;
|
2024-09-23 15:17:57 +00:00
|
|
|
public bool IsSelect { get; set; }
|
2024-09-29 14:12:54 +00:00
|
|
|
public bool CanContainItems { get; set; } = false;
|
2024-09-27 15:24:22 +00:00
|
|
|
public IItemContainer? ItemContainer { get; set; }
|
2024-09-29 15:30:42 +00:00
|
|
|
public IItemContainer? SelfItemContainer { get; set; }
|
2024-09-23 13:03:39 +00:00
|
|
|
|
|
|
|
public int MergeableItemCount(IItem other, int unallocatedQuantity)
|
|
|
|
{
|
|
|
|
return 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
public IItem? CreateItem(int number)
|
|
|
|
{
|
|
|
|
return null;
|
|
|
|
}
|
|
|
|
|
|
|
|
public void Use(Node2D? owner, Vector2 targetGlobalPosition)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
}
|