using System.Collections.Generic; namespace ET.Client { [ComponentOf(typeof(Scene))] public class BagComponent : Entity, IAwake, IDestroy { public Dictionary ItemMap = new(); public HashSet NewItemSet = new(); } public struct ItemChangedEvent { public long ItemIndex; } public struct BagUpdatedEvent { public int Count; } }