This commit is contained in:
CortexCore
2025-04-14 15:39:28 +08:00
parent c1273357de
commit d8b8ddb8b6
23 changed files with 447 additions and 116 deletions

View File

@@ -27,6 +27,7 @@ namespace BITKit
/// 获取所有Item的只读副本
/// </summary>
IRuntimeItem[] GetItems();
IReadOnlyDictionary<int,IRuntimeItem> ItemDictionary { get; }
/// <summary>
/// 添加物品的接口
/// </summary>
@@ -104,6 +105,7 @@ namespace BITKit
public ValidHandle IsBusy { get; } = new();
public int Id { get; set; }
public IRuntimeItem[] GetItems()=>Items.Values.ToArray();
public IReadOnlyDictionary<int, IRuntimeItem> ItemDictionary => Items;
public bool Add(IRuntimeItem item)
{