コード例 #1
0
        public override void Unload()
        {
            On.Celeste.OuiChapterPanel.Reset            -= CustomiseChapterPanel;
            On.Celeste.OuiChapterPanel.IsStart          -= FixReturnFromAltSide;
            On.Celeste.OuiChapterPanel.UpdateStats      -= FixSettingAltSideStats;
            On.Celeste.OuiChapterPanel.SetStatsPosition -= FixSettingAltSideStatPositions;
            On.Celeste.AreaData.Load            -= PostAreaLoad;
            On.Celeste.AreaData.AreaComparison  -= SortAltSidesLast;
            On.Celeste.OuiChapterSelect.Added   -= HideAltSides;
            On.Celeste.OuiChapterSelect.IsStart -= ReturnToAltSide;
            On.Celeste.Poem.ctor             -= SetPoemColour;
            On.Celeste.DeathsCounter.SetMode -= SetDeathsCounterIcon;
            On.Celeste.HeartGem.Awake        -= SetCrystalHeartSprite;
            On.Celeste.AreaComplete.GetCustomCompleteScreenTitle -= SetAltSideEndScreenTitle;
            On.Celeste.LevelEnter.Routine -= AddAltSideRemixTitle;

            IL.Celeste.OuiJournalProgress.ctor -= ModJournalProgressPageConstruct;

            hook_OuiChapterPanel_set_option.Dispose();
            hook_OuiChapterPanel_get_option.Dispose();
            hook_OuiChapterSelect_get_area.Dispose();
            hook_Session_get_FullClear.Dispose();
            mod_OuiFileSelectSlot_orig_Render.Dispose();

            AltSidesMetadata.Clear();
        }
コード例 #2
0
ファイル: HookEndpoint.cs プロジェクト: windows1988/MonoMod
        public void _Remove(Delegate hookDelegate)
        {
            if (hookDelegate == null)
            {
                return;
            }

            // Note: A hook delegate can be applied multiple times.
            // The following code removes the last hook of that delegate type.
            if (!HookMap.TryGetValue(hookDelegate, out Stack <IDetour> hooks))
            {
                return;
            }

            IDetour hook = hooks.Pop();

            hook.Dispose();

            if (hooks.Count == 0)
            {
                HookMap.Remove(hookDelegate);
            }

            HookList.Remove(hook);
        }
コード例 #3
0
        public static void Unload()
        {
            On.Celeste.Player.ctor           -= Player_ctor;
            On.Celeste.Player.DashBegin      -= Player_DashBegin;
            On.Celeste.Player.CreateTrail    -= Player_CreateTrail;
            On.Celeste.Player.OnCollideH     -= Player_OnCollideH;
            On.Celeste.Player.OnCollideV     -= Player_OnCollideV;
            On.Celeste.Player.DreamDashCheck -= Player_DreamDashCheck;
            On.Celeste.Player.Update         -= Player_Update;
            On.Celeste.Player.Die            -= Player_Die;

            hook_Player_DashCoroutine.Dispose();
            IL.Celeste.Player.IsRiding_Solid    -= State_DreamDashEqual;
            IL.Celeste.Player.IsRiding_JumpThru -= Player_IsRiding_JumpThru;
            IL.Celeste.Player.OnCollideH        -= State_DreamDashEqual;
            IL.Celeste.Player.OnCollideV        -= State_DreamDashEqual;
            hook_Player_orig_Update.Dispose();
            hook_Player_orig_UpdateSprite.Dispose();

            On.Celeste.Level.EnforceBounds -= Level_EnforceBounds;
            On.Celeste.Player.OnBoundsH    -= Player_OnBoundsH;
            On.Celeste.Player.OnBoundsV    -= Player_OnBoundsV;

            IL.Celeste.FakeWall.Update  -= State_DreamDashNotEqual;
            IL.Celeste.Spring.OnCollide -= State_DreamDashEqual;
            IL.Celeste.Solid.Update     -= State_DreamDashNotEqual_And;

            if (StDreamTunnelDash != -1)
            {
                Extensions.UnregisterState(StDreamTunnelDash);
            }
        }
