public void CheckRemovals() { List <BuildRoomOrder> toRemove = BuildDesignations.Where(build => build.IsBuilt).ToList(); foreach (BuildRoomOrder build in toRemove) { BuildDesignations.Remove(build); } }
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); } }