Ejemplo n.º 1
0
        /// <summary>
        ///     Loads Snitched.
        /// </summary>
        /// <param name="args">The <see cref="EventArgs" /> instance containing the event data.</param>
        public void Load(EventArgs args)
        {
            Config.Instance.CreateMenu();

            HealthPrediction.Load();

            ObjectTracker.OnObjectiveCreated += (sender, type) => HealthPrediction.TrackObject((Obj_AI_Base)sender);
            ObjectTracker.OnObjectiveDead    += (sender, type) => HealthPrediction.UntrackObject((Obj_AI_Base)sender);
            ObjectTracker.Load();

            this.Spells = SpellLoader.GetUsableSpells();

            Game.OnUpdate += this.Game_OnUpdate;
        }
Ejemplo n.º 2
0
        /// <summary>
        ///     Loads Snitched.
        /// </summary>
        /// <param name="args">The <see cref="EventArgs" /> instance containing the event data.</param>
        public void Load(EventArgs args)
        {
            Config.Instance.CreateMenu();

            HealthPrediction.Load();

            ObjectTracker.OnObjectiveCreated += (sender, type) => HealthPrediction.TrackObject((Obj_AI_Base)sender);
            ObjectTracker.OnObjectiveDead += (sender, type) => HealthPrediction.UntrackObject((Obj_AI_Base)sender);
            ObjectTracker.Load();

            this.Spells = SpellLoader.GetUsableSpells();

            Game.OnUpdate += this.Game_OnUpdate;

            Game.PrintChat(
                "<b><font color=\"#00AAFF\">S</font><font color=\"#f06DBD\">nitched</font> <font color=\"#00AAFF\">3.0</font></b> "
                + "by <font color=\"#9400D3\"><b>ChewyMoon</b></font> Loaded!");
        }