Пример #1
0
        public InfoPanel(CrowControlSettings settings, TimerHelper timerHelper)
        {
            this.settings    = settings;
            this.timerHelper = timerHelper;

            uiPos = new Vector2(15, 219);
        }
Пример #2
0
 public ActionHelper(TimerHelper timerHelper, SpawnHelper spawnHelper)
 {
     Module      = CrowControlModule.Instance;
     Settings    = CrowControlModule.Settings;
     TimerHelper = timerHelper;
     SpawnHelper = spawnHelper;
 }
Пример #3
0
        public override void Load()
        {
            if (!Enabled)
            {
                return;
            }

            BirdyHelper  = new BirdyHelper(Settings);
            timerHelper  = new TimerHelper();
            spawnHelper  = new SpawnHelper();
            actionHelper = new ActionHelper(timerHelper, spawnHelper);

            effectTime = Settings.EffectTime;

            infoPanel = new InfoPanel(Settings, timerHelper);

            seekerSpawnTimer          = new TimerPlus(250);
            seekerSpawnTimer.Elapsed += SeekerSpawnTimer_Elapsed;

            Engine.OnExiting += Engine_OnExiting;

            On.Celeste.HudRenderer.RenderContent += HudRenderer_RenderContent;
            On.Celeste.GameplayRenderer.Render   += GameplayRenderer_Render;
            On.Celeste.Player.Added    += Player_Added;
            On.Celeste.Player.Die      += Player_Die;
            On.Celeste.Level.Update    += Level_Update;
            On.Celeste.Level.NextLevel += Level_NextLevel;

            On.Celeste.Bumper.OnPlayer        += Bumper_OnPlayer;
            On.Celeste.Player.IntroRespawnEnd += Player_IntroRespawnEnd;
            Everest.Events.Level.OnExit       += Level_OnExit;
            IL.Celeste.Pathfinder.ctor        += ModPathfinderConstructor;
            IL.Celeste.MiniTextbox.Render     += centerHook;
            On.Celeste.CS07_Credits.Added     += CS07_Credits_Added;
            On.Celeste.CS08_Ending.OnEnd      += CS08_Ending_OnEnd;
            On.Celeste.CS07_Ascend.OnBegin    += CS07_Ascend_OnBegin;
            On.Celeste.Player.SummitLaunch    += Player_SummitLaunch;
        }