private void ToggleDefaultTint(bool on) { ImmutableList <Store> allStores = LazyManager <BuildingManager> .Current.GetAll <Store>(); for (int i = 0; i < allStores.Count; i++) { Store store = allStores[i]; if (on && DisabledNodes?.Contains(store) == true) { continue; } LazyManager <BuildingTintManager> .Current.SetDefaultColor(store, on?new Color?(GameColors.WhiteModeCompanyTintColor) : null); store.SetTint(null); } ImmutableList <Lab> allLabs = LazyManager <BuildingManager> .Current.GetAll <Lab>(); for (int i = 0; i < allLabs.Count; i++) { Lab lab = allLabs[i]; if (on && DisabledNodes?.Contains(lab) == true) { continue; } LazyManager <BuildingTintManager> .Current.SetDefaultColor(lab, on?new Color?(GameColors.WhiteModeCompanyTintColor) : null); lab.SetTint(null); } }
private bool CanPick(Building building) { if (building is IStorageNetworkNode node) { return(DisabledNodes?.Contains(node) == false); } return(false); }