public void OnInitialize() { Game.OnGameLoaded += () => { Core.DelayAction(() => { if (Globals.MyHero.Hero.Equals(Champion.Annie)) { switch (Updater.Run(Name, Version)) { case "NoUpdate": Chat.Print("<font color='#27ae60'>[T2IN1-UPDATE-CHECKER] </font>No update found"); break; case "Failed": Chat.Print("<font color='#e74c3c'>[T2IN1-UPDATE-CHECKER] </font>Could not check for updates"); break; case "NewVersion": Chat.Print("<font color='#e74c3c'>[T2IN1-UPDATE-CHECKER] </font>A new update is available"); break; default: Chat.Print("<font color='#e74c3c'>[T2IN1-UPDATE-CHECKER] </font>Could not check for updates"); break; } Console.Clear(); try { SpellsManager.Initialize(); Menus.Initialize(); Drawings.Initialize(); DamageIndicator.Initialize(); ModeManager.Initialize(); EventManager.Initialize(); /* Interrupt.Initialize(); TODO: FINISH */ } catch (Exception _Exception) { Logger.Log("Error: " + _Exception, ConsoleColor.Red); } Chat.Print("<font color='#27ae60'>[T2IN1-REBORN] </font>Script is fully initialized"); } else { Chat.Print("<font color='#e74c3c'>[T2IN1-REBORN] </font> Champion: " + ObjectManager.Player.ChampionName + " is not Supported!"); } }, new Random().Next(1250, 3500)); }; }
public void Init() { new Spells().Init(); ModeManager.Initialize(); ItemManager.Init(); Selector.Init(); MenuX.Init(); new Drawings().Init(); Obj_AI_Base.OnProcessSpellCast += AiHeroClientOnOnProcessSpellCast; GameObject.OnCreate += GameObjectOnOnCreate; GameObject.OnDelete += GameObjectOnOnDelete; Indicator = new DamageIndicator(); }
static Sivir() { if (Player.Instance.Hero != Champion.Sivir) { return; } Spells.Initiliaze(); ModeManager.Initialize(); ProcessSpells.Initialize(); Config.Initialize(); Drawings.Initiliaze(); DamageIndicator.Initialize(Spells.GetTotalDmg); }
private static void OnLoadingComplete(EventArgs args) { if (Player.Instance.Hero != Champion.Kindred) { return; } // Initialize classes Config.Initialize(); SpellManager.Initialize(); ModeManager.Initialize(); // Listen to required events // TODO }
static Veigar() { if (Player.Instance.Hero != Champion.Veigar) { return; } Spells.Initialize(); ModeManager.Initialize(); MenuX.Initialize(); BRSelector.Selector.Init(); Chat.Print("Loaded^>^", Color.DeepPink); Drawing.OnDraw += OnDraw; Gapcloser.OnGapcloser += GapcloserOnOnGapcloser; DamageIndicator.Initialize(DamageLib.GetTotalDamage); HasIgnite = Player.Instance.GetSpellSlotFromName("SummonerDot") != SpellSlot.Unknown; }
static Gragas() { if (Player.Instance.Hero != Champion.Gragas) { return; } new Spells().Init(); GameObject.OnCreate += GameObjectOnOnCreate; GameObject.OnDelete += GameObjectOnOnDelete; Gapcloser.OnGapcloser += GapcloserOnOnGapcloser; ModeManager.Initialize(); Config.Initialize(); DamageIndicator.Initialize(Fazisac.GetTotalDmg); Drawing.OnDraw += Fazisac.IsacDraw; }
private static void OnLoadingComplete(EventArgs args) { // Verify the champion we made this addon for if (Player.Instance.ChampionName == ChampName) { // Champion is not the one we made this addon for, // therefore we return return; } // Initialize the classes that we need Config.Initialize(); SpellManager.Initialize(); ModeManager.Initialize(); // Listen to events we need Drawing.OnDraw += OnDraw; }
private static void OnLoadingComplete(EventArgs args) { // Validate champ if (Player.Instance.Hero != Champion.Tristana) { return; } // Initialize classes SpellManager.Initialize(); Config.Initialize(); ModeManager.Initialize(); // Initialize damage indicator DamageIndicator.Initialize(Damages.GetTotalDamage); DamageIndicator.DrawingColor = Color.Goldenrod; // Listend to required events Drawing.OnDraw += OnDraw; Gapcloser.OnGapcloser += OnGapcloser; Interrupter.OnInterruptableSpell += OnInterruptableSpell; Orbwalker.OnPostAttack += OnPostAttack; }