From c23a3c1b45e374b432ee2dca55a2f103e378d0c1 Mon Sep 17 00:00:00 2001 From: dymanoid <9433345+dymanoid@users.noreply.github.com> Date: Thu, 30 May 2019 20:47:36 +0200 Subject: [PATCH] Rename patch classes --- src/RealTime/Core/RealTimeCore.cs | 30 +++++++++---------- .../{UIGraphPatches.cs => UIGraphPatch.cs} | 4 +-- ...PanelPatches.cs => WorldInfoPanelPatch.cs} | 4 +-- src/RealTime/RealTime.csproj | 4 +-- 4 files changed, 21 insertions(+), 21 deletions(-) rename src/RealTime/GameConnection/Patches/{UIGraphPatches.cs => UIGraphPatch.cs} (99%) rename src/RealTime/GameConnection/Patches/{WorldInfoPanelPatches.cs => WorldInfoPanelPatch.cs} (95%) diff --git a/src/RealTime/Core/RealTimeCore.cs b/src/RealTime/Core/RealTimeCore.cs index a5eb576..c0a5e7a 100644 --- a/src/RealTime/Core/RealTimeCore.cs +++ b/src/RealTime/Core/RealTimeCore.cs @@ -192,11 +192,11 @@ namespace RealTime.Core SimulationHandler.Statistics = statistics; - if (appliedPatches.Contains(WorldInfoPanelPatches.UpdateBindings)) + if (appliedPatches.Contains(WorldInfoPanelPatch.UpdateBindings)) { - WorldInfoPanelPatches.CitizenInfoPanel = CustomCitizenInfoPanel.Enable(ResidentAIPatch.RealTimeAI, localizationProvider); - WorldInfoPanelPatches.VehicleInfoPanel = CustomVehicleInfoPanel.Enable(ResidentAIPatch.RealTimeAI, localizationProvider); - WorldInfoPanelPatches.CampusWorldInfoPanel = CustomCampusWorldInfoPanel.Enable(localizationProvider); + WorldInfoPanelPatch.CitizenInfoPanel = CustomCitizenInfoPanel.Enable(ResidentAIPatch.RealTimeAI, localizationProvider); + WorldInfoPanelPatch.VehicleInfoPanel = CustomVehicleInfoPanel.Enable(ResidentAIPatch.RealTimeAI, localizationProvider); + WorldInfoPanelPatch.CampusWorldInfoPanel = CustomCampusWorldInfoPanel.Enable(localizationProvider); } AwakeSleepSimulation.Install(configProvider.Configuration); @@ -262,14 +262,14 @@ namespace RealTime.Core StorageBase.CurrentLevelStorage.GameSaving -= GameSaving; - WorldInfoPanelPatches.CitizenInfoPanel?.Disable(); - WorldInfoPanelPatches.CitizenInfoPanel = null; + WorldInfoPanelPatch.CitizenInfoPanel?.Disable(); + WorldInfoPanelPatch.CitizenInfoPanel = null; - WorldInfoPanelPatches.VehicleInfoPanel?.Disable(); - WorldInfoPanelPatches.VehicleInfoPanel = null; + WorldInfoPanelPatch.VehicleInfoPanel?.Disable(); + WorldInfoPanelPatch.VehicleInfoPanel = null; - WorldInfoPanelPatches.CampusWorldInfoPanel?.Disable(); - WorldInfoPanelPatches.CampusWorldInfoPanel = null; + WorldInfoPanelPatch.CampusWorldInfoPanel?.Disable(); + WorldInfoPanelPatch.CampusWorldInfoPanel = null; isEnabled = false; } @@ -290,7 +290,7 @@ namespace RealTime.Core } timeBar.Translate(localizationProvider.CurrentCulture); - UIGraphPatches.Translate(localizationProvider.CurrentCulture); + UIGraphPatch.Translate(localizationProvider.CurrentCulture); } private static List GetMethodPatches(Compatibility compatibility) @@ -310,10 +310,10 @@ namespace RealTime.Core ResidentAIPatch.InstanceSimulationStep, TouristAIPatch.Location, TransferManagerPatch.AddOutgoingOffer, - WorldInfoPanelPatches.UpdateBindings, - UIGraphPatches.MinDataPoints, - UIGraphPatches.VisibleEndTime, - UIGraphPatches.BuildLabels, + WorldInfoPanelPatch.UpdateBindings, + UIGraphPatch.MinDataPoints, + UIGraphPatch.VisibleEndTime, + UIGraphPatch.BuildLabels, WeatherManagerPatch.SimulationStepImpl, ParkPatches.DistrictParkSimulation, OutsideConnectionAIPatch.DummyTrafficProbability, diff --git a/src/RealTime/GameConnection/Patches/UIGraphPatches.cs b/src/RealTime/GameConnection/Patches/UIGraphPatch.cs similarity index 99% rename from src/RealTime/GameConnection/Patches/UIGraphPatches.cs rename to src/RealTime/GameConnection/Patches/UIGraphPatch.cs index 17c7a08..8730d11 100644 --- a/src/RealTime/GameConnection/Patches/UIGraphPatches.cs +++ b/src/RealTime/GameConnection/Patches/UIGraphPatch.cs @@ -1,4 +1,4 @@ -// +// // Copyright (c) dymanoid. All rights reserved. // @@ -18,7 +18,7 @@ namespace RealTime.GameConnection.Patches /// /// A static class that provides the patch objects for the statistics graph. /// - internal static class UIGraphPatches + internal static class UIGraphPatch { private const int MinRangeInDays = 7; private const int MinPointsCount = 32; diff --git a/src/RealTime/GameConnection/Patches/WorldInfoPanelPatches.cs b/src/RealTime/GameConnection/Patches/WorldInfoPanelPatch.cs similarity index 95% rename from src/RealTime/GameConnection/Patches/WorldInfoPanelPatches.cs rename to src/RealTime/GameConnection/Patches/WorldInfoPanelPatch.cs index 989ac6b..992ecb2 100644 --- a/src/RealTime/GameConnection/Patches/WorldInfoPanelPatches.cs +++ b/src/RealTime/GameConnection/Patches/WorldInfoPanelPatch.cs @@ -1,4 +1,4 @@ -// +// // Copyright (c) dymanoid. All rights reserved. // @@ -12,7 +12,7 @@ namespace RealTime.GameConnection.Patches /// /// A static class that provides the patch objects for the world info panel game methods. /// - internal static class WorldInfoPanelPatches + internal static class WorldInfoPanelPatch { /// Gets or sets the customized citizen information panel. public static CustomCitizenInfoPanel CitizenInfoPanel { get; set; } diff --git a/src/RealTime/RealTime.csproj b/src/RealTime/RealTime.csproj index d1c1a2b..e2ef041 100644 --- a/src/RealTime/RealTime.csproj +++ b/src/RealTime/RealTime.csproj @@ -119,9 +119,9 @@ - + - + -- GitLab