further cleanup of repo

This commit is contained in:
NotAKidoS 2025-04-03 03:03:24 -05:00
parent 4f8dcb0cd0
commit 323eb92f2e
140 changed files with 1 additions and 2430 deletions

View file

@ -1,41 +0,0 @@
using MelonLoader;
namespace NAK.OriginShift;
internal static class ModSettings
{
#region Constants
internal const string ModName = nameof(OriginShift);
internal const string OSM_SettingsCategory = "Origin Shift Mod";
#endregion Constants
#region Melon Preferences
private static readonly MelonPreferences_Category Category =
MelonPreferences.CreateCategory(ModName);
internal static readonly MelonPreferences_Entry<bool> EntryCompatibilityMode =
Category.CreateEntry("EntryCompatibilityMode", true,
"Compatibility Mode", description: "Origin Shifts locally, but modifies outbound network messages to be compatible with non-Origin Shifted clients.");
#endregion Melon Preferences
#region Settings Managment
internal static void Initialize()
{
foreach (MelonPreferences_Entry setting in Category.Entries)
setting.OnEntryValueChangedUntyped.Subscribe(OnSettingsChanged);
OnSettingsChanged();
}
private static void OnSettingsChanged(object oldValue = null, object newValue = null)
{
OriginShiftManager.CompatibilityMode = EntryCompatibilityMode.Value;
}
#endregion Settings Managment
}