public bool AddIndexChange(Index target, Index.CHANGE change) { IndexChange newChange = new IndexChange(target, change); if (allChanges.Contains(newChange)) { Global.Methods.PrintError("This index change was added previously: " + newChange); return(false); } allChanges.Add(newChange); Global.Methods.PrintInfo("New value change added: " + newChange); return(true); }
public IndexChange(Index target, Index.CHANGE change) : base() { Target = target; Change = change; }
public static void AddLeisureSectorFunIndexChange(CityPart.PLACE cityPlace, Index.CHANGE change) => City.Changes.AddIndexChange(City.CityParts[(int)cityPlace].LeisureSector.Fun, change);
public static void AddLeisureSatisfactionIndexChange(CityPart.PLACE cityPlace, Leisure.PLACE leisurePlace, Index.CHANGE change) => City.Changes.AddIndexChange(City.CityParts[(int)cityPlace].LeisureSector.LeisureVenues[(int)leisurePlace].Satisfaction, change);
public static void AddIndustrySectorDevelopementIndexChange(CityPart.PLACE cityPlace, Index.CHANGE change) => City.Changes.AddIndexChange(City.CityParts[(int)cityPlace].IndustrySector.Development, change);
public static void AddIndustryRequiredEffortIndexChange(CityPart.PLACE cityPlace, Job.TYPE industryType, Index.CHANGE change) => City.Changes.AddIndexChange(City.CityParts[(int)cityPlace].IndustrySector.Jobs[(int)industryType].RequieredEffort, change);
public static void AddTransportSectorTechnologyIndexChange(CityPart.PLACE cityPlace, Index.CHANGE change) => City.Changes.AddIndexChange(City.CityParts[(int)cityPlace].TransportSector.Technology, change);
public static void AddTransportSectorInvestmentIndexChange(CityPart.PLACE cityPlace, Index.CHANGE change) => City.Changes.AddIndexChange(City.CityParts[(int)cityPlace].TransportSector.Investment, change);
public static void AddTransportPollutingIndexChange(CityPart.PLACE cityPlace, Transport.TYPE transportType, Index.CHANGE change) => City.Changes.AddIndexChange(City.CityParts[(int)cityPlace].TransportSector.Transports[(int)transportType].Polluting, change);