public override void Load() { Logger.SetLogLevel("CollabUtils2", LogLevel.Info); InGameOverworldHelper.Load(); ReturnToLobbyHelper.Load(); StrawberryHooks.Load(); MiniHeartDoor.Load(); LobbyHelper.Load(); SpeedBerryTimerDisplay.Load(); SpeedBerryPBInChapterPanel.Load(); JournalTrigger.Load(); CustomCrystalHeartHelper.Load(); GoldenBerryPlayerRespawnPoint.Load(); SpeedBerry.Load(); AreaCompleteInfoInLevel.Load(); SilverBlock.Load(); MiniHeartDoorUnlockCutsceneTrigger.Load(); LazyLoadingHandler.Load(); SilverBerryCollectTrigger.Load(); Everest.Content.OnUpdate += onModAssetUpdate; hookOrigSessionCtor = new Hook(typeof(Session).GetMethod("orig_ctor"), typeof(CollabModule).GetMethod(nameof(onNewSession), BindingFlags.NonPublic | BindingFlags.Static)); }
public override void Unload() { InGameOverworldHelper.Unload(); ReturnToLobbyHelper.Unload(); StrawberryHooks.Unload(); MiniHeartDoor.Unload(); LobbyHelper.Unload(); SpeedBerryTimerDisplay.Unload(); SpeedBerryPBInChapterPanel.Unload(); JournalTrigger.Unload(); CustomCrystalHeartHelper.Unload(); GoldenBerryPlayerRespawnPoint.Unload(); SpeedBerry.Unload(); AreaCompleteInfoInLevel.Unload(); SilverBlock.Unload(); Everest.Content.OnUpdate -= onModAssetUpdate; }
public override void Load() { Logger.SetLogLevel("CollabUtils2", LogLevel.Info); InGameOverworldHelper.Load(); ReturnToLobbyHelper.Load(); StrawberryHooks.Load(); MiniHeartDoor.Load(); LobbyHelper.Load(); SpeedBerryTimerDisplay.Load(); SpeedBerryPBInChapterPanel.Load(); JournalTrigger.Load(); CustomCrystalHeartHelper.Load(); GoldenBerryPlayerRespawnPoint.Load(); SpeedBerry.Load(); AreaCompleteInfoInLevel.Load(); SilverBlock.Load(); Everest.Content.OnUpdate += onModAssetUpdate; }
public override void Unload() { InGameOverworldHelper.Unload(); ReturnToLobbyHelper.Unload(); StrawberryHooks.Unload(); MiniHeartDoor.Unload(); LobbyHelper.Unload(); SpeedBerryTimerDisplay.Unload(); SpeedBerryPBInChapterPanel.Unload(); JournalTrigger.Unload(); CustomCrystalHeartHelper.Unload(); GoldenBerryPlayerRespawnPoint.Unload(); SpeedBerry.Unload(); AreaCompleteInfoInLevel.Unload(); SilverBlock.Unload(); MiniHeartDoorUnlockCutsceneTrigger.Unload(); LazyLoadingHandler.Unload(); SilverBerryCollectTrigger.Unload(); Everest.Content.OnUpdate -= onModAssetUpdate; hookOrigSessionCtor?.Dispose(); hookOrigSessionCtor = null; }