private static void Loading_OnLoadingComplete(EventArgs args) { MainMenu.Init(); UtilityManager.Initialize(); Value.Init(); var champion = Type.GetType("OKTRAIO.Champions." + Player.Instance.ChampionName); if (champion != null) { Console.WriteLine("[MarksmanAIO] " + Player.Instance.ChampionName + " Loaded"); IconManager.Init(); Champion = (AIOChampion)Activator.CreateInstance(champion); Events.Init(); Value.Init(); Champion.Init(); //JsonSettings.Init(); UtilityManager.Activator.LoadSpells(); if (MainMenu.Menu["playsound"].Cast <CheckBox>().CurrentValue) { PlayWelcome(); } Chat.Print("MarksmanAIO: " + Player.Instance.ChampionName + " Loaded", Color.CornflowerBlue); } else { Chat.Print("MarksmanAIO doesn't support: " + Player.Instance.ChampionName); } Humanizer.Init(); }
/// <summary> /// Allows the game to perform any initialization it needs to before starting to run. /// This is where it can query for any required services and load any non-graphic /// related content. Calling base.Initialize will enumerate through any components /// and initialize them as well. /// </summary> protected override void Initialize() { base.Initialize(); scene = new RenderTarget2D(graphics.GraphicsDevice, UtilityManager.SCREEN_WIDTH, UtilityManager.SCREEN_HEIGHT); utilityManager.Initialize(); screenManager.Initialize(); }