diff --git a/Celeste.Mod.mm/Mod/Everest/Everest.Events.cs b/Celeste.Mod.mm/Mod/Everest/Everest.Events.cs index 5c69db375..0841384ed 100644 --- a/Celeste.Mod.mm/Mod/Everest/Everest.Events.cs +++ b/Celeste.Mod.mm/Mod/Everest/Everest.Events.cs @@ -4,6 +4,7 @@ using System.Collections.Generic; using _Decal = Celeste.Decal; using _EventTrigger = Celeste.EventTrigger; +using _LevelLoader = Celeste.LevelLoader; using _Level = Celeste.Level; using _Session = Celeste.Session; using _OuiJournal = Celeste.OuiJournal; @@ -96,8 +97,10 @@ internal static void CreateButtons(_OuiMainMenu menu, List buttons) public static class LevelLoader { public delegate void LoadingThreadHandler(_Level level); /// - /// Called at the end of the map loading thread. + /// Called at the end of the map loading thread, .
+ /// This event is invoked only once, when entering a map from the chapter select screen or from Save and Quit. ///
+ /// public static event LoadingThreadHandler OnLoadingThread; internal static void LoadingThread(_Level level) => OnLoadingThread?.Invoke(level); @@ -161,6 +164,11 @@ internal static Backdrop LoadBackdrop(MapData map, BinaryPacker.Element child, B => OnLoadBackdrop?.InvokeWhileNull(map, child, above); public delegate void LoadLevelHandler(_Level level, _Player.IntroTypes playerIntro, bool isFromLoader); + /// + /// Called after .
+ /// This event is invoked every time a room is entered - transition, respawn, teleport, etc. + ///
+ /// public static event LoadLevelHandler OnLoadLevel; internal static void LoadLevel(_Level level, _Player.IntroTypes playerIntro, bool isFromLoader) => OnLoadLevel?.Invoke(level, playerIntro, isFromLoader);