Exemplo n.º 1
0
 private static void Loading_OnLoadingComplete(EventArgs args)
 {
     SpellSlot[] spelllist = { SpellSlot.Q, SpellSlot.W, SpellSlot.E, SpellSlot.R, SpellSlot.Summoner1, SpellSlot.Summoner2 };
     foreach (var spell in spelllist)
     {
         var sp = new Spell.Skillshot(spell);
         if (!sp.Range.Equals(0) && !SpellData.Any(x => x.DisplayName.Equals(sp.Name)))
         {
             SpellData.Add(new Missile_Information(sp));
         }
     }
     Write_Database();
     GameObject.OnCreate += GameObject_OnCreate;
     Game.OnEnd          += Game_OnEnd;
     Game.OnDisconnect   += Game_OnDisconnect;
     Game.OnNotify       += Game_OnNotify;
     Game.OnUpdate       += Game_OnUpdate;
 }