コード例 #1
0
        /// <summary>
        /// Initializes Prediction Services
        /// </summary>
        public static void Initialize(Menu mainMenu, string prefMenuName = "SPRED")
        {
            if (blInitialized)
            {
                throw new Exception("SPrediction Already Initialized");
            }

            PathTracker.Initialize();
            StasisPrediction.Initialize();
            ConfigMenu.Initialize(mainMenu, prefMenuName);
            Drawings.Initialize();

            blInitialized = true;
        }
コード例 #2
0
        public static Menu Initialize()
        {
            try
            {
                PathTracker.Initialize();
                StasisPrediction.Initialize();
                Menu spredMenu = ConfigMenu.Initialize();
                Drawings.Initialize();

                blInitialized = true;
                return(spredMenu);
            }
            catch
            {
                Menu m = new Menu("SPREDX", "SPrediction");
                m.Add(new MenuList("PREDICTONLIST", "Prediction Method", new[] { "SPrediction", "Common Prediction" })
                {
                    Index = 1
                });
                return(m);
            }
        }
コード例 #3
0
 /// <summary>
 /// Unregisters spell callback from stasis prediction
 /// </summary>
 /// <param name="s">The spell.</param>
 /// <param name="fn">The eventhandler.</param>
 public static void UnregisterStasisCallback(this Spell s, EventHandler <StasisPrediction.Result> fn)
 {
     StasisPrediction.UnregisterSpell(s);
     StasisPrediction.OnGuaranteedHit -= fn;
 }