mirror of
https://github.com/NotAKidoS/NAK_CVR_Mods.git
synced 2026-01-01 14:17:31 +00:00
mass commit of laziness
This commit is contained in:
parent
ce992c70ee
commit
6d4fc549d9
167 changed files with 5471 additions and 675 deletions
|
|
@ -1,42 +0,0 @@
|
|||
using MelonLoader;
|
||||
using NAK.AvatarQueueSystemTweaks.Patches;
|
||||
|
||||
namespace NAK.AvatarQueueSystemTweaks;
|
||||
|
||||
public class AvatarQueueSystemTweaksMod : MelonMod
|
||||
{
|
||||
public static readonly MelonPreferences_Category Category =
|
||||
MelonPreferences.CreateCategory(nameof(AvatarQueueSystemTweaks));
|
||||
|
||||
public static readonly MelonPreferences_Entry<bool> EntryPrioritizeSelf =
|
||||
Category.CreateEntry("prioritize_self", true, "Prioritize Self", description: "Prioritize loading of your own avatar over others.");
|
||||
|
||||
public static readonly MelonPreferences_Entry<bool> EntryPrioritizeFriends =
|
||||
Category.CreateEntry("prioritize_friends", true, "Prioritize Friends", description: "Prioritize loading of friends avatars over others.");
|
||||
|
||||
public static readonly MelonPreferences_Entry<bool> EntryLoadByDistance =
|
||||
Category.CreateEntry("load_by_distance", true, "Load By Distance", description: "Prioritize loading of avatars by distance.");
|
||||
|
||||
// public static readonly MelonPreferences_Entry<bool> EntryChokeInstantiation =
|
||||
// Category.CreateEntry("choke_instantiation", false, "Choke Instantiation",
|
||||
// description: "Chokes the instantiation queue by waiting 0.2s");
|
||||
|
||||
public override void OnInitializeMelon()
|
||||
{
|
||||
//ApplyPatches(typeof(CVRObjectLoaderPatches));
|
||||
ApplyPatches(typeof(AvatarQueueSystemPatches));
|
||||
}
|
||||
|
||||
private void ApplyPatches(Type type)
|
||||
{
|
||||
try
|
||||
{
|
||||
HarmonyInstance.PatchAll(type);
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
LoggerInstance.Msg($"Failed while patching {type.Name}!");
|
||||
LoggerInstance.Error(e);
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue