Beispiel #1
0
        private static List <IPatch> GetMethodPatches()
        {
            var patches = new List <IPatch>
            {
                BuildingAIPatches.GetConstructionTime,
                BuildingAIPatches.HandleWorkers,
                BuildingAIPatches.CommercialSimulation,
                BuildingAIPatches.PrivateShowConsumption,
                BuildingAIPatches.PlayerShowConsumption,
                ResidentAIPatch.Location,
                ResidentAIPatch.ArriveAtTarget,
                TouristAIPatch.Location,
                TransferManagerPatch.AddOutgoingOffer,
                WorldInfoPanelPatches.UpdateBindings,
                UIGraphPatches.MinDataPoints,
                UIGraphPatches.VisibleEndTime,
                UIGraphPatches.BuildLabels,
                WeatherManagerPatch.SimulationStepImpl
            };

            if (Compatibility.IsModActive(Compatibility.CitizenLifecycleRebalanceId))
            {
                Log.Info("The 'Real Time' mod will not change the citizens aging because the 'Citizen Lifecycle Rebalance' mod is active.");
            }
            else
            {
                patches.Add(ResidentAIPatch.UpdateAge);
                patches.Add(ResidentAIPatch.CanMakeBabies);
            }

            patches.AddRange(TimeControlCompatibility.GetCompatibilityPatches());

            return(patches);
        }
Beispiel #2
0
        private static List <IPatch> GetMethodPatches()
        {
            var patches = new List <IPatch>
            {
                BuildingAIPatches.GetConstructionTime,
                BuildingAIPatches.HandleWorkers,
                BuildingAIPatches.CommercialSimulation,
                BuildingAIPatches.GetColor,
                BuildingAIPatches.CalculateUnspawnPosition,
                BuildingAIPatches.GetUpgradeInfo,
                BuildingAIPatches.CreateBuilding,
                BuildingAIPatches.ProduceGoods,
                ResidentAIPatch.Location,
                ResidentAIPatch.ArriveAtTarget,
                ResidentAIPatch.StartMoving,
                ResidentAIPatch.InstanceSimulationStep,
                TouristAIPatch.Location,
                TransferManagerPatch.AddOutgoingOffer,
                WorldInfoPanelPatches.UpdateBindings,
                UIGraphPatches.MinDataPoints,
                UIGraphPatches.VisibleEndTime,
                UIGraphPatches.BuildLabels,
                WeatherManagerPatch.SimulationStepImpl,
                ParkPatches.DistrictParkSimulation,
                OutsideConnectionAIPatch.DummyTrafficProbability,
            };

            if (Compatibility.IsModActive(Compatibility.CitizenLifecycleRebalanceId))
            {
                Log.Info("The 'Real Time' mod will not change the citizens aging because the 'Citizen Lifecycle Rebalance' mod is active.");
            }
            else
            {
                patches.Add(ResidentAIPatch.UpdateAge);
                patches.Add(ResidentAIPatch.CanMakeBabies);
            }

            patches.AddRange(TimeControlCompatibility.GetCompatibilityPatches());

            return(patches);
        }