Пример #1
0
        public void CheckRemovals()
        {
            List <BuildRoomOrder> toRemove = BuildDesignations.Where(build => build.IsBuilt).ToList();

            foreach (BuildRoomOrder build in toRemove)
            {
                BuildDesignations.Remove(build);
            }
        }
Пример #2
0
        public void CheckRemovals()
        {
            List <BuildRoomOrder> toRemove = BuildDesignations.Where(build => build.IsBuilt).ToList();

            foreach (BuildRoomOrder build in toRemove)
            {
                if (build.DisplayWidget != null)
                {
                    World.Gui.DestroyWidget(build.DisplayWidget);
                }
                BuildDesignations.Remove(build);
            }
        }