コード例 #4
0
        public static void Unhook()
        {
            ControllerHook.Dispose();
            ControllerHook = null;

            On.Celeste.MoveBlock.UpdateColors -= MoveBlock_UpdateColors;
            On.Monocle.Scene.BeforeUpdate     -= Scene_BeforeUpdate;
        }
コード例 #5
0
ファイル: Hooks.cs プロジェクト: EverestAPI/ExampleMod
        // Any hooks you apply should be undone during your EverestModule's Unload function.
        internal static void Unload()
        {
            On.Celeste.Player.Jump -= Player_Jump;
            hook_Player_get_MaxDashes.Dispose();

            IL.Celeste.Player.ClimbHop -= Player_ClimbHop;
            hook_Player_DashCoroutine.Dispose();
        }
コード例 #6
0
        public override void Unload()
        {
            On.Celeste.OuiChapterPanel.Reset            -= CustomiseChapterPanel;
            On.Celeste.OuiChapterPanel.IsStart          -= FixReturnFromAltSide;
            On.Celeste.OuiChapterPanel.UpdateStats      -= FixSettingAltSideStats;
            On.Celeste.OuiChapterPanel.SetStatsPosition -= FixSettingAltSideStatPositions;
            On.Celeste.AreaData.Load            -= PostAreaLoad;
            On.Celeste.OuiChapterSelect.Added   -= HideAltSides;
            On.Celeste.OuiChapterSelect.IsStart -= ReturnToAltSide;
            On.Celeste.Poem.ctor             -= SetPoemColour;
            On.Celeste.DeathsCounter.SetMode -= SetDeathsCounterIcon;
            On.Celeste.HeartGem.Awake        -= SetCrystalHeartSprite;
            On.Celeste.AreaComplete.GetCustomCompleteScreenTitle -= SetAltSideEndScreenTitle;

            //IL.Celeste.OuiJournalProgress.ctor -= OnJournalProgressPageConstruct;

            hook_OuiChapterPanel_set_option.Dispose();
            hook_OuiChapterPanel_get_option.Dispose();
            hook_OuiChapterSelect_get_area.Dispose();
            hook_LevelSetStats_get_MaxArea.Dispose();
        }
コード例 #7
0
        public override void Unload()
        {
            IL.Celeste.Player.ctor -= Player_ctor;
            //On.Celeste.Player.ctor -= Player_ctor;

            IL.Celeste.Actor.IsRiding_JumpThru -= Actor_IsRiding;
            IL.Celeste.Actor.IsRiding_Solid    -= Actor_IsRiding;
            IL.Celeste.Actor.MoveVExact        -= Actor_MoveVExact;
            On.Celeste.Actor.OnGround_int      -= Actor_OnGround_int;

            On.Celeste.Player.Update -= Player_Update;
            hook_Player_orig_Update.Dispose();
            IL.Celeste.Player.ClimbUpdate          -= Player_ClimbUpdate;
            IL.Celeste.Player.ClimbHopBlockedCheck -= Player_ClimbHopBlockedCheck;

            On.Celeste.Player.TransitionTo -= Player_TransitionTo;
            //On.Celeste.Level.TransitionRoutine -= Level_TransitionRoutine;
            IL.Celeste.Player.BeforeDownTransition -= Player_BeforeDownTransition;
            //IL.Celeste.Player.BeforeUpTransition -= Player_BeforeUpTransition;

            IL.Celeste.Solid.GetPlayerOnTop -= Solid_GetPlayerOnTop;
            On.Celeste.Solid.MoveVExact     -= Solid_MoveVExact;
        }
コード例 #8
0
 internal new static void Unload()
 {
     hook_Level_orig_LoadLevel.Dispose();
 }