22 lines
421 B
C#
22 lines
421 B
C#
using System.Collections.Generic;
|
|
|
|
namespace ET.Client
|
|
{
|
|
[ComponentOf(typeof(Scene))]
|
|
public class BagComponent : Entity, IAwake, IDestroy
|
|
{
|
|
public Dictionary<long, ItemInfo> ItemMap = new();
|
|
public HashSet<long> NewItemSet = new();
|
|
}
|
|
|
|
public struct ItemChangedEvent
|
|
{
|
|
public long ItemIndex;
|
|
}
|
|
|
|
public struct BagUpdatedEvent
|
|
{
|
|
public int Count;
|
|
}
|
|
}
|