1
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user