Initialize() public static method

public static Initialize ( DamageToUnitDelegate damageToUnit ) : void
damageToUnit DamageToUnitDelegate
return void
Example #1
0
        private static void OnLoadingComplete(EventArgs args)
        {
            // Validate champ
            if (Player.Instance.Hero != Champion.Xerath)
            {
                return;
            }

            // Validate version
            if (new System.Version(Game.Version) < new System.Version("5.21.0.297"))
            {
                Chat.Print("[Xerath] Oyun surumunuz desteklemiyor Xerath");
                Chat.Print("[Xerath] Please wait till your region updates to 5.21");
                Chat.Print("[Xerath] Bu mesaj icin cevap yazmayin!");
                return;
            }

            // Initialize classes
            SpellManager.Initialize();
            Config.Initialize();
            ModeManager.Initialize();

            // Check if the player has ignite
            HasIgnite = Player.Instance.GetSpellSlotFromName("SummonerDot") != SpellSlot.Unknown;

            // Initialize damage indicator
            DamageIndicator.Initialize(Damages.GetTotalDamage);
            DamageIndicator.DrawingColor = System.Drawing.Color.Goldenrod;

            // Listend to required events
            Drawing.OnDraw                   += OnDraw;
            Gapcloser.OnGapcloser            += OnGapcloser;
            Interrupter.OnInterruptableSpell += OnInterruptableSpell;
        }
Example #2
0
        private static void OnLoadingComplete(EventArgs args)
        {
            // Validate champ
            if (Player.Instance.Hero != Champion.Xerath)
            {
                return;
            }

            // Validate version
            if (new System.Version(Game.Version) < new System.Version("5.21.0.297"))
            {
                Chat.Print("[Xerath] Your game version does not support Xerath");
                Chat.Print("[Xerath] Please wait till your region updates to 5.21");
                Chat.Print("[Xerath] Do not reply in the thread because of this message!");
                return;
            }

            // Initialize classes
            SpellManager.Initialize();
            Config.Initialize();
            ModeManager.Initialize();

            // Check if the player has ignite
            HasIgnite = Player.Instance.GetSpellSlotFromName("SummonerDot") != SpellSlot.Unknown;

            // Initialize damage indicator
            DamageIndicator.Initialize(Damages.GetTotalDamage);
            DamageIndicator.DrawingColor = System.Drawing.Color.Aqua;

            // Listend to required events
            Drawing.OnDraw                   += OnDraw;
            Gapcloser.OnGapcloser            += OnGapcloser;
            Interrupter.OnInterruptableSpell += OnInterruptableSpell;
        }