Exemple #1
0
        /*********
        ** Public methods
        *********/
        /// <summary>Construct an instance.</summary>
        /// <param name="chest">The chest being tracked.</param>
        public ChestTracker(Chest chest)
        {
            this.Chest            = chest;
            this.InventoryWatcher = WatcherFactory.ForNetList(chest.items);

            this.StackSizes = this.Chest.items
                              .Where(n => n != null)
                              .Distinct()
                              .ToDictionary(n => n, n => n.Stack);
        }