[AvatarScaleMod] Mod Network attempt 2.

I lost the first attempt when switching branches.
Lot of this still needs to be redone, as it is just quickly slapped together atm.
This commit is contained in:
NotAKidoS 2023-09-20 05:24:07 -05:00
parent 69cb3b7804
commit d599f57973
13 changed files with 850 additions and 544 deletions

View file

@ -1,19 +1,28 @@
using MelonLoader;
using NAK.AvatarScaleMod.Networking;
namespace NAK.AvatarScaleMod;
public class AvatarScaleMod : MelonMod
{
internal static MelonLogger.Instance Logger;
public override void OnInitializeMelon()
{
Logger = LoggerInstance;
ModSettings.InitializeModSettings();
ApplyPatches(typeof(HarmonyPatches.PlayerSetupPatches));
//ApplyPatches(typeof(HarmonyPatches.PuppetMasterPatches));
ApplyPatches(typeof(HarmonyPatches.PuppetMasterPatches));
ApplyPatches(typeof(HarmonyPatches.GesturePlaneTestPatches));
ModNetwork.Subscribe();
ModSettings.InitializeModSettings();
}
public override void OnUpdate()
{
ModNetwork.Update();
ModNetworkDebugger.DoDebugInput();
}
private void ApplyPatches(Type type)