1
Fork 0
mirror of https://github.com/thegeneralist01/Scene-Manager-DevRepo synced 2026-01-11 23:50:29 +01:00

Replaced Game.LogTrivial calls with calls to new Logger class.

This commit is contained in:
Rich Dunne 2020-09-14 11:30:52 -06:00
parent af2476bb2f
commit f200a7bf22

View file

@ -28,7 +28,7 @@ namespace SceneManager
Assembly assembly = Assembly.GetExecutingAssembly(); Assembly assembly = Assembly.GetExecutingAssembly();
System.Diagnostics.FileVersionInfo fvi = System.Diagnostics.FileVersionInfo.GetVersionInfo(assembly.Location); System.Diagnostics.FileVersionInfo fvi = System.Diagnostics.FileVersionInfo.GetVersionInfo(assembly.Location);
var version = fvi.FileVersion; var version = fvi.FileVersion;
Game.LogTrivial($"Scene Manager V{version} is ready."); Logger.Log($"Scene Manager V{version} is ready.");
} }
private static void DisplayHintsToOpenMenu() private static void DisplayHintsToOpenMenu()
@ -72,25 +72,14 @@ namespace SceneManager
// Clear everything // Clear everything
BarrierMenu.barriers.Clear(); BarrierMenu.barriers.Clear();
VehicleCollector.collectedVehicles.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."); 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 //// id is hardware ID and needs to match PatronKey, which is also hardware ID
//if (Settings.id == Settings.PatronKey) //if (Settings.id == Settings.PatronKey)
//{ //{