Пример #1
0
        public void Update()
        {
            if (!inited)
            {
                Init();
            }
            _timeKeeper.Tick();
            GetController <IBuildingController>().Update();

            foreach (var inv in GetController <IItemController>().AllInventories)
            {
                _logger.LogError(inv.InventoryUser.Label + " - " + inv.Config.Label + ": " + string.Join(", ", inv.GetAllHeldItems()?.Select(x => x.Label)));
            }

            if (_timeKeeper.IsItTime(HaulTime) > 0)
            {
                HaulTime = _timeKeeper.ProjectTime(new Dictionary <string, int> {
                    { "HOUR", 1 }, { "MIN", 30 }
                });
                DoHaulTest();
            }
        }