Esempio n. 1
0
    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);
    }
Esempio n. 2
0
 public IndexChange(Index target, Index.CHANGE change) : base()
 {
     Target = target;
     Change = change;
 }
Esempio n. 3
0
 public static void AddLeisureSectorFunIndexChange(CityPart.PLACE cityPlace, Index.CHANGE change)
 => City.Changes.AddIndexChange(City.CityParts[(int)cityPlace].LeisureSector.Fun, change);
Esempio n. 4
0
 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);
Esempio n. 5
0
 public static void AddIndustrySectorDevelopementIndexChange(CityPart.PLACE cityPlace, Index.CHANGE change)
 => City.Changes.AddIndexChange(City.CityParts[(int)cityPlace].IndustrySector.Development, change);
Esempio n. 6
0
 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);
Esempio n. 7
0
 public static void AddTransportSectorTechnologyIndexChange(CityPart.PLACE cityPlace, Index.CHANGE change)
 => City.Changes.AddIndexChange(City.CityParts[(int)cityPlace].TransportSector.Technology, change);
Esempio n. 8
0
 public static void AddTransportSectorInvestmentIndexChange(CityPart.PLACE cityPlace, Index.CHANGE change)
 => City.Changes.AddIndexChange(City.CityParts[(int)cityPlace].TransportSector.Investment, change);
Esempio n. 9
0
 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);