예제 #1
0
        private static void OnLoadingComplete(EventArgs args)
        {
            // Validate champion
            if (Player.Instance.Hero != Champion.Kalista)
            {
                return;
            }

            // Initialize classes
            Config.Initialize();
            SoulBoundSaver.Initialize();
            ModeLogic.Initialize();
            SentinelManager.Initialize();
            Cache.Initialize();

            // Enable E damage indicators
            DamageIndicator.Initialize(Damages.GetRendDamage);
            DamageIndicator.DrawingColor = System.Drawing.Color.Goldenrod;

            //Initialize Jump Spot
            WallJump.InitSpots();

            // Listen to some required events
            Drawing.OnDraw         += OnDraw;
            Spellbook.OnCastSpell  += OnCastSpell;
            Orbwalker.OnPostAttack += OnPostAttack;
            Game.OnPostTick        += delegate { IsAfterAttack = false; };
        }