From f200a7bf22e5bcf1a626ce456af8fb094ae5850a Mon Sep 17 00:00:00 2001 From: Rich Dunne Date: Mon, 14 Sep 2020 11:30:52 -0600 Subject: [PATCH] Replaced Game.LogTrivial calls with calls to new Logger class. --- SceneManager/EntryPoint.cs | 17 +++-------------- 1 file changed, 3 insertions(+), 14 deletions(-) diff --git a/SceneManager/EntryPoint.cs b/SceneManager/EntryPoint.cs index a75af57..d6edc62 100644 --- a/SceneManager/EntryPoint.cs +++ b/SceneManager/EntryPoint.cs @@ -28,7 +28,7 @@ namespace SceneManager Assembly assembly = Assembly.GetExecutingAssembly(); System.Diagnostics.FileVersionInfo fvi = System.Diagnostics.FileVersionInfo.GetVersionInfo(assembly.Location); var version = fvi.FileVersion; - Game.LogTrivial($"Scene Manager V{version} is ready."); + Logger.Log($"Scene Manager V{version} is ready."); } private static void DisplayHintsToOpenMenu() @@ -72,25 +72,14 @@ namespace SceneManager // Clear everything BarrierMenu.barriers.Clear(); VehicleCollector.collectedVehicles.Clear(); + PathMainMenu.GetPaths().Clear(); - Game.LogTrivial($"Scene Manager has been terminated."); + Logger.Log($"Plugin has shut down."); Game.DisplayNotification($"~o~Scene Manager\n~r~[Notice]~w~ The plugin has shut down."); } } } -//GameFiber.StartNew(delegate{ - -//}); - -//public static Vehicle[] GetNearbyVehicles2(Vector3 OriginPosition, int amount) -//{ -// return (Vehicle[])(from x in World.GetAllVehicles() orderby x.DistanceTo(OriginPosition) select x).Take(amount).ToArray(); -//} - -//Type t = typeof(int); -//Game.LogTrivial($"Scene Manager V{Assembly.GetAssembly(t).GetName().Version} is ready.");*/ - //// id is hardware ID and needs to match PatronKey, which is also hardware ID //if (Settings.id == Settings.PatronKey) //{