private void Remove(Pack pack) { _packs.Remove(pack); OnChanged?.Invoke(); }
public IItem Pull(Pack pack) { return(Pull(pack.Item, pack.Count)); }
private void Add(Pack pack) { pack.OnCountSetNull += Remove; _packs.Add(pack); OnChanged?.Invoke(); }
public void Put(Pack pack) { Put(pack.Item, pack.Count); }