diff --git a/src/Managers/UpdateManager.cs b/src/Managers/BAUUpdateManager.cs
similarity index 90%
rename from src/Managers/UpdateManager.cs
rename to src/Managers/BAUUpdateManager.cs
index fad406a..6f21da7 100644
--- a/src/Managers/UpdateManager.cs
+++ b/src/Managers/BAUUpdateManager.cs
@@ -13,14 +13,14 @@ namespace BetterAmongUs.Managers;
///
/// Manages update functionality for BetterAmongUs, including download and installation.
///
-internal sealed class UpdateManager : MonoBehaviour
+internal sealed class BAUUpdateManager : MonoBehaviour
{
private bool AmUpdateing;
///
/// Gets the singleton instance of the UpdateManager.
///
- internal static UpdateManager? Instance { get; private set; }
+ internal static BAUUpdateManager? Instance { get; private set; }
///
/// Gets whether the application is waiting for a restart after an update.
@@ -34,7 +34,7 @@ internal sealed class UpdateManager : MonoBehaviour
{
var obj = new GameObject("UpdateManager(BAU)") { hideFlags = HideFlags.HideAndDontSave };
DontDestroyOnLoad(obj);
- Instance = obj.AddComponent();
+ Instance = obj.AddComponent();
}
///
@@ -48,7 +48,7 @@ internal sealed class UpdateManager : MonoBehaviour
var doNotPress = FindObjectOfType(true);
if (doNotPress != null)
{
- doNotPress.gameObject.SetActive(UpdateLoader.UpdateInfo?.IsNewUpdate() == true && !WaitForRestart);
+ doNotPress.gameObject.SetActive(BAUUpdateLoader.UpdateInfo?.IsNewUpdate() == true && !WaitForRestart);
var buttonPressed = doNotPress.transform.Find("ButtonPressed");
if (buttonPressed != null)
{
@@ -125,11 +125,11 @@ internal sealed class UpdateManager : MonoBehaviour
mainMenu?.SetActive(false);
ambience?.SetActive(false);
- if (UpdateLoader.UpdateInfo != null && UpdateLoader.UpdateInfo.DllLink != string.Empty)
+ if (BAUUpdateLoader.UpdateInfo != null && BAUUpdateLoader.UpdateInfo.DllLink != string.Empty)
{
- if (UpdateLoader.UpdateInfo.IsNewUpdate())
+ if (BAUUpdateLoader.UpdateInfo.IsNewUpdate())
{
- yield return UpdateLoader.UpdateInfo.CoDownload();
+ yield return BAUUpdateLoader.UpdateInfo.CoDownload();
WaitForRestart = true;
mainMenu?.SetActive(true);
ambience?.SetActive(true);
diff --git a/src/Network/Configs/UpdateData.cs b/src/Network/Configs/BAUUpdateData.cs
similarity index 99%
rename from src/Network/Configs/UpdateData.cs
rename to src/Network/Configs/BAUUpdateData.cs
index 1023f6e..a3c8f77 100644
--- a/src/Network/Configs/UpdateData.cs
+++ b/src/Network/Configs/BAUUpdateData.cs
@@ -11,7 +11,7 @@ namespace BetterAmongUs.Network.Configs;
/// Represents update data retrieved from the remote repository.
///
[Serializable]
-internal sealed class UpdateData
+internal sealed class BAUUpdateData
{
///
/// Gets or sets the download link for the updated DLL file.
diff --git a/src/Network/GithubAPI.cs b/src/Network/GithubAPI.cs
index 9c30352..87d4405 100644
--- a/src/Network/GithubAPI.cs
+++ b/src/Network/GithubAPI.cs
@@ -62,7 +62,7 @@ internal sealed class GithubAPI : MonoBehaviour
var newsLoader = gameObject.AddComponent();
this.StartCoroutine(newsLoader.CoFetchNewsData());
- var updateLoader = gameObject.AddComponent();
+ var updateLoader = gameObject.AddComponent();
this.StartCoroutine(updateLoader.CoFetchUpdateData());
}
diff --git a/src/Network/Loaders/UpdateLoader.cs b/src/Network/Loaders/BAUUpdateLoader.cs
similarity index 88%
rename from src/Network/Loaders/UpdateLoader.cs
rename to src/Network/Loaders/BAUUpdateLoader.cs
index 67eee18..14fd3a9 100644
--- a/src/Network/Loaders/UpdateLoader.cs
+++ b/src/Network/Loaders/BAUUpdateLoader.cs
@@ -11,13 +11,13 @@ namespace BetterAmongUs.Network.Loaders;
///
/// Handles downloading and processing of update data from a remote repository.
///
-internal sealed class UpdateLoader : MonoBehaviour
+internal sealed class BAUUpdateLoader : MonoBehaviour
{
///
/// Gets the update information retrieved from the remote repository.
///
/// The update data, or null if not loaded.
- internal static UpdateData? UpdateInfo { get; private set; }
+ internal static BAUUpdateData? UpdateInfo { get; private set; }
///
/// Coroutine to fetch update data from the remote repository.
@@ -57,7 +57,7 @@ internal sealed class UpdateLoader : MonoBehaviour
AllowTrailingCommas = true,
};
- var response = JsonSerializer.Deserialize(callBack, options);
+ var response = JsonSerializer.Deserialize(callBack, options);
if (response != null)
{
@@ -65,7 +65,7 @@ internal sealed class UpdateLoader : MonoBehaviour
Logger_.Log($"Loaded update info");
}
- UpdateManager.Init();
+ BAUUpdateManager.Init();
Destroy(this);
}
diff --git a/src/Patches/Client/Managers/MainMenuManagerPatch.cs b/src/Patches/Client/Managers/MainMenuManagerPatch.cs
index 4a5ecc3..7d646dc 100644
--- a/src/Patches/Client/Managers/MainMenuManagerPatch.cs
+++ b/src/Patches/Client/Managers/MainMenuManagerPatch.cs
@@ -66,6 +66,6 @@ internal static class MainMenuManagerPatch
}
// Notify UpdateManager that we're in the main menu
- UpdateManager.Instance?.OnMainMenu();
+ BAUUpdateManager.Instance?.OnMainMenu();
}
}
\ No newline at end of file